Signal processing method, device and electronic device

By performing image processing and gain processing on the sampled signal, and adaptively selecting the integration step size, the problem of low signal-to-noise ratio and poor denoising effect in the environment with complex and changeable signal waveforms in the existing technology has been solved, and a better denoising effect has been achieved. Good denoising effect and stability.

CN114997233BActive Publication Date: 2024-10-01BEIHANG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210643786.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2024-10-01
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing denoising filters are difficult to achieve good denoising effects in environments with low signal-to-noise ratio, low signal sampling frequency, and complex and changeable signal waveforms. In particular, the phase of the output signal is affected by the low sampling frequency and the complexity of the signal waveform. Lag and noise sensitivity issues.

Method used

By performing image processing and gain processing on the sample signal to be processed, the integration step is calculated and input into the function of the tracking differentiator, and the integration step is adaptively selected for denoising filtering. This method extracts the dynamic characteristics of the signal based on the image recognition algorithm and adjusts the integration step size to improve the denoising effect.

Benefits of technology

It achieves better denoising effect, reduces phase lag and noise sensitivity, and improves signal smoothness and stability in environments with low signal-to-noise ratio, low signal sampling frequency, and complex and changeable signal waveforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114997233B_ABST
    Figure CN114997233B_ABST
Patent Text Reader

Abstract

The present invention provides a signal processing method, device and electronic device, which perform image processing on the acquired sampled signal to be processed to obtain the image to be identified; perform gain processing on the image to be identified to obtain the image after gain processing; determine the integral step length according to the preset sampling period, the image area and the line segment area of ​​the image after gain processing; input the integral step length into the function corresponding to the preset tracking differentiator, and output the signal after denoising and filtering processing on the sampled signal to be processed. This method performs image processing on the sampled signal to be processed, calculates the integral step length based on the obtained image to be identified, and performs denoising and filtering processing on the sampled signal to be processed based on the preset tracking differentiator, so that the tracking differentiator can autonomously select the integral step length according to the dynamic characteristics of the current sampling signal, and has a good denoising effect for discrete signals with low signal sampling frequency, high signal-to-noise ratio and complex and changeable signal waveform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing technology, and in particular to a signal processing method, device and electronic equipment. Background Art

[0002] There are many kinds of denoising filters available at present, such as low-pass filters and wavelet denoising filters based on the frequency domain; least squares fitting denoising and numerical moving average denoising based on the time domain; and tracking differentiator algorithms based on fastest tracking. These denoising methods have certain feasibility in certain usage environments, but it is difficult to achieve good denoising effects in working environments with low signal-to-noise ratio, low signal sampling frequency, and complex and changeable signal waveforms. Summary of the invention

[0003] The object of the present invention is to provide a signal processing method, device and electronic device to achieve better denoising effect in a working environment with low signal-to-noise ratio, low signal sampling frequency and complex and changeable signal waveform.

[0004] The present invention provides a signal processing method, which includes: obtaining a sampled signal to be processed; performing image processing on the sampled signal to be processed to obtain an image to be identified corresponding to the sampled signal to be processed; performing gain processing on the image to be identified to obtain an image after gain processing; determining an integration step length according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​the sampled signal in the image after gain processing; inputting the integration step length into a function corresponding to a preset tracking differentiator, and outputting a signal after denoising and filtering the sampled signal to be processed.

[0005] Furthermore, the step of performing gain processing on the image to be identified to obtain the image after gain processing includes: obtaining a preset reference value, calculating a longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified; and processing the image to be identified according to the longitudinal gain coefficient to obtain the image after gain processing.

[0006] Furthermore, the step of determining the integration step size according to a preset sampling period, an image area of ​​the gain-processed image, and a line segment area of ​​the sampling signal in the gain-processed image includes: calculating the image area of ​​the gain-processed image according to the lateral and longitudinal dimensions of the gain-processed image; calculating the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the gain-processed image to obtain a sum result; calculating the product of the sum result and the sampling period to obtain a line segment area of ​​the sampling signal in the gain-processed image; and determining the integration step size based on the sampling period, the image area, and the line segment area.

[0007] Furthermore, based on the sampling period, image area and line segment area, the step of determining the integration step size includes: obtaining a preset integration step size adaptive function; calculating the ratio of the image area to the line segment area to obtain an area ratio; inputting the area ratio into the integration step size adaptive function to obtain an output result of the adaptive function; calculating the ratio of the sampling period to the output result of the adaptive function to obtain the integration step size.

[0008] Furthermore, the step of obtaining the sampled signal to be processed includes: obtaining the analog signal to be processed and a preset signal window width; sampling the analog signal according to the sampling period to obtain an initial sampled signal; and selecting the sampled signal to be processed from the initial sampled signal according to the signal window width.

