Signal merging method, device, computer equipment and storage medium
By filtering and replacing data points whose signal value is greater than the preset critical point, and adjusting data points using the merged signal baseline value, the problem of low signal merging efficiency in the prior art is solved, and fast and efficient signal merging is achieved.
Patent Information
- Application Number
- CN202211286799.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-10-20
AI Technical Summary
The signal merging method in the prior art is not efficient, especially when the signal quantity is large or the peak information is large, the peak search algorithm takes a lot of time.
By acquiring the first and second signals of different ranges, the target data points with a signal value greater than the preset critical point are filtered out, and the replacement data points are adjusted using the pre-acquisitioned baseline value of the merged signal, and the target data points are directly replaced to generate the combined signal.
While saving peak search time, the efficiency of signal merging is improved. Especially when the signal quantity is large or the peak information is large, the target data points with low confidence are quickly replaced to obtain an accurate merge signal.
Smart Images

Figure CN115622905B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a signal merging method, apparatus, computer equipment, storage medium, and computer program product. Background Art
[0002] With the development of mass spectrometry data acquisition technology, multi-channel acquisition cards are currently mainly used to acquire mass spectrometry data, and the acquired signals need to be merged during the acquisition process.
[0003] In related technologies, signal merging mainly uses a peak-finding algorithm, which first performs peak-finding processing on the signal and then merges the peak-finding results to obtain a merged signal. However, this method currently has the problem of low processing efficiency. Summary of the Invention
[0004] Based on this, it is necessary to provide a signal merging method, apparatus, computer device, computer-readable storage medium and computer program product to address the above technical issues.
[0005] In a first aspect, the present application provides a signal merging method. The method comprises:
[0006] Acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal;
[0007] If a target data point exists in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point corresponding to the upper limit of the range of the second signal;
[0008] adjusting the substituted data point based on a pre-acquired combined signal baseline value;
[0009] The target data point is replaced by the adjusted substitute data point, and a merged signal is obtained based on the second signal that has replaced the target data point.
[0010] In one embodiment, before adjusting the substituted data point based on the pre-acquired combined signal baseline value, the method further comprises:
[0011] Determining a second data point from the second signal whose signal value is within a preset range; wherein the upper limit of the preset range is the preset critical point, and the lower limit of the preset range is the signal noise value of the first signal;
[0012] determining a first data point corresponding to the second data point from the first signal;
[0013] A combined signal baseline value is determined based on a difference between the signal value of the second data point and the signal value of the first data point.
[0014] In one embodiment, there are multiple second data points, and determining the combined signal baseline value based on the difference between the signal value of the second data point and the signal value of the first data point includes:
[0015] for each second data point, determining a difference between a signal value of the second data point and a signal value of the first data point;
[0016] A statistical value of the plurality of difference values is obtained, and the statistical value is used as a combined signal baseline value.
[0017] In one embodiment, obtaining a statistical value of the plurality of difference values and using the statistical value as a combined signal baseline value includes:
[0018] An average of the plurality of difference values is determined, and the average is used as a combined signal baseline value.
[0019] In one embodiment, adjusting the substituted data point based on a pre-acquired combined signal baseline value comprises:
[0020] determining a difference between a signal value of the substituted data point and a pre-acquired combined signal baseline value;
[0021] The difference is used as the adjusted signal value of the replacement data point to obtain an adjusted replacement data point.
[0022] In one embodiment, acquiring the first signal and the second signal obtained by collecting the same signal includes:
[0023] Inputting an original signal into a power splitter to obtain two equally divided signals, and inputting the two equally divided signals into signal attenuators with different attenuation degrees, respectively, to obtain a first signal and a second signal output by the signal attenuators, wherein the attenuation degree of the first signal is less than the attenuation degree of the second signal;
[0024] The step of obtaining a merged signal based on the second signal that has replaced the target data point comprises:
[0025] Based on the corresponding attenuation degree of each data point to be merged, the signal value of each data point to be merged is restored, and a merged signal is generated based on the restored data point to be merged; the data points to be merged are the data points in the second signal that have replaced the target data point.
[0026] In a second aspect, the present application further provides a signal merging device. The device comprises:
[0027] a signal acquisition module, configured to acquire a first signal and a second signal obtained by acquiring the same signal; wherein the range used when acquiring the first signal is greater than the range used when acquiring the second signal;
[0028] a target determination module configured to determine, from the first signal, a replacement data point corresponding to a target data point having a signal value greater than a preset critical point if the second signal contains the target data point; the preset critical point being a critical point corresponding to an upper limit of a range of the second signal;
[0029] a data point adjustment module, configured to adjust the substituted data point based on a pre-acquired combined signal baseline value;
[0030] The data point replacement module is configured to replace the target data point with the adjusted replacement data point, and obtain a merged signal based on the second signal in which the target data point has been replaced.
[0031] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the methods described above when the computer program is executed by a processor.
[0033] In a fifth aspect, the present application also provides a computer program product, comprising a computer program, which implements the steps of any of the methods described above when executed by a processor.
[0034] The above-mentioned signal merging method, apparatus, computer device, storage medium and computer program product can obtain a first signal and a second signal obtained after collecting the same signal, wherein the range used when collecting the first signal is greater than the range used when collecting the second signal; if there is a target data point in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal, and the preset critical point is the critical point of the upper limit of the range corresponding to the second signal; then, based on the pre-acquired baseline value of the merged signal, the replacement data point can be adjusted, and the target data point is replaced with the adjusted replacement data point, and a merged signal is obtained based on the second signal with the replaced target data point. Compared with the process of first finding the signal peak and then merging in the correlation peak finding algorithm, the scheme of the present application can directly filter out the target data point with a signal value greater than the preset critical point and replace the target data point with the adjusted replacement data point, avoiding the time-consuming search for the signal peak when the signal volume is large or there is a lot of peak information. While effectively saving the peak finding time in the signal merging process, the target data point with lower credibility is quickly replaced to obtain the merged signal, thereby improving the efficiency of signal merging. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 1 is a flow chart of a signal merging method according to an embodiment;
[0036] Figure 2 A schematic flow chart of a step of determining a combined signal baseline value according to an embodiment;
[0037] Figure 3 A flowchart illustrating a step of determining a combined signal baseline value based on statistical values of a plurality of difference values in one embodiment;
[0038] Figure 4 A schematic flow chart of the steps of adjusting substitution data points in one embodiment;
[0039] Figure 5 is a flow chart of a signal merging method according to another embodiment;
[0040] Figure 6 is a structural block diagram of a signal merging device in one embodiment;
[0041] Figure 7 is a diagram of the internal structure of a computer device in one embodiment;
[0042] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0044] In one embodiment, Figure 1 As shown, a signal merging method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, or to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0045] S101, acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal.
[0046] As an example, the first signal and the second signal may be two different signals obtained by processing and then collecting the same signal. Signal collection may be performed using a signal collection device, such as a signal collection card or any device capable of collecting signals.
[0047] In practical applications, a segment of signal may be acquired, and after signal processing is performed on the segment of signal, the processed signal may be collected to obtain a first signal and a second signal.
[0048] S102, if there is a target data point in the second signal whose signal value is greater than a preset critical point, determine a replacement data point corresponding to the target data point from the first signal; the preset critical point is the critical point of the upper limit of the corresponding range of the second signal.
[0049] For example, the acquired first and second signals may contain discrete data points. The horizontal coordinate of each data point may be the acquisition time of the data point or the sequence number of the data point among all data points in the signal, and the vertical coordinate of the data point may represent the signal value of the data point. For a data point in the second signal, a corresponding data point can be found among the data points in the first signal.
[0050] The target data point may be the data point to be replaced, and the replacement data point may be the data point used to replace the target data point. There may be one or more preset critical points, which can be used to screen data points with suspicious signal values after acquisition. For example, when the actual signal value is close to or exceeds the upper limit of the range, but due to the upper limit of the range, only data points with signal values close to the maximum value of the range can be measured. The difference between the signal value at the preset critical point and the upper limit of the range corresponding to the second signal can be less than a preset threshold.
[0051] In a specific implementation, all data points in the second signal are obtained, and it is determined in turn whether the signal value of each data point in the second signal is greater than a preset critical point. If there is a data point whose signal value is greater than the preset critical point, the data point is used as the target data point, and a replacement data point corresponding to the target data point is determined from all data points of the first signal.
[0052] S103: Adjust the replacement data point based on the pre-acquired combined signal baseline value.
[0053] As an example, the combined signal baseline value may be a predetermined value, which may be a fixed value preset based on signal processing experience, or a value obtained based on the currently acquired first signal and second signal.
[0054] In practical applications, the merged signal baseline value and all the substituted data points obtained in the previous step can be obtained, and the substituted data points can be adjusted using the merged signal baseline value. For example, the signal value of the substituted data point can be adjusted using the merged signal baseline value.
[0055] S104: Replace the target data point with the adjusted replacement data point, and obtain a merged signal based on the second signal of the replaced target data point.
[0056] Illustratively, the adjusted substitute data point may be a data point obtained by adjusting the substitute data point using the combined signal baseline value.
[0057] In a specific implementation, after obtaining the adjusted replacement data point and determining the target data point corresponding to the adjusted replacement data point, the target data point is replaced with the adjusted replacement data point. When all target data points in the second signal are replaced, a merged signal can be generated based on the second signal with the replaced target data point.
[0058] In the above-mentioned signal merging method, a first signal and a second signal are obtained after collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal; if there is a target data point in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point of the upper limit of the range corresponding to the second signal; based on the pre-acquired baseline value of the merged signal, the replacement data point is adjusted; the target data point is replaced by the adjusted replacement data point, and a merged signal is obtained based on the second signal with the replaced target data point. Compared with the process of first finding the signal peak and then merging in the related peak-finding algorithm, the solution of the present application can directly filter out the target data point whose signal value is greater than the preset critical point, and replace the target data point with the adjusted replacement data point, avoiding spending a lot of time to find the signal peak when the signal amount is large or there is a lot of peak information. While effectively saving the peak-finding time in the signal merging process, the target data points with lower credibility are quickly replaced to obtain the merged signal, thereby improving the efficiency of signal merging.
[0059] In one embodiment, Figure 2 As shown, before adjusting the substituted data points based on the pre-acquired combined signal baseline value, it also includes:
[0060] S201, determining a second data point from a second signal whose signal value is within a preset range; wherein the upper limit of the preset range is a preset critical point, and the lower limit of the preset range is a signal noise value of the first signal.
[0061] As an embodiment, the preset range can be a data interval having an upper limit and a lower limit. The upper limit is a preset critical point, which may or may not be consistent with the preset critical point in the previous embodiment. The signal-to-noise value of the first signal can be the signal value of the noise detected during the acquisition process of the first signal. When the signal value of a data point in the second signal is within the preset range, it can be considered that the signal value of the data point is within the range corresponding to the second signal, and the possibility that the signal value is a noise value can be ruled out.
[0062] In actual applications, multiple data points in the second signal are obtained, and it is determined in turn whether the signal value of each data point in the multiple data points is within a preset range. If there is a data point whose signal value is within the preset range, the data point is used as the second data point.
[0063] S202: Determine a first data point corresponding to the second data point from the first signal.
[0064] Exemplarily, for a second data point in the second signal, a first data point corresponding to the second data point may be found among the data points of the first signal.
[0065] In a specific implementation, all data points in the first signal and all second data points from the previous step are obtained, and a data point corresponding to each second data point is determined from all data points of the first signal as the first data point. In one embodiment, the horizontal coordinate of the data point can be the acquisition time of the data point or the sequence number of the data point among all data points in the signal, and the vertical coordinate of the data point can represent the signal value of the data point. A data point whose horizontal and vertical coordinates match the second data point is determined from all data points of the first signal as the first data point corresponding to the second data point.
[0066] S203 : Determine a combined signal baseline value based on a difference between the signal value of the second data point and the signal value of the first data point.
[0067] As an example, the difference value may be one or more.
[0068] In practical applications, the difference between the signal value of the second data point and the signal value of the first data point corresponding to the second data point is obtained, and the combined signal baseline value is obtained based on the difference. For example, the combined signal baseline value can be obtained by performing a statistical calculation on the difference or by inputting a mathematical model for analysis.
[0069] In this embodiment, by obtaining the difference between a second data point whose signal value is within a preset range and a first data point corresponding to the second data point, a combined signal baseline value can be obtained, which can be used to adjust the replacement data point.
[0070] In one embodiment, Figure 3 As shown, there are multiple second data points, and determining the combined signal baseline value based on the difference between the signal value of the second data point and the signal value of the first data point includes:
[0071] S301 : For each second data point, determine a difference between a signal value of the second data point and a signal value of the first data point.
[0072] As an example, there may be multiple second data points, and there may be a difference between the signal value of the second data point and the signal value of the first data point.
[0073] In practical applications, all second data points are obtained, and for each second data point, the first data point corresponding to the second data point is determined, and the difference between the signal values of the two is obtained.
[0074] S302: Obtain statistical values of multiple difference values, and use the statistical values as the combined signal baseline value.
[0075] For example, the statistical value may be a value obtained through statistical calculation, and may be any one of the average, median, and mode.
[0076] In a specific implementation, the differences between the signal values of the plurality of second data points and the signal value of the first data point are obtained, a plurality of statistical values of the differences are obtained based on the plurality of differences, and the statistical values are determined as the combined signal baseline value.
[0077] In this embodiment, by obtaining the differences between the signal values of multiple second data points and the signal value of the first data point, a merged signal baseline value is obtained based on the statistical values of the multiple differences, thereby improving the efficiency of obtaining the merged signal baseline value.
[0078] In one embodiment, obtaining statistical values of a plurality of difference values and using the statistical values as a combined signal baseline value includes:
[0079] The average of the multiple differences is determined and used as the combined signal baseline value.
[0080] As an example, the average value may be the arithmetic mean of the plurality of difference values.
[0081] In practical applications, multiple difference values may be obtained, an average value of the multiple difference values may be calculated, and the average value may be determined as the combined signal baseline value.
[0082] In this embodiment, the combined signal baseline value is obtained by determining the average value of multiple difference values, thereby improving the reliability of the combined signal baseline value.
[0083] In one embodiment, Figure 4 As shown, based on the pre-acquired combined signal baseline value, the substituted data points are adjusted, including:
[0084] S401, determining the difference between the signal value of the substituted data point and the pre-acquired combined signal baseline value.
[0085] For example, the pre-acquired combined signal baseline value may be a preset value, and the signal value of the replacement data point may be adjusted using the combined signal baseline value.
[0086] In a specific implementation, after obtaining the combined signal baseline value, the signal value of the substituted data point may be determined, and the difference value obtained by subtracting the combined signal baseline value from the signal value of the substituted data point may be determined.
[0087] S402: Using the difference as the adjusted signal value of the substitution data point to obtain the adjusted substitution data point.
[0088] As an example, the difference values corresponding to different substituted data points may be the same or different.
[0089] In practical applications, multiple difference values obtained in the previous step are obtained, and each difference value is used as the adjusted signal value of each replacement data point to obtain an adjusted replacement data point.
[0090] In this embodiment, by using the combined signal baseline value to adjust the substituted data point, reliable adjusted substituted data points can be obtained.
[0091] In one embodiment, acquiring a first signal and a second signal obtained by collecting the same signal includes:
[0092] The original signal is input into the power splitter to obtain two equally divided signals, and the two equally divided signals are respectively input into signal attenuators with different attenuation degrees to obtain the first signal and the second signal output by the signal attenuators, where the attenuation degree of the first signal is less than that of the second signal.
[0093] Exemplarily, the original signal may be an electrical signal, and the power splitter may be used to divide the electrical signal into equal parts, so that the signals output by the power splitter are consistent.
[0094] The signal attenuator can attenuate the signal. In practice, the attenuation degree of the signal attenuator can be adjusted according to the signal processing requirements. The attenuation process can be to reduce the signal strength. Of course, in other examples, the signal attenuator can also amplify the input signal.
[0095] In a specific implementation, the original signal obtained is input into a power divider, and the power divider outputs two equally divided signals. For example, the original signal can be an electrical signal of a mass spectrometer detector that has undergone signal amplification processing. Then, the pre-set attenuation degree for the two signals can be obtained, and the two equally divided signals are respectively input into two signal attenuators with different preset signal attenuation degrees to obtain the first signal and the second signal output by the signal attenuator. In some other optional examples, the two equally divided signals can also be amplified, and the amplification degree for the first signal is greater than the amplification degree for the second signal; or, one of the equally divided signals can be amplified to obtain the corresponding first signal, and the other equally divided signal can be attenuated to obtain the corresponding second signal.
[0096] In some examples, after obtaining the first signal and the second signal output by the signal attenuator, the first signal and the second signal may be input into a dual-channel analog-to-digital converter acquisition card to obtain the acquired first signal and the second signal.
[0097] Accordingly, obtaining the merged signal based on the second signal of the replaced target data point in S104 may include the following steps:
[0098] Based on the corresponding attenuation degree of each data point to be merged, the signal value of each data point to be merged is restored, and a merged signal is generated based on the restored data point to be merged; the data points to be merged are each data point in the second signal that has replaced the target data point.
[0099] After obtaining the second signal in which the target data point has been replaced, each data point in the second signal can be determined as a data point to be merged. For each data point to be merged, the signal value of the data point to be merged can be restored based on the attenuation degree used by the signal attenuator when obtaining the data point to be merged. For example, the signal attenuator attenuates the signal value of the input signal at a ratio of 2. Then, during restoration, the signal value of the data point to be merged can be amplified at a ratio of 2, and the signal value of the data point to be merged can be amplified according to the attenuation degree to obtain the restored data point to be merged.
[0100] After obtaining a plurality of restored data points to be merged, the restored data points to be merged may be sequentially combined into a merged signal according to the order of the restored data points to be merged.
[0101] In this embodiment, a signal attenuator can be used to perform attenuation processing on the original signal to different degrees to obtain a first signal and a second signal. After the data point is replaced, the signal value of the data point is restored accordingly to obtain accurate merged information.
[0102] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.
[0103] like Figure 5 As shown, the specific steps include:
[0104] S501, reading a first signal B and a second signal S;
[0105] S502, setting a preset range, where the upper limit of the preset range is Tb and the lower limit is Ts;
[0106] S503, read the second signal data point Si (i=0, 1...);
[0107] S504, determine whether the signal value of Si is within the range of [Ts, Tb]. If so, determine Si as the second data point and proceed to S505. Otherwise, proceed to S503 until all data points of the second signal are processed;
[0108] S505, determining the first data point Bi corresponding to the second data point, obtaining the signal value difference between Si and the corresponding Bi, accumulating and averaging the difference to obtain a combined signal baseline value A;
[0109] S506, read the second signal data point Si (i=0, 1...) again;
[0110] S507: If the signal value of Si is greater than the preset critical point, Si is determined as the target data point, and the replacement data point corresponding to the target data point is determined. Otherwise, the process returns to S506 until all data points of the second signal are processed.
[0111] S508, adjusting the signal value of the replacement data point using the difference between the signal value of Bi and A, replacing the corresponding target data point with the adjusted replacement data point, and restoring the signal value to obtain a merged signal.
[0112] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0113] Based on the same inventive concept, the embodiments of the present application further provide a signal merging device for implementing the aforementioned signal merging method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more signal merging device embodiments provided below can be found in the above-mentioned limitations of the signal merging method and will not be repeated here.
[0114] In one embodiment, Figure 6 As shown, a signal merging device is provided, comprising:
[0115] The signal acquisition module 601 is configured to acquire a first signal and a second signal obtained by acquiring the same signal; the range used when acquiring the first signal is greater than the range used when acquiring the second signal;
[0116] a target determination module 602 configured to determine, from the first signal, a replacement data point corresponding to a target data point having a signal value greater than a preset critical point if the second signal contains the target data point; the preset critical point being a critical point corresponding to an upper limit of a range of the second signal;
[0117] A data point adjustment module 603 is configured to adjust the replacement data point based on a pre-acquired combined signal baseline value;
[0118] The data point replacement module 604 is configured to replace the target data point with the adjusted replacement data point, and obtain a merged signal based on the second signal with the target data point replaced.
[0119] In one embodiment, the apparatus further comprises:
[0120] a second data point determination module, configured to determine, from the second signal, a second data point whose signal value is within a preset range; wherein the upper limit of the preset range is the preset critical point, and the lower limit of the preset range is the signal noise value of the first signal;
[0121] a first data point determination module, configured to determine a first data point corresponding to the second data point from the first signal;
[0122] The combined signal baseline value generating module is configured to determine a combined signal baseline value based on a difference between the signal value of the second data point and the signal value of the first data point.
[0123] In one embodiment, the apparatus further comprises:
[0124] a difference determination module, configured to determine, for each second data point, a difference between a signal value of the second data point and a signal value of the first data point;
[0125] The statistical value determination module is used to obtain statistical values of multiple difference values and use the statistical values as the combined signal baseline value.
[0126] In one embodiment, the apparatus further comprises:
[0127] The average value calculation module is used to determine the average value of the multiple difference values and use the average value as the combined signal baseline value.
[0128] In one embodiment, the data point adjustment module 603 is specifically configured to:
[0129] determining a difference between a signal value of the substituted data point and a pre-acquired combined signal baseline value;
[0130] The difference is used as the adjusted signal value of the replacement data point to obtain an adjusted replacement data point.
[0131] In one embodiment, the signal acquisition module 601 is specifically configured to:
[0132] Inputting an original signal into a power splitter to obtain two equally divided signals, and inputting the two equally divided signals into signal attenuators with different attenuation degrees, respectively, to obtain a first signal and a second signal output by the signal attenuators, wherein the attenuation degree of the first signal is less than the attenuation degree of the second signal;
[0133] The data point replacement module 604 is specifically configured to:
[0134] Based on the corresponding attenuation degree of each data point to be merged, the signal value of each data point to be merged is restored, and a merged signal is generated based on the restored data point to be merged; the data points to be merged are the data points in the second signal that have replaced the target data point.
[0135] Each module in the above-mentioned signal merging device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store signal data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a signal merging method is implemented.
[0137] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device 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 communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a signal merging method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0138] Those skilled in the art will understand that Figure 7 and Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0139] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0140] Acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal;
[0141] If a target data point exists in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point corresponding to the upper limit of the range of the second signal;
[0142] adjusting the substituted data point based on a pre-acquired combined signal baseline value;
[0143] The target data point is replaced by the adjusted substitute data point, and a merged signal is obtained based on the second signal that has replaced the target data point.
[0144] In one embodiment, when the processor executes the computer program, the steps in the other embodiments described above are also implemented.
[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0146] Acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal;
[0147] If a target data point exists in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point corresponding to the upper limit of the range of the second signal;
[0148] adjusting the substituted data point based on a pre-acquired combined signal baseline value;
[0149] The target data point is replaced by the adjusted substitute data point, and a merged signal is obtained based on the second signal that has replaced the target data point.
[0150] In one embodiment, when the computer program is executed by a processor, the steps in the other embodiments described above are also implemented.
[0151] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0152] Acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal;
[0153] If a target data point exists in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point corresponding to the upper limit of the range of the second signal;
[0154] adjusting the substituted data point based on a pre-acquired combined signal baseline value;
[0155] The target data point is replaced by the adjusted substitute data point, and a merged signal is obtained based on the second signal that has replaced the target data point.
[0156] In one embodiment, when the computer program is executed by a processor, the steps in the other embodiments described above are also implemented.
[0157] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0158] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented 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, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0159] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0160] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A signal merging method, characterized in that: The method comprises: Acquiring a first signal and a second signal obtained by collecting the same signal; the range used when collecting the first signal is greater than the range used when collecting the second signal; If a target data point exists in the second signal whose signal value is greater than a preset critical point, a replacement data point corresponding to the target data point is determined from the first signal; the preset critical point is a critical point corresponding to the upper limit of the range of the second signal; adjusting the substituted data point based on a pre-acquired combined signal baseline value; The target data point is replaced by the adjusted substitute data point, and a merged signal is obtained based on the second signal that has replaced the target data point.
2. The method according to claim 1, characterized in that Before adjusting the substituted data point based on the pre-acquired combined signal baseline value, the method further includes: Determining a second data point from the second signal whose signal value is within a preset range; wherein the upper limit of the preset range is the preset critical point, and the lower limit of the preset range is the signal noise value of the first signal; determining a first data point corresponding to the second data point from the first signal; A combined signal baseline value is determined based on a difference between the signal value of the second data point and the signal value of the first data point.
3. The method according to claim 2, characterized in that There are multiple second data points, and determining the combined signal baseline value based on the difference between the signal value of the second data point and the signal value of the first data point includes: for each second data point, determining a difference between a signal value of the second data point and a signal value of the first data point; A statistical value of the plurality of difference values is obtained, and the statistical value is used as a combined signal baseline value.
4. The method according to claim 3, characterized in that The obtaining of statistical values of the plurality of difference values and using the statistical values as the combined signal baseline value includes: An average of the plurality of difference values is determined, and the average is used as a combined signal baseline value.
5. The method according to claim 1, wherein The adjusting the substituted data point based on the pre-acquired combined signal baseline value comprises: determining a difference between a signal value of the substituted data point and a pre-acquired combined signal baseline value; The difference is used as the adjusted signal value of the replacement data point to obtain an adjusted replacement data point.
6. The method according to any one of claims 1 to 5, characterized in that The acquiring of the first signal and the second signal obtained by collecting the same signal includes: Inputting an original signal into a power splitter to obtain two equally divided signals, and inputting the two equally divided signals into signal attenuators with different attenuation degrees, respectively, to obtain a first signal and a second signal output by the signal attenuators, wherein the attenuation degree of the first signal is less than the attenuation degree of the second signal; The step of obtaining a merged signal based on the second signal that has replaced the target data point comprises: Based on the corresponding attenuation degree of each data point to be merged, the signal value of each data point to be merged is restored, and a merged signal is generated based on the restored data point to be merged; the data points to be merged are the data points in the second signal that have replaced the target data point.
7. A signal merging device, characterized in that: The device comprises: a signal acquisition module, configured to acquire a first signal and a second signal obtained by acquiring the same signal; wherein the range used when acquiring the first signal is greater than the range used when acquiring the second signal; a target determination module configured to determine, from the first signal, a replacement data point corresponding to a target data point having a signal value greater than a preset critical point if the second signal contains the target data point; the preset critical point being a critical point corresponding to an upper limit of a range of the second signal; a data point adjustment module, configured to adjust the substituted data point based on a pre-acquired combined signal baseline value; The data point replacement module is configured to replace the target data point with the adjusted replacement data point, and obtain a merged signal based on the second signal in which the target data point has been replaced.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Signal processing system having singular point and information storage medium
CN102138178A
Signal processing method and device
CN102958115A