Signal processing method, device, intelligent terminal and storage medium
By comparing the difference value of the sensor signal and determining the interference signal based on the counting or timing values, the problem that the prior art cannot remove sensor signal interference in the water body is solved, and the effect of improving the accuracy of water quality analysis is achieved.
Patent Information
- Application Number
- CN202110264079.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-11
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-03-11
AI Technical Summary
The prior art cannot effectively remove interference signals in sensor signals collected in water bodies, resulting in inaccurate water quality analysis results.
By comparing the difference between the currently acquired signal and the stable signal acquired last time, if the difference is greater than the preset threshold, counting or timing will start until the difference is less than or equal to the threshold. Then, the interference signal is determined based on the count value or the timing value, and processed, for example, replaced with a stable signal or interpolation processing.
Effectively filter out interference signals from sensor signals to improve the accuracy of water quality analysis results.
Smart Images

Figure CN113052021B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a signal processing method, device, intelligent terminal and storage medium. Background Art
[0002] The sensor signal collected by the water quality analyzer is sampled by the signal conditioning circuit and ADC, and the analog signal is converted into a digital signal for calculation to analyze the water quality. For the sensor signal collected in the laboratory environment, there will be random noise such as Gaussian noise, which can be removed by wavelet denoising or other denoising methods.
[0003] However, the sensors in water quality analyzers usually collect sensor signals in water bodies. In addition to random noise such as Gaussian noise, the sensor signals collected in this environment also contain interference signals that are much larger than the sensor signals. This interference signal cannot be filtered out using traditional denoising methods, causing obvious abnormalities in the measurement signal and inaccurate water quality analysis results.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a signal processing method, device, intelligent terminal and storage medium are provided, aiming to solve the problem that the existing denoising method cannot filter out the interference signals in the sensor signals collected in the water body, resulting in inaccurate analysis results.
[0006] The technical solution adopted by the present invention to solve the problem is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a signal processing method, which includes:
[0008] Acquire a first signal, and compare the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently acquired signal, and the second signal is a previously acquired stable signal;
[0009] When the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started, and the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold are continuously performed until the difference between the first signal and the second signal is less than or equal to the first threshold;
[0010] Obtain a count value or a timing value, and compare the count value or the timing value with a preset second threshold value. When the count value or the timing value is less than or equal to the second threshold value, determine that several of the first signals within the counting or timing time period are interference signals, and process the several interference signals.
[0011] The signal processing method, wherein after the step of comparing the difference between the first signal and the second signal with a preset first threshold, further comprises:
[0012] When the difference between the first signal and the second signal is less than or equal to the first threshold, it is determined that the first signal is a stable signal.
[0013] The signal processing method, wherein after the step of comparing the count value or the timing value with a preset second threshold, further comprises:
[0014] When the count value or the timing value is greater than the second threshold, it is determined that a number of the first signals within the count or timing period are stable signals.
[0015] The signal processing method, wherein the step of processing the plurality of interference signals comprises:
[0016] A number of the interference signals are replaced by the second signal.
[0017] The signal processing method, wherein the step of processing the plurality of interference signals comprises:
[0018] Determine, according to the plurality of interference signals, interpolation functions corresponding to the plurality of interference signals;
[0019] According to the interpolation function, interpolation processing is performed on the plurality of interference signals.
[0020] The signal processing method, wherein the method further comprises:
[0021] Performing window filtering processing on the plurality of stable signals by using a preset filter to determine target signals corresponding to the plurality of stable signals within the filter window;
[0022] A number of the stable signals within a window of the filter are replaced with the target signal.
[0023] The signal processing method, wherein the step of performing window filtering processing on the plurality of stable signals using a preset filter to determine the target signals corresponding to the plurality of stable signals within the filter window comprises:
[0024] Determine a Gaussian filter function of a plurality of the stable signals within a filter window, and determine weight values corresponding to the plurality of the stable signals within the filter window according to the Gaussian filter values;
[0025] A dot product operation is performed on the plurality of stable signals within the filter window and the corresponding weight values to obtain target signals corresponding to the plurality of stable signals within the filter window.
[0026] In a second aspect, an embodiment of the present invention further provides a signal processing device, wherein the device includes:
[0027] A signal comparison module, which acquires a first signal and compares a difference between the first signal and a second signal with a preset first threshold; wherein the first signal is a currently acquired signal, and the second signal is a previously acquired stable signal;
[0028] a signal statistics module, which starts counting or timing when the difference between the first signal and the second signal is greater than the first threshold, and continues to execute the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold until the difference between the first signal and the second signal is less than or equal to the first threshold;
[0029] A signal processing module obtains a count value or a timing value, and compares the count value or the timing value with a preset second threshold value. When the count value or the timing value is less than or equal to the second threshold value, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed.
[0030] In a third aspect, an embodiment of the present invention provides an intelligent terminal, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include steps for executing a signal processing method as described in any one of the above.
[0031] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the steps of the signal processing method as described in any one of the above.
[0032] Beneficial effects of the present invention: The embodiment of the present invention first obtains a first signal, and compares the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently collected signal, and the second signal is a stable signal collected last time; then, when the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started, and the steps of obtaining the first signal and comparing the difference between the first signal and the second signal with the preset first threshold are continued until the difference between the first signal and the second signal is less than or equal to the first threshold; finally, a counting value or a timing value is obtained, and the counting value or the timing value is compared with a preset second threshold, and when the counting value or the timing value is less than or equal to the second threshold, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed. Therefore, the interference signal in the sensor signal is determined according to the difference range between the currently collected signal and the stable signal collected last time and the counting value or the timing value within the time period when the difference range is greater than the preset first threshold, which can effectively filter out the interference signal from the sensor signal and improve the accuracy of the water quality analysis result. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 is a flow chart of a signal processing method provided by an embodiment of the present invention;
[0035] Figure 2 is a comparison diagram of signals before and after processing provided by an embodiment of the present invention;
[0036] Figure 3 is a principle block diagram of a signal processing device provided by an embodiment of the present invention;
[0037] Figure 4 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0040] The sensors in water quality analyzers usually collect sensor signals in water. In this environment, the signals collected contain not only random noise such as Gaussian noise, but also interference signals that are much larger than the sensor signals. Such interference signals cannot be filtered out using traditional filtering methods, such as Figure 2 As shown, after the signal before processing is processed by traditional digital filtering, there are still interference signals, which makes the measurement signal obviously abnormal and leads to inaccurate water quality analysis results.
[0041] In order to solve the problems of the prior art, this embodiment provides a signal processing method, which can effectively filter out interference signals from sensor signals and improve the accuracy of water quality analysis results. In a specific implementation, a first signal is first acquired, and a difference between the first signal and the second signal is compared with a preset first threshold value; wherein the first signal is a currently acquired signal, and the second signal is a stable signal acquired last time; then, when the difference between the first signal and the second signal is greater than the first threshold value, counting or timing is started, and the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with the preset first threshold value are continued until the difference between the first signal and the second signal is less than or equal to the first threshold value; finally, a counting value or a timing value is acquired, and the counting value or the timing value is compared with a preset second threshold value; when the counting value or the timing value is less than or equal to the second threshold value, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed; therefore, the interference signal in the sensor signal is determined according to the difference range between the currently acquired signal and the stable signal acquired last time and the counting value or the timing value within the time period when the difference range is greater than the preset first threshold value, so that the interference signal can be effectively filtered out from the sensor signal, thereby improving the accuracy of the water quality analysis result.
[0042] Exemplary Methods
[0043] This embodiment provides a signal processing method, which can be applied to a smart terminal. Figure 1 As shown in , the method includes:
[0044] Step S100, obtaining a first signal, and comparing a difference between the first signal and a second signal with a preset first threshold; wherein the first signal is a currently collected signal, and the second signal is a previously collected stable signal.
[0045] Specifically, the first signal is the signal collected by the sensor at the current moment, and the second signal is the stable signal collected by the sensor last time. Generally speaking, the interference signal will be much larger than the sensor signal. In this embodiment, a first threshold for measuring the signal fluctuation range is pre-set. After obtaining the first signal, that is, the signal currently collected by the sensor, the difference between the first signal and the second signal, that is, the stable signal collected last time, is compared with the preset first threshold. When the difference between the first signal and the second signal is less than or equal to the first threshold, that is, the first signal is within the preset fluctuation range, indicating that the first signal is a stable signal; when the difference between the first signal and the second signal is greater than the first threshold, that is, the first signal exceeds the preset fluctuation range, indicating that the first signal may be an interference signal. For example, the preset first threshold is 50. If the difference between the first signal and the second signal is less than or equal to 50, that is, the first signal is within the preset fluctuation range, indicating that the first signal is a stable signal; if the difference between the first signal and the second signal is greater than 50, that is, the fluctuation range of the first signal is too large, indicating that the first signal may be an interference signal.
[0046] Step S200: When the difference between the first signal and the second signal is greater than the first threshold, start counting or timing, and continue to execute the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold until the difference between the first signal and the second signal is less than or equal to the first threshold.
[0047] Considering that when the difference between the first signal and the second signal is greater than the first threshold, the first signal may also be a stable signal. In this embodiment, after determining that the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started through a counter or timer, and the steps of obtaining the first signal and comparing the difference between the first signal and the second signal with the preset first threshold are continued until the difference between the first signal and the second signal is less than or equal to the first threshold, and the counter or timer is stopped from counting or timing, so as to obtain the count value or timing value in the subsequent steps, and determine whether several of the first signals within the counting or timing time period are interference signals based on the count value or the timing value. For example, when it is determined that the difference between the first signal and the second signal is greater than the first threshold, the counter is turned on, the counter value changes from 0 to 1, the first signal is continued to be acquired, and the difference between the first signal and the second signal is compared with the preset first threshold. When the difference between the first signal and the second signal is greater than the first threshold, the counter value changes from 1 to 2, and so on. The first signal is continued to be acquired and the difference between the first signal and the second signal is compared with the preset first threshold. Each time it is determined that the difference between the first signal and the second signal is greater than the first threshold, the count value of the counter is increased by 1 until the difference between the first signal and the second signal is less than or equal to the first threshold, and the counter is stopped. For another example, when the difference between the first signal and the second signal is greater than the first threshold, the timer is turned on for timing, and the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with the preset first threshold are continued until the difference between the first signal and the second signal is less than or equal to the first threshold, and the timer is stopped.
[0048] Step S300, obtain a count value or a timing value, and compare the count value or the timing value with a preset second threshold value. When the count value or the timing value is less than or equal to the second threshold value, determine that several of the first signals within the counting or timing time period are interference signals, and process the several interference signals.
[0049] Specifically, in this embodiment, a second threshold for measuring the duration of the first signal is also pre-set. After the counting or timing is completed, the counting value or timing value is obtained, and the counting value or timing value is compared with the preset second threshold. When the counting value or the timing value is greater than the second threshold, it is determined that several of the first signals within the counting or timing time period are stable signals; when the counting value or the timing value is less than or equal to the second threshold, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed. For example, the count value obtained within the counting time period is 8 times, the preset second threshold is 10 times, and the count value is less than the second threshold, indicating that the 8 first signals are interference signals. When the count value within the counting time period is 12, that is, the count value is greater than the second threshold, it indicates that the 12 first signals are stable signals. For another example, the timing value obtained within the timing time period is 15 seconds, the preset second threshold is 20 seconds, and the timing value within the timing time period is less than the second threshold, indicating that several first signals obtained within these 15 seconds are interference signals. When the timing value within the timing time period is 25 seconds, that is, the timing value within the timing time period is greater than the second threshold, it indicates that several first signals obtained within these 25 seconds are stable signals.
[0050] In a specific implementation manner, the step of processing the plurality of interference signals in step S300 includes:
[0051] Step S310: Replace a number of the interference signals with the second signal.
[0052] Considering that the second signal is a stable signal, when it is determined that several of the first signals within the counting or timing time period are interference signals, the several interference signals are replaced by the second signal, thereby replacing the interference signals with stable signals, effectively filtering out the interference signals in the sensor signal, and improving the accuracy of the water quality analysis results. For example, several of the first signals are I1, I2, I3…I n , the second signal is I m When processing the interference signals, I1, I2, I3…I n Replace all with I m .
[0053] In a specific implementation manner, the step of processing the interference signal in step S300 includes:
[0054] Step S310', determining interpolation functions corresponding to the interference signals according to the interference signals;
[0055] Step S320': performing interpolation processing on the plurality of interference signals according to the interpolation function.
[0056] When processing the plurality of interference signals, the present embodiment is not limited to using the second signal, and the interference signals may also be filled by using the interpolation method. Specifically, firstly, the interpolation functions corresponding to the plurality of interference signals are determined according to the plurality of interference signals, and then the plurality of interference signals are interpolated according to the difference function to fill and filter the interference signals. For example, the plurality of first signals are (x i ,y i ), where i = 0, 1, ... n, according to (x i ,y i ) can construct an interpolation function f(x) so that several first signals (x i ,y i ) are all subjected to the interpolation function to obtain the interpolation function f(x), then any interpolation point x*(x*≠x i ) at the interpolated point, thereby using the interpolation points to perform padding filtering on several first signals.
[0057] In a specific embodiment, the method further comprises:
[0058] Step S410, performing window filtering processing on the plurality of stable signals using a preset filter, and determining target signals corresponding to the plurality of stable signals within the filter window;
[0059] Step S420: Replace the plurality of stable signals within the filter window with the target signal.
[0060] Taking into account the presence of random signals such as Gaussian noise in stable signals, in this embodiment, a pre-set filter is used to perform window filtering on the stable signal to determine the target signals corresponding to several stable signals within the filter window, and then the several stable signals within the filter window are replaced with the target signal values, thereby removing random signals such as Gaussian noise in the stable signal.
[0061] In a specific implementation, step S410 includes:
[0062] Step S411, determining Gaussian filter functions of a number of the stable signals within the filter window, and determining weight values corresponding to the number of the stable signals within the filter window according to the Gaussian filter values;
[0063] Step S412: performing a dot product operation on the plurality of stable signals within the filter window and the corresponding weight values to obtain target signals corresponding to the plurality of stable signals within the filter window.
[0064] In this embodiment, when determining the target signal corresponding to the several stable signals within the window of the filter, the local radius of the filter that is preset is first obtained, and then the window length of the filter is determined according to the local radius of the filter, and the several stable signals within the window of the filter are determined, and then the Gaussian function of the several stable signals within the window of the filter is determined according to the several stable signals within the window of the filter. After determining the Gaussian filter function of the several stable signals within the window of the filter, the weight values corresponding to the several stable signals within the window of the filter are determined according to the Gaussian filter value, and the dot product operation is performed on the several stable signals within the window of the filter and the corresponding weight values to determine the target signal corresponding to the several stable signals within the window of the filter. Figure 2 As shown, after the signal before processing is processed by the method of this embodiment, the interference signal in the signal has been completely filtered out.
[0065] It can be seen that the embodiment of the present invention first obtains a first signal, and compares the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently collected signal, and the second signal is a stable signal collected last time; then, when the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started, and the steps of obtaining the first signal and comparing the difference between the first signal and the second signal with the preset first threshold are continued until the difference between the first signal and the second signal is less than or equal to the first threshold; finally, a counting value or a timing value is obtained, and the counting value or the timing value is compared with a preset second threshold; when the counting value or the timing value is less than or equal to the second threshold, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed; therefore, the interference signal in the sensor signal is determined according to the difference range between the currently collected signal and the previously collected stable signal and the counting value or the timing value within the time period when the difference range is greater than the preset first threshold, so that the interference signal can be effectively filtered out from the sensor signal, thereby improving the accuracy of the water quality analysis result.
[0066] Exemplary Devices
[0067] like Figure 3As shown in , an embodiment of the present invention provides a signal processing device, which includes: a signal comparison module 310, a signal statistics module 320, and a signal processing module 330. Specifically, the signal comparison module 310 is used to obtain a first signal and compare the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently collected signal, and the second signal is a stable signal collected last time. The signal statistics module 320 is used to start counting or timing when the difference between the first signal and the second signal is greater than the first threshold, and continue to perform the steps of obtaining the first signal and comparing the difference between the first signal and the second signal with the preset first threshold until the difference between the first signal and the second signal is less than or equal to the first threshold. The signal processing module 330 obtains a count value or a timing value, and compares the count value or the timing value with a preset second threshold. When the count value or the timing value is less than or equal to the second threshold, it is determined that several of the first signals within the counting or timing time period are interference signals, and the several interference signals are processed.
[0068] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 4 As shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a signal processing method is implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is pre-set inside the intelligent terminal to detect the operating temperature of the internal device.
[0069] Those skilled in the art will understand that Figure 4 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0070] In one embodiment, a smart terminal is provided, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:
[0071] Acquire a first signal, and compare the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently acquired signal, and the second signal is a previously acquired stable signal;
[0072] When the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started, and the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold are continuously performed until the difference between the first signal and the second signal is less than or equal to the first threshold;
[0073] Obtain a count value or a timing value, and compare the count value or the timing value with a preset second threshold value. When the count value or the timing value is less than or equal to the second threshold value, determine that several of the first signals within the counting or timing time period are interference signals, and process the several interference signals.
[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0075] In summary, the present invention discloses a signal processing method, device, intelligent terminal and storage medium, including: obtaining a first signal, comparing the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is the currently collected signal, and the second signal is the stable signal collected last time; when the difference between the first signal and the second signal is greater than the first threshold, start counting or timing, and continue to perform the steps of obtaining the first signal, comparing the difference between the first signal and the second signal with the preset first threshold, until the difference between the first signal and the second signal is less than or equal to the first threshold; obtain a count value or a timing value, and compare the count value or the timing value with a preset second threshold, when the count value or the timing value is less than or equal to the second threshold, determine that several of the first signals within the counting or timing time period are interference signals, and process several of the interference signals. The present invention determines the interference signal in the sensor signal according to the difference range between the currently collected signal and the stable signal collected last time and the count value or timing value within the time period when the difference range is greater than the preset first threshold, and can effectively filter out the interference signal from the sensor signal, thereby improving the accuracy of the water quality analysis results.
[0076] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A signal processing method, characterized in that: include: Acquire a first signal, and compare the difference between the first signal and the second signal with a preset first threshold; wherein the first signal is a currently acquired signal, and the second signal is a previously acquired stable signal; When the difference between the first signal and the second signal is greater than the first threshold, counting or timing is started, and the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold are continuously performed until the difference between the first signal and the second signal is less than or equal to the first threshold; Obtaining a count value or a timing value, and comparing the count value or the timing value with a preset second threshold value, and when the count value or the timing value is less than or equal to the second threshold value, determining that a number of the first signals within the counting or timing time period are interference signals, and processing the number of the interference signals; After the step of comparing the difference between the first signal and the second signal with a preset first threshold, the method further includes: When the difference between the first signal and the second signal is less than or equal to the first threshold, determining that the first signal is a stable signal; The signal processing method further includes: Performing window filtering processing on the plurality of stable signals by using a preset filter to determine target signals corresponding to the plurality of stable signals within the filter window; replacing a number of the stable signals within the window of the filter with the target signal; The step of performing window filtering on the plurality of stable signals by using a preset filter to determine the target signals corresponding to the plurality of stable signals within the window of the filter comprises: Determine a Gaussian filter function of the plurality of stable signals within the filter window, and determine weight values corresponding to the plurality of stable signals within the filter window according to the Gaussian filter values; Performing a dot product operation on the plurality of stable signals within the filter window and the corresponding weight values thereof to obtain target signals corresponding to the plurality of stable signals within the filter window; The Gaussian filter functions of the plurality of stable signals within the window of the determination filter include: Obtaining a preset local radius of the filter, determining a window length of the filter according to the local radius of the filter, and determining a number of stable signals within the window of the filter; Gaussian filter functions of a plurality of stable signals within the filter window are determined according to the plurality of stable signals within the filter window.
2. The signal processing method according to claim 1, characterized in that: After the step of comparing the count value or the timing value with a preset second threshold, the following step further comprises: When the count value or the timing value is greater than the second threshold, it is determined that a number of the first signals within the count or timing period are stable signals.
3. The signal processing method according to claim 1, characterized in that: The step of processing the plurality of interference signals comprises: A number of the interference signals are replaced by the second signal.
4. The signal processing method according to claim 1, characterized in that: The step of processing the plurality of interference signals comprises: Determine, according to the plurality of interference signals, interpolation functions corresponding to the plurality of interference signals; According to the interpolation function, interpolation processing is performed on the plurality of interference signals.
5. A signal processing device, characterized in that: include: A signal comparison module, which acquires a first signal and compares a difference between the first signal and a second signal with a preset first threshold; wherein the first signal is a currently acquired signal, and the second signal is a previously acquired stable signal; a signal statistics module, which starts counting or timing when the difference between the first signal and the second signal is greater than the first threshold, and continues to execute the steps of acquiring the first signal and comparing the difference between the first signal and the second signal with a preset first threshold until the difference between the first signal and the second signal is less than or equal to the first threshold; a signal processing module, obtaining a count value or a timing value, and comparing the count value or the timing value with a preset second threshold value, and determining that a number of the first signals within the count or timing time period are interference signals when the count value or the timing value is less than or equal to the second threshold value, and processing the number of the interference signals; After the step of comparing the difference between the first signal and the second signal with a preset first threshold, the method further includes: When the difference between the first signal and the second signal is less than or equal to the first threshold, determining that the first signal is a stable signal; The signal processing device further comprises: Performing window filtering processing on the plurality of stable signals by using a preset filter to determine target signals corresponding to the plurality of stable signals within the filter window; replacing a number of the stable signals within the window of the filter with the target signal; The step of performing window filtering on the plurality of stable signals by using a preset filter to determine the target signals corresponding to the plurality of stable signals within the window of the filter comprises: Determine a Gaussian filter function of the plurality of stable signals within the filter window, and determine weight values corresponding to the plurality of stable signals within the filter window according to the Gaussian filter values; Performing a dot product operation on the plurality of stable signals within the filter window and the corresponding weight values thereof to obtain target signals corresponding to the plurality of stable signals within the filter window; The Gaussian filter functions of the plurality of stable signals within the window of the determination filter include: The local radius of the preset filter is obtained, the window length of the filter is determined according to the local radius of the filter, and a number of stable signals within the window of the filter are determined; and the Gaussian filter functions of the stable signals within the window of the filter are determined according to the stable signals within the window of the filter.
6. An intelligent terminal, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include steps for executing the signal processing method according to any one of claims 1 to 4.
7. A computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the signal processing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Control system and method for testing fire-fighting wireless communication signal
CN109510674A