[0009] The present invention provides a signal processing device, which includes: an acquisition module, which is used to acquire a sampled signal to be processed; an image processing module, which is used to perform image processing on the sampled signal to be processed, and obtain an image to be identified corresponding to the sampled signal to be processed; a gain processing module, which is used to perform gain processing on the image to be identified, and obtain an image after gain processing; a determination module, which is used to determine the integration step length according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​the sampled signal in the image after gain processing; and an output module, which is used to input the integration step length into a function corresponding to a preset tracking differentiator, and output a signal after denoising and filtering the sampled signal to be processed.

[0010] Furthermore, the gain processing module is also used to: obtain a preset reference value, calculate a longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified; and process the image to be identified according to the longitudinal gain coefficient to obtain a gain-processed image.

[0011] Furthermore, the determination module is also used to: calculate the image area of ​​the gain-processed image based on the lateral size and longitudinal size of the gain-processed image; calculate the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the gain-processed image to obtain the sum result; calculate the product of the sum result and the sampling period to obtain the line segment area of ​​the sampling signal in the gain-processed image; determine the integration step size based on the sampling period, the image area and the line segment area.

[0012] An electronic device provided by the present invention includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any one of the above signal processing methods.

[0013] The present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement any one of the above-mentioned signal processing methods.

[0014] The signal processing method, device and electronic device provided by the present invention obtain a sampled signal to be processed; perform image processing on the sampled signal to be processed to obtain an image to be identified corresponding to the sampled signal to be processed; perform gain processing on the image to be identified to obtain an image after gain processing; determine the integral step length according to a preset sampling period, the image area of ​​the image after gain processing, and the line segment area of ​​the sampled signal in the image after gain processing; input the integral step length into a function corresponding to a preset tracking differentiator, and output a signal after denoising and filtering the sampled signal to be processed. This method performs image processing on the sampled signal to be processed, calculates the integral step length based on the obtained image to be identified, and performs denoising and filtering on the sampled signal to be processed based on a preset tracking differentiator, so that the tracking differentiator can autonomously select the integral step length according to the dynamic characteristics of the current sampling signal, and has a good denoising effect for discrete signals with low signal sampling frequency, high signal-to-noise ratio, and complex and changeable signal waveform. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A flow chart of a signal processing method provided by an embodiment of the present invention;

[0017] Figure 2 A flowchart of another signal processing method provided by an embodiment of the present invention;

[0018] Figure 3 A schematic diagram of a signal processing effect provided by an embodiment of the present invention;

[0019] Figure 4 A schematic diagram of another signal processing effect provided by an embodiment of the present invention;

[0020] Figure 5 A schematic diagram of another signal processing effect provided by an embodiment of the present invention;

[0021] Figure 6 A schematic diagram of another signal processing effect provided by an embodiment of the present invention;

[0022] Figure 7 A schematic diagram of a tracking signal of a processed algorithm provided by an embodiment of the present invention;

[0023] Figure 8A schematic diagram of signal curve decomposition provided by an embodiment of the present invention;

[0024] Fig. 9 A schematic diagram of an image processing provided by an embodiment of the present invention;

[0025] Fig.10 A schematic diagram of an image after gain processing provided by an embodiment of the present invention;

[0026] Fig.11 A curve comparison schematic diagram provided for an embodiment of the present invention;

[0027] Fig.12 A schematic diagram of a signal processing result provided by an embodiment of the present invention;

[0028] Fig.13 A schematic diagram of a signal processing result provided by an embodiment of the present invention;

[0029] Fig.14 A curve comparison schematic diagram provided for an embodiment of the present invention;

[0030] Fig.15 A schematic diagram of a processed test data curve provided by an embodiment of the present invention;

[0031] Fig.16 A schematic diagram of a simulation result provided by an embodiment of the present invention;

[0032] Fig.17 A P corresponding to different signal window widths provided in an embodiment of the present invention W Schematic diagram of the curve;

[0033] Fig.18 A schematic diagram of the structure of a signal processing device provided by an embodiment of the present invention;

[0034] Fig.19 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] There are many types of denoising filters available, such as low-pass filters and wavelet denoising filters in the frequency domain; least squares fitting denoising and numerical moving average denoising in the time domain; and tracking differentiator algorithms based on the fastest tracking. These denoising methods are difficult to effectively play their role in working environments with low signal-to-noise ratio (no more than 40dB), low signal sampling frequency (no more than 50Hz), and complex and changeable signal waveforms. The main reasons are as follows:

[0037] 1) Methods such as least squares fitting and moving average denoising, which calculate and analyze past data points, essentially use multiple received points to smooth the current signal noise and make the output signal curve smooth. However, if you want to achieve excellent denoising effects, you need to use more past data points, and the more past data points are introduced, the more serious the phase lag of the output signal. At the same time, the problem of low sampling frequency will significantly aggravate this contradiction.

[0038] 2) Due to the complex and changeable waveform of the sampled signal, the working bandwidth of the low-pass filter and wavelet denoising filter often cannot completely cover the bandwidth of the input signal, which greatly affects the output result.

