CN116366411B - Multi-bit signal quantization self-adaptive threshold generation and quantization method - Google Patents
Multi-bit signal quantization self-adaptive threshold generation and quantization method Download PDFInfo
- Publication number
- CN116366411B CN116366411B CN202310311260.XA CN202310311260A CN116366411B CN 116366411 B CN116366411 B CN 116366411B CN 202310311260 A CN202310311260 A CN 202310311260A CN 116366411 B CN116366411 B CN 116366411B
- Authority
- CN
- China
- Prior art keywords
- signal
- threshold
- value
- quantization
- epsilon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013139 quantization Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000000087 stabilizing effect Effects 0.000 claims description 11
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000005070 sampling Methods 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005587 bubbling Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/02—Amplitude-modulated carrier systems, e.g. using on-off keying; Single sideband or vestigial sideband modulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/02—Amplitude-modulated carrier systems, e.g. using on-off keying; Single sideband or vestigial sideband modulation
- H04L27/08—Amplitude regulation arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a multi-bit signal quantization self-adaptive threshold generation and quantization method, which comprises the steps of determining the length of a signal window, finding a signal extremum in the signal window and quantizing a signal; the invention can adapt to the quantization threshold of signal power change to select the signal close to the threshold, and adds a quantization window to quantize, thereby improving the quantization accuracy.
Description
Technical Field
The invention relates to a signal processing technology, in particular to a multi-bit signal quantization self-adaptive threshold generation and quantization method.
Background
When the signal is quantized in a high-bit direction and a low-bit direction, if the signal is quantized in a single bit direction, a zero point can be directly selected as a signal quantization threshold value, and if the signal amplitude value is larger than zero, the signal is quantized to 1; if the signal amplitude value is less than zero, the quantization is 0. When multi-bit quantization is performed on a signal, the quantization threshold needs to be determined according to the power level of the signal.
However, if the front-end amplifier has different gains for signals with different frequencies and different powers, the signal power output by the front-end amplifier is related to the signal frequency and the signal power received by the front-end amplifier, so that the power of the signal varies, and a fixed threshold cannot be simply selected for quantization.
For example: patent WO2009097755A1 discloses a method for detecting signals locally and centrally, which does not select a multi-point quantization window, and the quantized signal quality is low.
Disclosure of Invention
The invention aims to: the invention aims to solve the defects in the prior art, and provides a multi-bit signal quantization self-adaptive threshold generation and quantization method, wherein a signal close to a threshold is selected by a quantization threshold adaptable to signal power change, and quantization is performed by adding a quantization window, so that quantization accuracy is improved.
The technical scheme is as follows: the invention discloses a multi-bit signal quantization self-adaptive threshold generation and quantization method, which comprises the following steps:
step S1, determining the length N of a signal window; the signal window length N may be determined from the ratio of the sampling rate to the frequency of the measured signal. For example, if the sampling rate is 2400MHz, the frequency range of the measurement signal is 100MHz to 1100MHz, the signal window length is 2400/100=24;
s2, searching a signal extremum in a signal window, wherein the specific method comprises the following steps of;
firstly, eliminating signal singular points in a signal window to form a signal stabilizing window, wherein the length of the signal stabilizing window is M, M is less than or equal to N, and then continuously searching a signal maximum value x in the signal stabilizing window max Sum signal minimum value x min ;
Then, in the signal stability window, if the difference between the signal value of a certain signal and the average value of the signal in the window exceeds a stability threshold delta, the signal value is considered to be unstable and can be directly ignored; if the difference between the signal value of a certain signal and the average value of the signal in the window is smaller than the stability threshold delta, the signal is considered to be stable;
the method for calculating the stability threshold delta is as follows: firstly, deriving a signal, calculating a standard deviation of the derived signal, and taking 3 times of the standard deviation as a stability threshold;
then, compare the stable signal with x max And x min If the signal value of the stable signal is greater than x max Then the signal value is replaced by the original x max If the signal value of the stable signal is less than x min Then the signal value is replaced by the original x min ;x max /x min The confirmation method comprises the following steps: the first point in the signal stability window is taken as x max /x min Then traversing a signal stabilizing window by adopting an bubbling sequencing method, and finding out the maximum value and the minimum value in the window;
finally, after traversing all signals in the M-point signal stability window, the maximum value of the output signal is x max Signal minimum value x min ;
S3, determining a quantization threshold delta according to the signal extreme value;
if all signals are quantized n bits, the quantization threshold calculation formula is
In the above formula, i is a quantization threshold index, and n-bit quantization will be 2 n -1 threshold, i=1, 2, …,2 n -1;
Step S4, quantifying the signal
First, a quantization window of 3 points is selected, assuming that the signal points within the quantization window are { x } k-1 ,x k ,x k+1 Then average the first two signals, denoted as x m|k-1 ,The two latter signals are averaged simultaneously and denoted as x m|k+1 ,
Then, calculate x respectively m|k-1 And x m|k+1 And quantization threshold delta i The difference of (c) is denoted as epsilon k-1 And epsilon k+1 ;
If epsilon k-1 And epsilon k+1 And is larger than the threshold value at the same time, consider the signal point x k Greater than a threshold;
if epsilon k-1 And epsilon k+1 While being smaller than the threshold value, the signal point x is considered k Less than a threshold;
if epsilon k-1 Greater than a threshold and epsilon k+1 Less than the threshold value, epsilon is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Greater than threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Less than a threshold;
if epsilon k-1 Less than a threshold and epsilon k+1 Greater than a threshold value, then ε is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Less than the threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Greater than a threshold.
The beneficial effects are that: the invention uses the multi-point quantization window, which is equivalent to the data smoothing denoising processing in the quantization process, and the signal-to-noise ratio of the data quantization result is higher.
Drawings
FIG. 1 is a schematic overall flow chart of the present invention;
FIG. 2 is a quantization result with a quantization window length of 1 point in example 3;
FIG. 3 is a graph showing the quantization window length of 3 points according to the embodiment 3;
fig. 4 is a quantization result with a quantization window length of 5 points according to embodiment 3.
Detailed Description
The technical scheme of the present invention is described in detail below, but the scope of the present invention is not limited to the embodiments.
Example 1:
as shown in fig. 1, the multi-bit signal quantization adaptive threshold generation and quantization method of the present embodiment includes the following steps:
step S1, determining the length N of a signal window;
s2, searching a signal extremum in a signal window, wherein the specific method comprises the following steps of;
firstly, eliminating signal singular points in a signal window to form a signal stabilizing window, wherein the length of the signal stabilizing window is M, M is less than or equal to N, and then continuously searching a signal maximum value x in the signal stabilizing window max Sum signal minimum value x min ;
Then, in the signal stability window, if the difference between the signal value of a certain signal and the average value of the signal in the window exceeds a stability threshold delta, the signal value is considered to be unstable and can be directly ignored; if the difference between the signal value of a certain signal and the average value of the signal in the window is smaller than the stability threshold delta, the signal is considered to be stable;
then, compare the stable signal with x max And x min If the signal value of the stable signal is greater than x max The signal value is thenReplacing original x max If the signal value of the stable signal is less than x min Then the signal value is replaced by the original x min ;
Finally, after traversing all signals in the N-point signal window, the maximum value of the output signal is x max Signal minimum value x min ;
S3, determining a quantization threshold delta according to the signal extreme value;
if the signal is quantized n bits, the quantization threshold calculation formula is
In the above formula, i is a quantization threshold index, and n-bit quantization will be 2 n -1 threshold, i=1, 2, …,2 n -1; step S4, quantifying the signal
First, a quantization window of 3 or 5 points can be selected, taking 3 points as an example, assuming that the signal points in the quantization window are { x ] k-1 ,x k ,x k+1 Then average the first two signals, denoted as x m|k-1 ,The two latter signals are averaged simultaneously and denoted as x m|k+1 ,/>
Then, calculate x respectively m|k-1 And x m|k+1 And threshold (delta) i ) The difference of (c) is denoted as epsilon k-1 And epsilon k+1 ;
If epsilon k-1 And epsilon k+1 And is larger than the threshold value at the same time, consider the signal point x k Greater than a threshold;
if epsilon k-1 And epsilon k+1 While being smaller than the threshold value, the signal point x is considered k Less than a threshold;
if epsilon k-1 Greater than a threshold and epsilon k+1 Less than the threshold value, epsilon is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Greater than threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Less than a threshold;
if epsilon k-1 Less than a threshold and epsilon k+1 Greater than a threshold value, then ε is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Less than the threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Greater than a threshold.
Example 2:
other steps in this embodiment are the same as those in embodiment 1, but when the signal is quantized in step S4, a quantization window of 5 points is selected, and the specific procedure is as follows:
assume that the signal point within the quantization window is { x } k-2 ,x k-1 ,x k ,x k+1 ,x k+2 Then average the first two signals, denoted as x m|k-1 ,The two latter signals are averaged simultaneously and denoted as x m|k+1 ,/>
Then, calculate x respectively m|k-1 And x m|k+1 And quantization threshold delta i The difference of (c) is denoted as epsilon k-1 And epsilon k+1 ;
If epsilon k-1 And epsilon k+1 And is larger than the threshold value at the same time, consider the signal point x k Greater than a threshold;
if epsilon k-1 And epsilon k+1 While being smaller than the threshold value, the signal point x is considered k Less than a threshold;
if epsilon k-1 Greater than a threshold and epsilon k+1 Less than the threshold value, epsilon is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Greater than threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Less than a threshold;
if epsilon k-1 Less than a threshold and epsilon k+1 Greater than a threshold value, then ε is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Less than the threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Greater than a threshold.
Example 3:
the signal frequency of this embodiment is 100MHz, the signal-to-noise ratio is 15dB, the sampling rate is 10GHz, the sampling point number is 1000, and the quantization bit width is 3 bits. The signal stabilizing window length may be selected to be 100.
As shown in fig. 2 to 4, quantization results at quantization window lengths of 1 point, 3 points and 5 points, respectively; as can be seen from the figure, the quantized signal quality becomes better as the quantization window length increases by adopting the technical scheme of the invention.
Claims (1)
1. A multi-bit signal quantization self-adaptive threshold generation and quantization method is characterized in that: the method comprises the following steps:
step S1, determining the length N of a signal window;
s2, searching a signal extremum in a signal window, wherein the specific method comprises the following steps of;
firstly, eliminating signal singular points in a signal window to form a signal stabilizing window, wherein the length of the signal stabilizing window is M, M is less than or equal to N, and then continuously searching a signal maximum value x in the signal stabilizing window max Sum signal minimum value x min ;
Then, in the signal stability window, if the difference between the signal value of a certain signal and the average value of the signal in the window exceeds a stability threshold delta, the signal value is considered to be unstable and can be directly ignored; if the difference between the signal value of a certain signal and the average value of the signal in the window is smaller than a stability threshold delta, the signal is considered to be stable;
then, compare the stable signal with x max And x min If the signal value of the stable signal is greater than x max ThenReplacing the original x with the signal value max If the signal value of the stable signal is less than x min Then the signal value is replaced by the original x min ;
Finally, after traversing all signals in the M-point signal stability window, the maximum value of the output signal is x max Signal minimum value x min ;
S3, determining a quantization threshold delta according to the signal extreme value;
if all signals are quantized n bits, the quantization threshold calculation formula is
Where i is a quantization threshold index, n-bit quantization will have 2n-1 thresholds, i=1, 2,.. n -1;
Step S4, quantifying the signal
First, a quantization window of 3 points is selected, and 3 signal points in the quantization window are { x } k-1 ,x k ,x k+1 Then average the first two signals, denoted as x m|k-1 ,The two latter signals are averaged simultaneously and denoted as x m|k+1 ,/>
Then, calculate x respectively m|k-1 And x m|k+1 And quantization threshold delta i The difference of (c) is denoted as epsilon k-1 And epsilon k+1 ;
If epsilon k-1 And epsilon k+1 And is larger than the threshold value at the same time, consider the signal point x k Greater than a threshold;
if epsilon k-1 And epsilon k+1 While being smaller than the threshold value, the signal point x is considered k Less than a threshold;
if epsilon k-1 Greater than a threshold and epsilon k+1 Less than the threshold value, epsilon is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Greater than threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Less than a threshold;
if epsilon k-1 Less than a threshold and epsilon k+1 Greater than a threshold value, then ε is compared k-1 And epsilon k+1 The magnitude of the absolute value if% k-1 |>|ε k+1 I, consider the signal point x k Less than the threshold, if% k-1 |<|ε k+1 I, consider the signal point x k Greater than a threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310311260.XA CN116366411B (en) | 2023-03-28 | 2023-03-28 | Multi-bit signal quantization self-adaptive threshold generation and quantization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310311260.XA CN116366411B (en) | 2023-03-28 | 2023-03-28 | Multi-bit signal quantization self-adaptive threshold generation and quantization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116366411A CN116366411A (en) | 2023-06-30 |
CN116366411B true CN116366411B (en) | 2024-03-08 |
Family
ID=86935130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310311260.XA Active CN116366411B (en) | 2023-03-28 | 2023-03-28 | Multi-bit signal quantization self-adaptive threshold generation and quantization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116366411B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0531923A2 (en) * | 1991-09-10 | 1993-03-17 | Eastman Kodak Company | Method and apparatus for gray-level quantization |
CN1347549A (en) * | 1999-04-16 | 2002-05-01 | 多尔拜实验特许公司 | Using gain-adaptive quantization and non-uniform symbol lengths for audio coding |
WO2009097755A1 (en) * | 2008-02-01 | 2009-08-13 | Huawei Technologies Co., Ltd. | A method and apparatus for locally detecting signal, a method and apparatus for detecting signal at center, and a system for detecting signal |
CN105138304A (en) * | 2015-07-28 | 2015-12-09 | 北京华力创通科技股份有限公司 | Adaptive quantization method and apparatus of digital signal |
CN105911570A (en) * | 2016-06-24 | 2016-08-31 | 成都国恒空间技术工程有限公司 | Satellite communication burst capturing method |
CN105933006A (en) * | 2016-06-24 | 2016-09-07 | 中国科学技术大学 | Single-bit compression sampling method based on time-varying threshold |
CN108847905A (en) * | 2018-06-14 | 2018-11-20 | 电子科技大学 | A kind of multichannel fanaticism number detects the adaptive threshold detecting method in receiving |
CN111693993A (en) * | 2020-05-08 | 2020-09-22 | 清华大学 | Self-adaptive 1-bit data radar imaging method |
CN114785379A (en) * | 2022-06-02 | 2022-07-22 | 厦门大学马来西亚分校 | Underwater sound JANUS signal parameter estimation method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7333547B2 (en) * | 2004-07-14 | 2008-02-19 | Benq Corporation | Methods and devices for dynamic quantizing input of a soft decision decoder |
-
2023
- 2023-03-28 CN CN202310311260.XA patent/CN116366411B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0531923A2 (en) * | 1991-09-10 | 1993-03-17 | Eastman Kodak Company | Method and apparatus for gray-level quantization |
CN1347549A (en) * | 1999-04-16 | 2002-05-01 | 多尔拜实验特许公司 | Using gain-adaptive quantization and non-uniform symbol lengths for audio coding |
WO2009097755A1 (en) * | 2008-02-01 | 2009-08-13 | Huawei Technologies Co., Ltd. | A method and apparatus for locally detecting signal, a method and apparatus for detecting signal at center, and a system for detecting signal |
CN105138304A (en) * | 2015-07-28 | 2015-12-09 | 北京华力创通科技股份有限公司 | Adaptive quantization method and apparatus of digital signal |
CN105911570A (en) * | 2016-06-24 | 2016-08-31 | 成都国恒空间技术工程有限公司 | Satellite communication burst capturing method |
CN105933006A (en) * | 2016-06-24 | 2016-09-07 | 中国科学技术大学 | Single-bit compression sampling method based on time-varying threshold |
CN108847905A (en) * | 2018-06-14 | 2018-11-20 | 电子科技大学 | A kind of multichannel fanaticism number detects the adaptive threshold detecting method in receiving |
CN111693993A (en) * | 2020-05-08 | 2020-09-22 | 清华大学 | Self-adaptive 1-bit data radar imaging method |
CN114785379A (en) * | 2022-06-02 | 2022-07-22 | 厦门大学马来西亚分校 | Underwater sound JANUS signal parameter estimation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN116366411A (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101158291B1 (en) | Device and method for voice activity detection | |
CN102959625B (en) | Method and apparatus for adaptively detecting voice activity in input audio signal | |
JP2011515975A (en) | Automatic filter control | |
CN109508510A (en) | A kind of rubidium atomic clock parameter estimation algorithm based on improved Kalman filtering | |
US20080065376A1 (en) | Audio encoder | |
CN114785379A (en) | Underwater sound JANUS signal parameter estimation method and system | |
US20080144708A1 (en) | Method and apparatus for equalization | |
CN116366411B (en) | Multi-bit signal quantization self-adaptive threshold generation and quantization method | |
US11610601B2 (en) | Method and apparatus for determining speech presence probability and electronic device | |
US6873279B2 (en) | Adaptive decision slicer | |
CN118689114A (en) | A controller performance adaptive optimization method based on intelligent algorithm | |
CN113299284A (en) | Speech recognition device, method, equipment and medium based on adaptive filtering | |
US20200265861A1 (en) | Digital audio processing device, digital audio processing method, and digital audio processing program | |
US7292974B2 (en) | Method for recognizing speech with noise-dependent variance normalization | |
CN114513842B (en) | Digital automatic gain control implementation method in pulse signal receiver | |
KR100798056B1 (en) | Speech Processing Method for Improving Sound Quality in Highly Negative Noise Environments | |
JPH1079667A (en) | Distortion detecting device, device and method for distortion correction | |
CN119229886B (en) | Audio gain method, electronic device and computer readable storage medium | |
GB2426167A (en) | Quantile based noise estimation | |
CN120185771A (en) | Code rate self-adaption method and system based on Polar codes | |
CN113541624B (en) | Small signal processing method for power amplifier control | |
CN119853737B (en) | Signal noise reduction method and system for improving power line communication quality | |
US20080025167A1 (en) | Calibration apparatus and related method for servo system of optical disc drive | |
CN111490829B (en) | Signal dynamic regulation method and system and application thereof in optical fiber sensing | |
CN119696544A (en) | Data filtering method for weighing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Building 4, Jiangguang Smart City East Garden, No. 15 Wenchang East Road, Guangling District, Yangzhou City, Jiangsu Province, 225006 Patentee after: Yangzhou Yuan Electronic Technology Co.,Ltd. Country or region after: China Address before: Building 4, Dongyuan, Jiangguang smart city, No. 15, Wenchang East Road, Guangling District, Yangzhou City, Jiangsu Province 225002 Patentee before: YANGZHOU YU'AN ELECTRONIC TECHNOLOGY CO.,LTD. Country or region before: China |