Random sampler adapted to one-dimension slow-varying signal
09762217 · 2017-09-12
Assignee
Inventors
- Dongmei Li (Beijing, CN)
- Qing Luo (Beijing, CN)
- Shengfa Liang (Beijing, CN)
- Hongzhang Yang (Beijing, CN)
- Xiaojing Li (Beijing, CN)
- Hao Zhang (Beijing, CN)
- Changqing XIE (Beijing, CN)
- Ming Liu (Beijing, CN)
Cpc classification
H03K3/84
ELECTRICITY
A61B5/00
HUMAN NECESSITIES
International classification
H03K4/50
ELECTRICITY
H03K3/84
ELECTRICITY
Abstract
A sampler adapted to a one-dimension slow-varying signal, including: a signal preprocessing unit configured to preprocess an input signal; a slope-controllable sawtooth wave signal generating unit configured to generate a slope-controllable sawtooth wave signal and perform zero-resetting; a signal comparing unit configured to compare the preprocessed input signal from the signal preprocessing unit with the sawtooth wave signal and to output a pulse signal to the generating unit and a signal outputting unit when the preprocessed input signal is equal to the sawtooth wave signal; a counting unit configured to count a number of clock signals while the sawtooth wave signal generating unit is generating the sawtooth wave signal and to transmit the counted number to the signal outputting unit; the signal outputting unit configured to, upon receipt of the pulse signal output from the signal comparing unit, output the number counted by the counting unit at the moment.
Claims
1. A random sampler adapted to a one-dimension slow-varying signal, comprising: a signal preprocessing unit, a slope-controllable sawtooth wave signal generating unit, a signal comparing unit, a counting unit and a signal outputting unit, wherein the signal preprocessing unit is configured to preprocess an input signal and to transmit the preprocessed input signal to the signal comparing unit, the slope-controllable sawtooth wave signal generating unit is configured to generate a slope-controllable sawtooth wave signal, which is transmitted to the signal comparing unit, and to perform zero-resetting, the signal comparing unit is configured to compare the preprocessed input signal from the signal preprocessing unit with the sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit and to output a pulse signal to the slope-controllable sawtooth wave signal generating unit and the signal outputting unit when the preprocessed input signal is equal to the sawtooth wave signal, the counting unit is connected to the slope-controlled sawtooth wave signal generating unit via the signal comparing unit and configured to count a number of clock signals while the sawtooth wave signal generating unit is generating the sawtooth wave signal and to transmit the counted number to the signal outputting unit, and the signal outputting unit is configured to, upon receipt of the pulse signal output from the signal comparing unit, output an instantaneous counted number received from the counting unit.
2. The random sampler according to claim 1, wherein the preprocessing of the input signal by the signal preprocessing unit comprises: reversing the input signal.
3. The random sampler according to claim 1, wherein the sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit is transmitted to the signal comparing unit, where the sawtooth wave signal is compared with the preprocessed input signal, and when the sawtooth wave signal is equal to the preprocessed signal, the signal comparing unit outputs the pulse signal to the slope-controllable sawtooth wave signal generating unit, which resets to zero and regenerates a new sawtooth wave signal.
4. The random sampler according to claim 3, wherein the slope-controllable sawtooth wave generating unit comprises a constant current source, a capacitor and a switch triggered by the pulse signal, wherein a slope of the sawtooth wave signal is controlled by adjusting a current level of the constant current source and a voltage level of the sawtooth wave signal is reset to zero by the switch triggered by the pulse signal.
5. The random sampler according to claim 1, wherein the signal comparing unit is constituted of a comparer, the sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit and the input signal preprocessed by the signal preprocessing unit are input to a positive input terminal and a negative input terminal of the comparer, respectively, when the sawtooth wave signal is lower than the input signal, an output terminal of the comparer is at a low level, when the sawtooth wave signal is equal to or higher than the input signal, the output terminal of the comparer is at a high level and outputs a pulse signal to the slope-controllable sawtooth generating unit and the signal outputting unit, so that the slope controllable sawtooth generating unit resets to zero to regenerate a new sawtooth wave signal, and the signal outputting unit outputs the instantaneous counted number.
6. The random sampler according to claim 1, wherein the counting unit is implemented using a counter, and the number counted by the counter conveys time information and information about a voltage level of the sawtooth wave signal which are used for data restoration at a computer connected to an output terminal of the signal outputting unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For further illustrating the present disclosure, detailed description will be given below in conjunction with embodiments and accompany drawings, in which:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF EMBODIMENTS
(7) In order for the objects, solutions and advantages of the present disclosure to be more clear and apparent, detailed description will be given in the following in conjunction with detailed embodiments and with reference to accompanying drawings.
(8) The random sampler according to the present disclosure is completely different in principle from the AIC sampler shown in
(9)
(10) 1. Signal Preprocessing Unit
(11) The signal preprocessing unit 1 is configured to preprocess an input signal before it arrives at the signal comparing unit 3 and to transmit the preprocessed signal to the signal comparing unit 3, so that more data can be collected in case of a sudden change of the signal so as to increase an average sampling rate. The preprocessing means to reverse the input signal. Considering that the random sampler is characterized by sampling data closer to zero at a high sampling frequency, the signal is preprocessed to be reversed, so that it can be sampled better as its level increases. Because the data sampling frequency of the random sampler according to the present disclosure increases as the signal gets closer to zero while the sudden change of a sensed signal typically occurs in a positive direction, preprocessing that mainly comprises reversing the input signal needs to be performed for the collected data, in order to meet the practical requirement of collecting more data in case of a change. The effect intended to be achieved by the preprocessing is shown in
(12) 2. Slope-Controllable Sawtooth Wave Signal Generating Unit
(13) The slope-controllable sawtooth wave signal generating unit 2 is configured to generate a slope-controllable sawtooth wave signal and to perform zero-resetting. The sawtooth wave signal is transmitted to a signal comparing unit 3 where it is compared with the preprocessed input signal. When these two signals are equal to each other, the slope-controllable sawtooth wave signal generating unit 2 resets to zero and regenerates a new sawtooth wave signal. The above actions are repeated, so that the sawtooth wave signal generated by the random sampler according to the disclosure is compared with the input signal, the randomness of their equality is made use of to generate a random pulse, and then the subsequent counter and signal outputting unit are used to transmit characteristic information of points that are equal to a computer, where restoration is performed using a compressive sensing reconstruction algorithm. Compressive sensing is in essence solving an underdetermined equation y.sub.i=φ,x
. y.sub.i on the left side of the underdetermined equation y.sub.i=
φ,x
denotes M samples obtained by the compressive sensing and is a matrix consisting of sampled signals. On the right side of the equation is a product of an original signal x and a coefficient matrix φ, which is for sparsifying and measuring the original signal. The signal output from the counter obtained according to the disclosure contains information on the measurement matrix and information on measured values, and the sparse matrix can be customized. Accordingly, the fundamental underdetermined equation for the compressive sensing has been constructed. In prior art, mature algorithms for solving the underdetermined equation already exist and can be used straightforwardly. For more details, reference can be made to common signal reconstruction algorithms described below. In addition, the sawtooth wave signal and the input signal are continuously compared, and sampling is performed once when the signals are equal to each other. The smaller the slope of the sawtooth wave signal is, the later the time when the signals meet with each other is. Therefore, the slope of the sawtooth wave signal dictates the average sampling rate of the random sampling. In order to adapt to different signals, it shall be ensured that the slope of the sawtooth wave signal is adjustable.
(14)
(15) Here, the compressive sensing reconstruction algorithm will be introduced briefly. Compressive sensing is a novel information acquisition theory and is a signal collecting and reconstructing method based on sparse representation of signal, uncorrelation of measurement matrix and approximation theory. As that theory suggests, as long as a signal is sparse or is compressed according to a basis temporally, structural information of the signal can be obtained at a sampling rate much lower than that required by the Nyquist sampling theorem, and the signal can be accurately reconstructed by using a reconstruction algorithm. The compressive sensing only includes two stages: projecting the signal onto observation vectors to obtain observed values; and reconstructing the signal from the observed values by using the reconstruction algorithm.
(16) Let us suppose x is a signal having a length of N and a sparsity of K(K<N). The sparsity K indicates that x itself has K non-zero elements or its expansion coefficients in a certain transform domain Ψ include K non-zero elements. Projections of signal x (supposing the signal corresponds to K coefficients in the transform domain Ψ) on observation vectors may be expressed as:
y.sub.i=φ,x
(17) where y.sub.i denotes M samples obtained by the compressing sensing, i=1, . . . M, M<N, and (φ.sub.i).sub.i=1.sup.M denotes the set of observation vectors. The observation basis consisting of (φ.sub.i).sub.i=1.sup.M is uncorrelated to the transform basis Ψ.
(18) The key to signal reconstruction is to find a sparse representation of signal x in domain Ψ. The solution having a coefficient structure may be found by solving a l.sub.0 norm optimization problem:
min∥Ψ.sub.x.sup.T∥.sub.0s.t. y=Φx.
(19) Because the optimization problem expressed as the above equation is an NP-hard problem which is difficult to solve, l.sub.0 constraint may be replaced with l.sub.1 constraint:
min∥Ψ.sub.x.sup.T∥.sub.1s.t. y=Φx.
(20) Then, the samples obtained by the compressive sensing retain the structure and related information of the original signal. Therefore, without having to reconstruct the signal, the signal detection task can be completed by directly extracting characteristic values from the samples by using a detection algorithm and making judgment.
(21) Common signal reconstruction algorithms include minimum l.sub.0 norm model, matching pursuit algorithm and orthogonal matching pursuit algorithm.
(22) 1) Minimum l.sub.0 Norm Model
(23) Mathematically, a compressive sensing based signal reconstruction problem is a problem of finding out the simplest solution of an equation set (for which the number of equations is less than the number of unknown values to be determined). l.sub.0 norm characterizes the number of non-zero elements in the signal, thereby enabling the result to be as sparse as possible. Typically, we use the following equation to describe the minimum l.sub.0 norm optimization problem:
min∥X∥.sub.0s.t. Y=ΦX (3.1)
(24) In practice, a certain degree of error is allowed. Thus, the original optimization problem is converted into a simpler approximation, where δ is an infinitesimal constant:
min∥X∥.sub.0s.t.∥Y−ΦX∥.sub.2.sup.2≦δ (3.2)
(25) However, such a problem is very difficult to solve, because its numerical solution deriving calculation is very instable.
(26) Reconstruction algorithms of the matching pursuit type solve the minimum l.sub.0 norm problem. The earliest proposed are matching pursuit (MP) algorithm and orthogonal matching pursuit (OMP) algorithm.
(27) 2) Matching Pursuit Algorithm
(28) The basic idea of the matching pursuit algorithm is to, in each iteration, make a sparse approximation by selecting from an overcomplete atom base (i.e., a sensing matrix) an atom that best matches a signal and calculate a residual for which a best matching atom is selected subsequently. After several iterations, the signal can be linearly represented by some atoms. However, due to the non-orthogonality among projections the signal to the set of the selected atoms (i.e., column vectors in the sensing matrix), the result of each iteration may be suboptimal. Therefore, in order to achieve a desired convergence result, many iterations are needed typically.
(29) Typically, algorithms of the matching pursuit type calculate a correlation coefficient u by determining an absolute value of an inner product of the residual r and the atoms in the sensing matrix Φ:
u={u.sub.j|u.sub.j=|r,φ.sub.j
|,j=1,2, . . . ,N},
and approximating the signal and updating the residual by using the least square method:
(30)
(31) 3) Orthogonal Matching Pursuit Algorithm
(32) The orthogonal matching pursuit algorithm (OMP) is one of the earliest greedy iterative algorithms. The algorithm continues to use the atom selection criterion in the matching pursuit algorithm, except that optimal iterations are ensured by orthogonalizing the set of the selected atoms through recursion and thus the number of iterations is reduced. The OMP algorithm effectively overcomes the problem with the matching pursuit algorithm—many iterations are typically needed in order to achieve a desired convergence result.
(33) The OMP algorithm orthogonalizes the selected atoms by using the Gram-Schmidt orthogonalization procedure, and then projects the signal on the space constituted by these orthogonalized atoms to obtain components and residuals of the signal on the selected atoms, and next decompose the residuals in the same manner. At each decomposition step, the selected atoms satisfy a certain condition. Therefore, the residuals diminish quickly as the decomposition process proceeds. Orthogonalizing the set of the selected atoms through recursion optimal iterations ensures optimal iterations, thereby reducing the number of the number of iterations.
(34) An OMP reconstruction algorithm is subject to a given number of iterations. Such an algorithm which forcibly terminates the iterative process requires OMP to perform quite a lot of linear measurements for ensuring an accurate reconstruction. In short, it selects columns of Φ by using a greedy iterative algorithm so that the column selected in each iteration is correlated to the current redundant vector to the maximum extent, subtracts related part from the measurement vector and iterates until the number of iterations reaches a sparsity K. Then, iterating is forcibly stopped.
(35) Detailed steps of the OMP algorithm are as follows:
(36) (1) initializing a residual r.sub.0=Y, a number of iterations n=1, and index sets Λ=Ø and J=Ø;
(37) (2) calculating a correlation coefficient u, and storing an index corresponding to the maximum value in u into J;
(38) (3) updating a support set Φ.sub.Λ, wherein Λ=Λ∪J.sub.0;
(39) (4) applying equation (3.3) to obtain {circumflex over (X)}, and meanwhile updating the residual by applying equation (3.4);
(40) (5) if ∥r.sub.new−r∥≧ε.sub.2, then setting r=r.sub.new and n=n+1 and returning to step (2); otherwise, stopping iterating.
(41) 3. Signal Comparing Unit
(42) The signal comparing unit 3 is configured to compare the input signal from the signal preprocessing unit 1 and the sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit 2 and to output a pulse signal to the slope-controllable sawtooth wave signal generating unit 2 and the signal outputting unit 5 when these two signals are equal, for resetting of the slope-controllable sawtooth wave signal generating unit 2 and functioning of the signal outputting unit 5. Among the units of the random sampler according to the present disclosure, the signal comparing unit 3 is the easiest to implement in hardware, although it is the very core of the random sampler. Mainly by comparing the sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit 2 with the input signal, a random pulse signal is generated, thereby enabling random sampling to be truly realized.
(43) The signal comparing unit 3 is mainly constituted of a comparer. The sawtooth wave signal generated by the slope-controllable sawtooth wave signal generating unit 2 and the input signal preprocessed by the signal preprocessing unit 1 are input to a positive input terminal and a negative input terminal of the comparer, respectively. When the sawtooth wave signal is lower than the input signal, an output terminal of the comparer is at a low level. When the sawtooth wave signal is equal to or higher than the input signal, the output terminal of the comparer is at a high level, and the slope-controllable sawtooth generating unit 2 resets and regenerates a new sawtooth wave signal. Meanwhile, the signal output unit 5 outputs the number counted at the moment to the computer.
(44) 4. Counting Unit
(45) The counting unit 4 is configured to count a number of clock signals while the sawtooth wave signal generating unit 2 is generating the sawtooth wave signal and to transmit the countered number to the signal outputting unit 5. The counting unit 4 is typically implemented using a counter. As the slope of the sawtooth wave signal is known, the number counted by the counter conveys time information and information about a voltage level of the sawtooth wave signal which are used for data restoration at the computer. Here, the occurrence frequency of the clock signals is adjustable, in order to ensure restoration of the desired signal.
(46) 5. Signal Outputting Unit
(47) The signal outputting unit 5 is configured to, upon receipt of the pulse signal output from the signal comparing unit 3, output the number counted by the counting unit 4 at the moment. An incentive signal for the signal outputting unit 5 is the pulse signal generated by the signal comparing unit 3, and an output of the signal outputting unit 5 is an instantaneous number generated by the counting unit 4.
(48) From a simulated case where a signal from a gas sensor is sampled and restored by using a random sampling method and the random sampler adapted to a one-dimension slow-varying signal according to the disclosure, it can be found that the random sampling method is practicable in an allowable degree of error, as shown in
(49) As can be seen from the above embodiments, in principle, the random sampler according to the disclosure actually realizes random sampling of a signal in the time domain. Meanwhile, real randomness is achieved, because the AIC sampler shown in
(50) The above detailed embodiments further describe the object, technical solutions and advantages of the disclosure. It shall be appreciated that the above contents are just detailed embodiments of the disclosure but are not intended to limit the disclosure. Any alterations, equivalent replacements, improvements, etc. made within the spirit and scope of the disclosure are intended to fall within the protection scope of the disclosure.