[0039] 3) The low signal sampling frequency and signal-to-noise ratio make it difficult for the tracking differential algorithm to simultaneously meet the technical indicators of high output smoothness and small hysteresis.

[0040] Based on this, the embodiments of the present invention provide a signal processing method, device and electronic device. The technology can be applied to applications that require denoising and filtering of sampled signals.

[0041] To facilitate understanding of this embodiment, a signal processing method disclosed in an embodiment of the present invention is first described in detail; Figure 1 As shown, the method comprises the following steps:

[0042] Step S102, obtaining a sample signal to be processed.

[0043] The above-mentioned sampled signal to be processed may be a signal obtained by discretely sampling an analog signal. The sampled signal to be processed usually contains noise, and the noise in the sampled signal to be processed needs to be filtered out to obtain a valid signal of the sampled signal to be processed.

[0044] Step S104, performing image processing on the sampled signal to be processed to obtain an image to be recognized corresponding to the sampled signal to be processed.

[0045] Usually, in the signal curve corresponding to the sampled signal to be processed, the "thickness" of the curve is closely related to the change trend of the signal. The thinner the curve, the greater the signal change trend. Corresponding verification shows that by using the "thickness" information, the change trend can be effectively extracted from the noise sampled signal in real time. However, the "thickness" information is difficult to identify. Therefore, the sampled signal to be processed can be imaged. By performing corresponding image processing on the image to be identified after the image processing, it is easier to identify the "thickness" information in the signal curve.

[0046] Step S106, performing gain processing on the image to be recognized to obtain a gain-processed image.

[0047] The key difficulty in extracting "thickness" information is that unless the sampling signal is in a stable state, the "thickness" of the curve has both vertical and horizontal components, but the horizontal component is difficult to obtain. Therefore, the image to be identified can be subjected to gain processing to obtain a gain-processed image, in which the "thickness" difference of the curve can be clearly shown.

[0048] Step S108, determining the integration step length according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​the sampling signal in the image after gain processing;

[0049] The above-mentioned sampling period can be the time interval between two adjacent sampling signal points in the above-mentioned sampling signal to be processed; the above-mentioned image area can be the product of the longitudinal dimension and the lateral dimension of the image after gain processing; the above-mentioned line segment area can be understood as the area actually covered by the signal curve of the sampling signal in the image after gain processing; in actual implementation, the above-mentioned integration step size can be determined based on the preset sampling period, the image area of ​​the image after gain processing, and the line segment area.

[0050] Step S110, inputting the integration step length into a function corresponding to a preset tracking differentiator, and outputting a signal after denoising and filtering the sampled signal to be processed.

[0051] The function corresponding to the above-mentioned tracking differentiator can be a function based on fhan. The above-mentioned integral step size can be substituted into the preset fhan function to calculate the filtered output signal, which is the signal after denoising and filtering of the sampled signal to be processed.

[0052] The following provides Figure 2The flowchart of another signal processing method shown in FIG. 1 is to input the analog signal into the hardware signal acquisition system, output the discrete signal, and the operator completes the relevant settings such as the signal window width, the adaptive selection function of the integral step in advance, and processes the discrete signal into images, performs image analysis and step selection on the output image, and substitutes the selected integral step h into the fhan function to calculate the filtered output signal to obtain the output signal. This method improves the fhan-based tracking differentiator based on the idea of ​​image recognition, so that it can adaptively select the appropriate integral step according to the dynamic characteristics of the current input signal and thereby greatly improve its denoising filtering level.

[0053] The following is a brief introduction to the working principle of the traditional FHAN-based tracking differentiator: a second-order integral series system is artificially designed, and the first and second order states of the system are the tracking signal of the sampling signal and the differential signal of the tracking signal respectively; based on this, the control input of the system is set to make the first-order state parameters of the system track the input of the sampling signal. Therefore, as long as the phase lag of the second-order system is small enough and the tracking effect can meet the accuracy and denoising effect, the output of this first-order state parameter can be regarded as the denoising filter output of the sampling signal. The discrete form of the system is as follows:

[0054]

[0055] Among them, x1 is the tracking signal of the sampling signal, x2 is the differential signal of the tracking signal, parameter r is the constraint condition of the system control input, v(k) is the sampling signal input, u(k) is the artificially set control input, and h is the integration step of the tracking differentiator, which is consistent with the sampling period of the signal here.

[0056] In the prior art, according to the time optimal control algorithm, the discrete control quantity u(k) is obtained as follows (denoted as fhan):

[0057]

[0058] Thus, the tracking differentiator algorithm based on the above fhan is as follows:

[0059]

[0060] The above is the general working principle of the FHAN-based tracking differentiator in the prior art.

[0061] The following is an improvement on the fhan function algorithm and a proof of feasibility. Through experimental verification and mathematical analysis, it can be seen that the denoising effect of the tracking differentiator is closely related to its integral step size. When the integral step size is too large, on the one hand, the convergence speed of the tracking output will be reduced when the sampling signal is in a dynamic state; on the other hand, the sensitivity of the tracking output to noise will be amplified when the sampling signal is in a steady state. The integral step size of the original tracking differentiator is consistent with the sampling period of the signal, which means that when the sampling frequency is low, the tracking differentiator is difficult to perform at its due level.

[0062] Based on this, this embodiment designs a set of adaptive algorithms to enable the tracking differentiator to autonomously select the integration step size according to the dynamic characteristics of the current sampling signal. Specifically, when the sampling signal changes slowly, the integration step size is appropriately reduced; when the sampling signal changes quickly, the integration step size is appropriately increased (not greater than the sampling period). This achieves the purpose of improving the operating efficiency of the differential tracker.

[0063] The feasibility of the improvement plan is demonstrated below:

[0064] 1) Prove that the difference between the integral step of the tracking differentiator and the signal sampling period will not cause a mismatch between the denoising filter output and the sampled signal input.

[0065] First, define it as follows:

[0066]

[0067] This formula is the compression factor of the integration step, where dt is the signal sampling period, h represents the integration step, and K t Characterizes the ratio of the signal sampling period to the integration step size.

[0068] Consider a discrete sinusoidal signal as follows:

[0069] v(i)=A·sin(i·h·K t +θ)

[0070] Where A is the amplitude of the signal, θ is the initial phase, and i is the sequence position of the current signal.

[0071] According to the definition of Kt and the form of v(i), for any real number K t Both:

[0072] v(i)=A·sin(i·dt+θ)

[0073] It can be seen from this that if we only consider it from the perspective of numerical sequence rather than from the perspective of time, even if the value of h is different, as long as the sampled signal satisfies the form of v(i) above, the discrete input signal can be regarded as the following signal under different step sizes h:

[0074] v(i)=A·sin(i·dt+θ)

[0075] This phenomenon can be Figure 3 A schematic diagram of a signal processing effect shown in FIG. Figure 4 Another signal processing effect diagram shown and Figure 5 Another signal processing effect diagram shown in FIG. 1 is a schematic diagram showing an intuitive reflection of the effect. In the figure, v is the sampling signal, x1 is the denoising output signal, dt is the sampling period, and T is the simulation time.

[0076] 2) It is proved that the denoising effect can be effectively improved by changing the integration step size of the tracking differentiator.

[0077] In the numerical simulation, the input signal is given as v(t)=10sin0.5t+n, and the signal acquisition period dt=0.02s, where n is the random noise in the interval (-0.5, 0.5). Figure 6 Another schematic diagram of signal processing effect is shown, which shows the tracking signal of the tracking differentiator algorithm with the original integration step in the range of 0 to 100 seconds.

[0078] Then the integration step of the original tracking differentiator is reduced to one fifth of the original step, and the other parameters remain unchanged, and the following is obtained: Figure 7 Schematic diagram of tracking signal of a processed algorithm shown.

[0079] contrast Figure 6 and Figure 7 It can be clearly seen that in terms of the smoothness of the signal output, by shortening the integration step of the differentiator, the smoothness of the signal tracking filter can be effectively improved while ensuring the phase quality of the signal processing. It can be seen that for a single-state environmental pressure signal, that is, a signal with a relatively single rate of change, the signal processing level can be effectively improved by reasonably setting the integration step of the tracking differentiator.

[0080] The above filter for real-time denoising of discrete sampling signals can be roughly summarized as follows: first, the current discrete sampling signal is obtained, then the sampling signal is analyzed and denoised by the built-in algorithm, and finally the denoised signal is synchronously output. The characteristics of the denoising filter may include: 1) good signal-to-noise ratio improvement effect; 2) small phase lag; 3) strong stability, that is, it can effectively adapt to signals with different dynamic characteristics.

[0081] The above signal processing method obtains the sampled signal to be processed; performs image processing on the sampled signal to be processed to obtain the image to be identified corresponding to the sampled signal to be processed; performs gain processing on the image to be identified to obtain the image after gain processing; determines the integral step length according to the preset sampling period, the image area of ​​the image after gain processing, and the line segment area of ​​the sampled signal in the image after gain processing; inputs the integral step length into the function corresponding to the preset tracking differentiator, and outputs the signal after denoising and filtering the sampled signal to be processed. This method performs image processing on the sampled signal to be processed, calculates the integral step length based on the obtained image to be identified, and performs denoising and filtering on the sampled signal to be processed based on the preset tracking differentiator, so that the tracking differentiator can autonomously select the integral step length according to the dynamic characteristics of the current sampling signal, and has a good denoising effect for discrete signals with low signal sampling frequency, high signal-to-noise ratio, and complex and changeable signal waveform.

[0082] The embodiment of the present invention further provides another signal processing method, which is implemented on the basis of the method in the above embodiment; the method comprises the following steps:

[0083] Step 1: Obtain the analog signal to be processed and the preset signal window width.

[0084] The above analog signal refers to information represented by a continuously changing physical quantity, whose amplitude, frequency, or phase changes continuously over time, or within a continuous time interval, the characteristic quantity representing the information can be presented as a signal of any value at any moment. The above signal window width can be understood as the number of signal points used by the tracking differentiator each time the output signal is calculated. For example, when calculating the i-th signal point, assuming that the signal window width is W, the signal points used for analysis and calculation are the W signal points between the iWth and i-th signals.

[0085] Step 2: Sample the analog signal according to the sampling period to obtain an initial sampling signal. In actual implementation, the analog signal can be input into a hardware signal acquisition system, and the hardware signal acquisition system can perform discrete sampling on the analog signal to obtain a discrete initial sampling signal.

[0086] Step three: select the sampling signal to be processed from the initial sampling signal according to the signal window width.

[0087] For example, if the signal window width is W, the sampled signal to be processed selected from the initial sampled signal includes W signal points.

[0088] Through multiple simulation experiments and mathematical derivations, the following analysis is conducted before the specific algorithm is clarified: 1) Since the output power of the controller execution component is limited, the integral step h will affect the output phase of the tracking differentiator (the larger h is, the more likely it is to cause serious phase lag); 2) When the sampling signal is in a steady state, the main problem for the tracking differentiator is denoising rather than phase lag; 3) For the tracking differentiator, the sensitivity of the output phase lag to the h value is proportional to the rate of change of the sampling signal.

[0089] Based on the above research, the initial integration step selection strategy can be stated as follows: the compression degree of the integration step is proportional to the severity of the current sampling signal change. Therefore, the main problem of the algorithm design of this embodiment is to clarify how to extract the current signal change rate information from the real-time sampling data with noise.

[0090] Since the sampling signals present different waveforms under different working conditions, for the convenience of analysis, these signal curves are decomposed into the following five forms, such as Figure 8 A schematic diagram of signal curve decomposition is shown in FIG. Figure 8 The five types of images shown in (a), (b), (c), (d), and (e) can be stretched, flipped vertically, and spliced ​​to form any existing signal form. These five types of signal curves can be used to train image recognition algorithms. In theory, based on the superposition principle, the trained algorithm should be able to process any type of sampled signal.

[0091] Step 4: Perform image processing on the sampled signal to be processed to obtain an image to be identified corresponding to the sampled signal to be processed.

[0092] observe Figure 8 From the five types of signal curves, it can be seen that the "thickness" of the curve is closely related to the change trend of the signal. The thinner the curve, the greater the signal change trend. Corresponding verification shows that by using the "thickness" information, the change trend can be effectively extracted from the noise sampling signal in real time. However, the "thickness" information is difficult to identify. In order to solve this problem, an image recognition algorithm is introduced. The following are the specific steps:

[0093] 1) Sample signal visualization

[0094] The signal points near the current sampling signal are used as signal windows for image recognition. Fig. 9 A schematic diagram of an imaging process is shown.

[0095] Step 5: Obtain a preset reference value, and calculate the longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified.

[0096] When the sampling signal is not in a stable state, the "thickness" of the curve has both longitudinal and transverse components, but the transverse component is difficult to obtain. On the other hand, the relative proportion of the transverse component is inversely proportional to the slope of the signal curve, and the slope is proportional to the longitudinal dimension l. Based on this analysis, a longitudinal gain coefficient P can be established y , which is used to identify the slope of the curve. Specifically, it measures the vertical dimension of the signal image and makes P y =l0 / l, where l0 corresponds to the above-mentioned reference value, corresponding to the vertical dimension of the steady-state sampling signal image; l is the vertical dimension of the image to be identified. Fig.10 The schematic diagram of a gain-processed image is shown in FIG. y Multiply by l, such as Fig.10 As shown in Figure (a) in Figure 2, the image corresponding to the stable signal is shown in Figure 2. Fig.10 As shown in Figure (b).

[0097] Step six, processing the image to be identified according to the longitudinal gain coefficient to obtain a gain-processed image.

[0098] According to the above longitudinal gain coefficient, the image to be identified is subjected to gain processing to obtain the above gain-processed image. Fig.10 In (a) and (b), the difference in the thickness of the curve in the image is clearly shown. Moreover, it can be seen from the image that the information of the thickness of the curve can also be defined by calculating the area of ​​the line segment in the image. Therefore, the tracking differentiator can use numerical calculations to extract the trend of the sampled signal.

[0099] Step seven, calculating the image area of ​​the gain-processed image according to the lateral size and longitudinal size of the gain-processed image.

[0100] For the obtained gain-processed image, its longitudinal and lateral dimensions are set to l and t respectively. d , where l is the difference between the maximum and minimum values ​​in the signal window, t d is the time span of the signal window. The image area obtained can be expressed as:

[0101] S=t d ×

[0102] Step eight, calculating the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the image after gain processing, and obtaining a sum result.

[0103] Step nine, calculating the product of the summation result and the sampling period, and obtaining the line segment area of ​​the sampling signal in the image after gain processing.

[0104] Suppose the area of ​​the line segment in the signal image is SS .

[0105] Obviously there are:

[0106]

[0107] Where v(·) is the signal value and n is the number of signal points in the signal window.

[0108] Step ten, determine the integration step size based on the sampling period, image area and line segment area.

[0109] The step 10 can be specifically implemented by following steps A to D:

[0110] Step A, obtaining a preset integral step adaptive function;

[0111] Step B, calculating the ratio of the image area to the line segment area to obtain an area ratio;

[0112] Step C, inputting the area ratio into the integral step adaptive function to obtain the output result of the adaptive function;

[0113] Step D, calculating the ratio of the sampling period to the output result of the adaptive function to obtain the integration step length.

[0114] The "thickness" of the signal curve can be reflected by the line segment area of ​​the signal image in the aforementioned process. Since each signal image has the same area, for convenience, the thickness coefficient Pw is introduced, which is defined as follows:

[0115]

[0116] Therefore, the “thickness” of the sampling signal curve can be characterized by the area ratio of the line segment to the entire image. w It is inversely proportional to the thickness of the sampled signal curve at the current time step, that is, proportional to the rate of change of the sampled signal. w , which can be used to construct an adaptive integration step selection algorithm for tracking differentiators. For example:

[0117] K t =f(P w )

[0118] Among them, f(P w ) is related to the coefficient P w The relevant functions need to be pre-set by the operator according to the sampling signal characteristics and his own needs.

[0119] When implementing it, you can predefine

[0120] Among them, K tis the compression factor of the integration step, where dt is the signal sampling period, that is, K t Characterizes the ratio of the signal sampling period to the integration step size.

[0121] Therefore, dt and K can be calculated t The ratio of can be used to obtain the above integration step length h.

[0122] The step size selection function K t =f(P w ) or h=f(P w ) is the step size with respect to the coefficient P W function, and when the window width W is selected to different values, P W Therefore, after determining the signal window width, we should first perform simulation filtering through historical sampling data to determine the approximate P W range, and then clarify when P W When is the integral step size the maximum or minimum?

[0123] Step eleven, input the integral step length into the function corresponding to the preset tracking differentiator, and output the signal after the denoising and filtering processing is performed on the sampled signal to be processed.

[0124] The following uses an artificial signal as an example to verify the image recognition algorithm. The sampling frequency of the artificial sampling signal is set to 50Hz and the signal-to-noise ratio is 26dB. Fig.11 A curve comparison diagram is shown, which is a signal curve of the sampled signal to be processed obtained according to the above steps and P w Comparison chart of the curves.

[0125] from Fig.11 Comparison of the two curves shows that P w It is highly sensitive to the trend change of the sampled signal v to be processed, has low hysteresis and is almost unaffected by noise. The steady-state region and dynamic region of v are in P w There is a clear distinction in the curves, therefore, sufficient to provide clear information on the dynamic characteristics.

[0126] For this example, the chosen strategy for setting the integration step size is shown in the following formula.

[0127]

[0128] Where K tmax is the maximum compression factor of dt, K tmin is the minimum compression multiple of dt, P wmin is the P corresponding to when h just reaches the minimum value w Value, P wmax is the P corresponding to when h just reaches its maximum valuew Value. K tmax , K tmin , P wmin , P wmax The four parameters are pre-set by considering the characteristics of the system itself, and are set here as: [K tmax K tmin P wmin P wmax ]=[15 1 515].

[0129] like Fig.12 The figure is a schematic diagram of a signal processing result, which is a schematic diagram of the output of the sensor acquisition signal after the real-time step size h of the tracking differentiator set above.

[0130] Depend on Fig.12 It can be seen that the real-time step size selection strategy implemented in the embodiment of this article can effectively set a reasonable real-time step size of the tracking differentiator under different acquisition signal trends. The prediction speed and accuracy of the dynamic characteristics of the acquisition signal directly determine the rationality of the current selection of the differentiator integral step size and ultimately affect the quality of the tracking differential signal processing.

[0131] Next, the denoising filter algorithm will be simulated and verified and the results analyzed using artificial numerical signals and actual test data.

[0132] Now take Fig.12 The artificial sampling signal shown in the figure is used for simulation verification, and the relevant parameters are set as follows: the signal sampling interval dt is 0.02s, the total signal duration T is 1600s, the signal-to-noise ratio is 26dB, the signal window width W is 300, the constraint r is 10 (this value corresponds to the upper limit of the controller output power), the minimum and maximum equal division multiples K are tmin With K tmax Take 6 and 10 respectively, P wmin With P wmax Take 3.5 and 6 respectively. Then simulate and get Fig.13 A schematic diagram of a signal processing result is shown in FIG. Comparing the tracking output curves of the fixed step tracking differentiator and the improved variable step tracking differentiator, the following is obtained: Fig.14 A curve comparison schematic diagram is shown.

[0133] pass Fig.13 and Fig.14 It can be seen from the two figures that the new denoising filter constructed based on the image recognition algorithm and the variable step tracking differentiator algorithm in this paper can better denoise the sampled signal compared with the original fixed step tracking differentiator. Specifically, it effectively reduces the distortion of the signal in the sinusoidal fluctuation section, significantly improves the smoothness of the signal in the stable section, and greatly improves the signal-to-noise ratio of the output signal.

[0134] The actual pressure sampling data of an air pipe network system is selected for real-time simulation (the test data is provided by the High Altitude Simulation Laboratory of China Aero Engine Turbine Research Institute). Since this group of test data has undergone a certain data smoothing process before exporting, the real-time signal obtained by its sensor has a lower signal-to-noise ratio than this group of data. In order to better illustrate the credibility and engineering application capabilities of this method, this embodiment superimposed artificial Gaussian noise in the range of (-0.5, 0.5) on this group of test data, and obtained the following: Fig.15 A schematic diagram of a processed test data curve is shown.

[0135] See also Fig.16 A schematic diagram of a simulation result is shown in FIG. 1 . The parameter selection steps are performed as described above for the curve, and the simulation results are as follows Fig.16 As shown in Figures (a) and (b) in the figure. Fig.16 From the comparison curve in Figure (b), it can be seen that the method adopted in this paper can still effectively process the actual test data and obtain relatively ideal output results.

[0136] The denoising filter designed in this embodiment requires the operator to set it before use, including the signal window width and the integral step length selection function. The setting of these parameters and functions greatly affects the working efficiency of the filter. The following will briefly describe the rules that the filter related settings should follow.

[0137] Among them, the signal window width affects the "thickness" coefficient P W The clarity of the curve, such as Fig.17 P corresponding to a different signal window width shown W Curve diagram, where Fig.17 (a) corresponds to P when the signal window frame W = 300 W Curve and signal curve of the sampled signal to be processed, Fig.17 (b) shows the corresponding signal window frame W = 800 when P W The signal curve and the signal curve of the sampled signal to be processed. When the signal trend in the signal window is monotonic, the wider the signal window width, the clearer the sampling signal change rate can be extracted. When the signal in the signal window is non-monotonic (such as increasing first and then decreasing or decreasing first and then increasing), P W Therefore, when setting the signal window width, the operator should first observe the characteristics of the historical sampling signal and try to ensure that the signal within the signal window width basically maintains a monotonic change trend.

[0138] The above-mentioned denoising filter algorithm based on image recognition and tracking differentiator has better denoising effect for discrete signals with low sampling frequency and high signal-to-noise ratio; in addition, this method has strong stability and can maintain efficient operation under most frequency inputs.

[0139] The embodiment of the present invention provides a signal processing device, such as Fig.18 As shown, the device includes: an acquisition module 180, which is used to acquire a sampled signal to be processed; an image processing module 181, which is used to perform image processing on the sampled signal to be processed, and obtain an image to be identified corresponding to the sampled signal to be processed; a gain processing module 182, which is used to perform gain processing on the image to be identified, and obtain an image after gain processing; a determination module 183, which is used to determine the integration step according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​the sampled signal in the image after gain processing; an output module 184, which is used to input the integration step into a function corresponding to a preset tracking differentiator, and output a signal after denoising and filtering the sampled signal to be processed.

[0140] The above-mentioned signal processing device obtains the sampled signal to be processed; performs image processing on the sampled signal to be processed to obtain the image to be identified corresponding to the sampled signal to be processed; performs gain processing on the image to be identified to obtain the image after gain processing; determines the integration step length according to the preset sampling period, the image area of ​​the image after gain processing, and the line segment area of ​​the sampled signal in the image after gain processing; inputs the integration step length into the function corresponding to the preset tracking differentiator, and outputs the signal after denoising and filtering the sampled signal to be processed. The device performs image processing on the sampled signal to be processed, calculates the integration step length based on the obtained image to be identified, and performs denoising and filtering on the sampled signal to be processed based on the preset tracking differentiator, so that the tracking differentiator can autonomously select the integration step length according to the dynamic characteristics of the current sampling signal, and has a good denoising effect for discrete signals with low signal sampling frequency, high signal-to-noise ratio, and complex and changeable signal waveform.

[0141] Furthermore, the gain processing module 182 is also used to: obtain a preset reference value, calculate a longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified; and process the image to be identified according to the longitudinal gain coefficient to obtain a gain-processed image.

[0142] Furthermore, the determination module 183 is also used to: calculate the image area of ​​the gain-processed image based on the lateral size and longitudinal size of the gain-processed image; calculate the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the gain-processed image to obtain the sum result; calculate the product of the sum result and the sampling period to obtain the line segment area of ​​the sampling signal in the gain-processed image; determine the integration step size based on the sampling period, the image area and the line segment area.

[0143] Furthermore, the determination module 183 is also used to: obtain a preset integral step adaptive function; calculate the ratio of the image area to the line segment area to obtain the area ratio; input the area ratio into the integral step adaptive function to obtain the output result of the adaptive function; calculate the ratio of the sampling period to the output result of the adaptive function to obtain the integral step.

[0144] Furthermore, the acquisition module 180 is also used to: acquire the analog signal to be processed and a preset signal window width; sample the analog signal according to the sampling period to obtain an initial sampling signal; and select the sampling signal to be processed from the initial sampling signal according to the signal window width.

[0145] The signal processing device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned signal processing method embodiment. For the sake of brief description, for matters not mentioned in the signal processing device embodiment, reference may be made to the corresponding contents in the aforementioned signal processing method embodiment.

[0146] The embodiment of the present invention further provides an electronic device, see Fig.19 As shown, the electronic device includes a processor 130 and a memory 131 , wherein the memory 131 stores machine executable instructions that can be executed by the processor 130 , and the processor 130 executes the machine executable instructions to implement the above signal processing method.

[0147] Further, Fig.19 The electronic device shown further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .

[0148] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.19 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0149] The processor 130 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the above embodiment in combination with its hardware.

[0150] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned signal processing method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0151] The computer program products of the signal processing methods, devices, and electronic devices provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0152] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A signal processing method, characterized in that: The method comprises: Obtaining a sampling signal to be processed; Performing image processing on the sampled signal to be processed to obtain an image to be identified corresponding to the sampled signal to be processed; Performing gain processing on the image to be identified to obtain a gain-processed image; Determine the integration step length according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​a sampling signal in the image after gain processing; Inputting the integration step into a function corresponding to a preset tracking differentiator, and outputting a signal after denoising and filtering the sampled signal to be processed; The step of determining the integration step length according to a preset sampling period, an image area of ​​the gain-processed image, and a line segment area of ​​the sampling signal in the gain-processed image comprises: Calculating the image area of ​​the gain-processed image according to the lateral size and the longitudinal size of the gain-processed image; Calculating the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the image after gain processing to obtain a sum result; Calculating the product of the summation result and the sampling period to obtain a line segment area of ​​the sampling signal in the gain-processed image; The integration step size is determined based on the sampling period, the image area and the line segment area.

2. The method according to claim 1, characterized in that: The step of performing gain processing on the image to be identified to obtain the image after gain processing comprises: Obtaining a preset reference value, and calculating a longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified; The image to be identified is processed according to the longitudinal gain coefficient to obtain the gain-processed image.

3. The method according to claim 1, characterized in that Based on the sampling period, the image area and the line segment area, the step of determining the integration step size comprises: Get the preset integration step adaptive function; Calculating the ratio of the image area to the line segment area to obtain an area ratio; Inputting the area ratio into the integration step adaptive function to obtain an adaptive function output result; The ratio of the sampling period to the output result of the adaptive function is calculated to obtain the integration step size.

4. The method according to claim 1, characterized in that: The steps of obtaining the sampled signal to be processed include: Obtaining an analog signal to be processed and a preset signal window width; According to the sampling period, the analog signal is sampled to obtain an initial sampling signal; According to the signal window width, the sampling signal to be processed is selected from the initial sampling signal.

5. A signal processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a sampled signal to be processed; An image processing module, used for performing image processing on the sampled signal to be processed to obtain an image to be identified corresponding to the sampled signal to be processed; A gain processing module, used for performing gain processing on the image to be identified to obtain an image after gain processing; A determination module, used to determine the integration step size according to a preset sampling period, an image area of ​​the image after gain processing, and a line segment area of ​​the sampling signal in the image after gain processing; An output module, used for inputting the integral step length into a function corresponding to a preset tracking differentiator, and outputting a signal after denoising and filtering the sampled signal to be processed; The determining module is also used for: Calculating the image area of ​​the gain-processed image according to the lateral size and the longitudinal size of the gain-processed image; Calculating the sum of the absolute values ​​of the differences between the signal values ​​corresponding to each two adjacent signal points in the image after gain processing to obtain a sum result; Calculating the product of the summation result and the sampling period to obtain a line segment area of ​​the sampling signal in the gain-processed image; The integration step size is determined based on the sampling period, the image area and the line segment area.

6. The device according to claim 5, characterized in that The gain processing module is also used for: Obtaining a preset reference value, and calculating a longitudinal gain coefficient according to the reference value and the longitudinal size of the image to be identified; The image to be identified is processed according to the longitudinal gain coefficient to obtain the gain-processed image.

7. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the signal processing method according to any one of claims 1 to 4.

8. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the signal processing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Image enhancement and abstraction method based on anisotropic filtering

    CN102800063A

  • CT image acquisition method and device and CT machine

    CN111513747A

  • Target identification method, electronic equipment and computer readable medium

    CN113269264A

  • Comprehensive pipe gallery risk identification method and system based on sound signal imaging

    CN114445619A

  • Signal reading device for solid-state image pickup device

    JP1987213485A