Signal quality evaluation method, device, electronic device and storage medium
By extracting the target signal from the original signal output by the signal collector, calculating the energy ratio and the full value signal ratio, and evaluating the signal quality score, the problem of difficulty in signal quality evaluation in the existing technology is solved, and effective evaluation and optimization of signal quality are achieved. .
Patent Information
- Application Number
- CN202111082504.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-15
AI Technical Summary
It is difficult for existing physiological signal detection equipment to effectively evaluate signal quality during the signal collection process, resulting in the signal quality output by the signal collector failing to meet user needs.
The evaluation of signal quality is achieved by extracting the target signal from the original signal output by the signal collector, calculating the ratio of its energy to the original signal and the ratio of the full signal, determining the signal quality score based on these ratios, and evaluating the signal quality.
This method can effectively evaluate the signal quality output by the signal collector, consider the signal strength and noise ratio, guide the design and optimization of the signal collector, and improve the signal collection effect.
Smart Images

Figure CN113807241B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to device evaluation, and in particular to a signal quality evaluation method, device, electronic device and storage medium. Background Art
[0002] As people pay more and more attention to sleep problems, various sleep-related products are becoming more and more abundant. At present, many sleep-related products usually need to use physiological signal detection equipment to obtain the user's physiological signals in order to provide better services to users.
[0003] At present, most physiological signal detection products require the use of a specific signal collector to collect the user's signal, and then use a filter corresponding to the physiological signal to filter the signal output by the signal collector to obtain the user's physiological signal. Physiological signals usually include weak signals such as heartbeat signals and breathing signals, so the signal collector usually needs to amplify the collected signal before outputting the signal. However, in the process of signal processing by the signal collector, noise will inevitably be introduced, making the signal quality of the signal output by the signal collector unguaranteed.
[0004] Therefore, in order to ensure that the quality of the signal output by the signal collector can meet the needs of users, a method for evaluating the quality of the signal output by the signal collector is urgently needed, so as to guide the design and generation of the signal collector according to the evaluation results. Summary of the invention
[0005] In order to solve the problem that it is impossible to evaluate the quality of a signal collected and output by a signal collector, the present application provides a signal quality evaluation method, device, electronic device and storage medium.
[0006] In a first aspect, the present application provides a signal quality assessment method, characterized by comprising:
[0007] Extracting a target signal from a first original signal output by a signal collector;
[0008] Calculating a first ratio of the energy of the target signal to the energy of the first original signal;
[0009] Calculating a second ratio of the energy of the first original signal to the energy of a full-value signal, wherein the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude in the first original signal;
[0010] determining a quality score of the first original signal according to the first ratio and the second ratio;
[0011] The quality of the first original signal is evaluated according to the quality score of the first original signal.
[0012] As a possible implementation manner, the target signal includes one or more signals;
[0013] If it is determined that the target signal includes a signal, the energy of the signal is used as the energy of the target signal;
[0014] If it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals is taken as the energy of the target signal.
[0015] As a possible implementation manner, determining the quality score of the first original signal according to the first ratio and the second ratio includes:
[0016] Obtaining a first weight and a second weight, wherein the sum of the first weight and the second weight is 1;
[0017] multiplying the first ratio by the first weight to obtain a first value;
[0018] multiplying the second ratio by the second weight to obtain a second value;
[0019] The sum of the first value and the second value is used as the quality score of the first original signal.
[0020] As a possible implementation manner, obtaining the first weight and the second weight includes:
[0021] Determining whether the first ratio is greater than a first threshold;
[0022] If it is determined that the first ratio is not greater than the first threshold, 1 is used as the first weight and 0 is used as the second weight.
[0023] As a possible implementation manner, the evaluating the quality of the first original signal according to the quality score of the first original signal includes:
[0024] Obtaining a quality score of a second original signal output by the signal collector;
[0025] comparing the quality score of the first original signal with the quality score of the second original signal;
[0026] If the quality score of the first original signal is greater than the quality score of the second original signal, it is determined that the quality of the first original signal is better than the quality of the second original signal;
[0027] If it is found that the quality score of the first original signal is smaller than the quality score of the second original signal, it is determined that the quality of the second original signal is better than the quality of the first original signal.
[0028] In a second aspect, an embodiment of the present application further provides a signal quality assessment device, including:
[0029] An extraction module, used for extracting a target signal from a first original signal output by a signal collector;
[0030] A first calculation module, used to calculate a first ratio of the energy of the target signal to the energy of the first original signal;
[0031] A second calculation module is used to calculate a second ratio of the energy of the first original signal to the energy of a full-value signal, wherein the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude in the first original signal;
[0032] a determination module, configured to determine a quality score of the first original signal according to the first ratio and the second ratio;
[0033] An evaluation module is used to evaluate the quality of the first original signal according to the quality score of the first original signal.
[0034] As a possible implementation manner, the target signal includes one or more signals;
[0035] If it is determined that the target signal includes a signal, the energy of the signal is used as the energy of the target signal;
[0036] If it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals is taken as the energy of the target signal.
[0037] As a possible implementation manner, the determining module includes:
[0038] An acquiring unit, configured to acquire a first weight and a second weight, wherein a sum of the first weight and the second weight is 1;
[0039] A first calculation unit, configured to multiply the first ratio by the first weight to obtain a first value;
[0040] A second calculation unit, configured to multiply the second ratio by the second weight to obtain a second value;
[0041] The third calculation unit is configured to use the sum of the first value and the second value as the quality score of the first original signal.
[0042] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a signal quality assessment program stored in the memory to implement the signal quality assessment method described in the first aspect.
[0043] In a fourth aspect, an embodiment of the present application further provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the signal quality assessment method described in the first aspect.
[0044] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0045] A signal quality assessment method provided in an embodiment of the present application extracts a target signal from a first original signal output by a signal collector, and then calculates the ratio of the energy of the target signal to the energy of the first original signal, the first ratio can reflect the strength of the target signal, that is, can reflect the signal-to-noise ratio of the first original signal, and then calculates a second ratio of the energy of the first original signal to the full-value signal, the second ratio can reflect the strength of the first original signal, determines the quality score of the first original signal according to the first ratio and the second ratio, and evaluates the quality of the first original signal according to the quality score, thereby achieving the evaluation of the quality of the first original signal, and because both the strength of the first original signal and the strength of the target signal are considered when calculating the quality score, the quality assessment result of the first original signal according to the quality score can reflect the quality of the target signal in the first original signal.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0048] Figure 1 The figure is a flow chart of a signal quality evaluation method according to an exemplary embodiment.
[0049] Figure 2 is a schematic diagram showing a full-value signal according to an exemplary embodiment.
[0050] Figure 3 It is a block diagram of a signal quality assessment device according to an exemplary embodiment.
[0051] Figure 4 The diagram is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0053] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a signal quality assessment method provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps:
[0054] S11. Extracting a target signal from the first original signal output by the signal collector.
[0055] The signal collector may be a sensor or other instrument used to collect signals.
[0056] In an embodiment of the present application, the original signal output by the signal collector (hereinafter referred to as the first original signal) is first obtained, and then the target signal is extracted from the first original signal, wherein the target signal is the useful signal in the signal collected by the signal collector, that is, the signal required by the user, such as heartbeat signals, breathing signals and other physiological signals.
[0057] As an embodiment, the target signal may include only one signal, such as a breathing signal or a heartbeat signal, or the target signal may include multiple signals, such as a breathing signal and a heartbeat signal. It should be noted that the signals included in the above target signal are only exemplary, and the specific signals included can be set according to actual conditions, and this embodiment does not make specific limitations.
[0058] As an optional implementation method, the target signal generally has a specific frequency band range, so the first original signal can be filtered by a filter whose filtering frequency band corresponds to the frequency band range of the target signal, so that the signal obtained after filtering is used as the target signal. In the case where the target signal includes one signal, it is only necessary to use a filter corresponding to the target signal to filter the first original signal. In the case where the target signal includes multiple signals, it is necessary to use multiple filters to filter the first original signal respectively. The number of filters is the same as the number of signals included in the target signal, and each filter corresponds to the frequency band range of a signal included in the target signal. For example, if the target signal includes a breathing signal and a heartbeat signal, the first original signal is filtered by a filter whose filtering frequency band corresponds to the frequency band of the breathing signal and a filter whose filtering frequency band corresponds to the heartbeat signal, so as to obtain the breathing signal and the heartbeat signal respectively.
[0059] S12. Calculate a first ratio of the energy of the target signal to the energy of the first original signal.
[0060] In an embodiment of the present application, an energy calculation formula is pre-set, and the energy of the target signal and the energy of the first original signal are respectively calculated using the preset energy calculation formula, and then the energy of the target signal is used to calculate the energy of the first original signal to obtain a first ratio.
[0061] As an embodiment, the preset energy calculation formula is as follows:
[0062] p=∫0 t |f(t)| 2 dt
[0063] Among them, P represents the energy of the signal, f(t) represents the signal value, and t represents the signal length.
[0064] As an embodiment, when calculating the energy of the target signal, if it is determined that the target signal includes a signal, the energy of the signal calculated using a preset energy calculation formula is used as the energy of the target signal. For example, the target signal includes a signal f1(t), and the energy of the signal f1(t) is calculated using a preset energy calculation formula as P1. Then, the energy of the target signal is P1. Thus, the calculation formula for the first ratio is as follows:
[0065] π1=P1 / P ori
[0066] Among them, π1 represents the first ratio, P ori represents the energy of the first original signal.
[0067] As another embodiment, if it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals calculated using a preset energy calculation formula is used as the energy of the target signal. For example, the target signal includes signals f1(t), ...f n (t), and use the preset energy calculation formula to calculate the signal f1(t), ... f n The energies of (t) are P1, ...P n , then the energy of the target signal is (P1+…+P n ), so the calculation formula of the first ratio is as follows:
[0068] π1=(P1+…+P n ) / P ori
[0069] S13. Calculate a second ratio of the energy of the first original signal to the energy of the full-value signal.
[0070] The full value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is the maximum amplitude in the first original signal. For example, the signal length of the first original signal is t, and the maximum amplitude is V max , then the full value signal is a signal with a length of t, and the signal value remains at V within t time max , signals such as Figure 2 Preferably, the time interval corresponding to the full value signal is the acquisition time interval of the first original signal.
[0071] In an embodiment of the present application, when calculating the second ratio, the energy of the full-value signal is first calculated using the preset energy calculation formula as described above, and then the energy of the first original signal obtained in S12 is equal to the energy of the full-value signal to obtain the second ratio.
[0072] Specifically, the second ratio is calculated using the following formula:
[0073]
[0074] Among them, π2 represents the second ratio, f max Indicates full value signal.
[0075] S14. Determine a quality score of the first original signal according to the first ratio and the second ratio.
[0076] As an embodiment, after obtaining the first ratio and the second ratio, the first weight and the second weight can be obtained, wherein the sum of the first weight and the second weight is 1, and then the first ratio and the first weight are multiplied to obtain the first value, and the second ratio and the second weight are multiplied to obtain the second value, and finally the sum of the first value and the second value is added as the quality score of the first original signal.
[0077] Specifically, the quality score of the signal can be calculated using the following formula:
[0078] G=απ1+βπ2
[0079] Wherein, G represents the quality score, α represents the first weight, and β represents the second weight.
[0080] As an embodiment, the first weight and the second weight may be values preset based on experience, and the first weight and the second weight correspond to the signal collector, and the first weight and the second weight of different signal collectors may be different. Thus, when obtaining the first weight and the second weight, the corresponding first weight and the second weight may be determined according to the signal collector.
[0081] As another embodiment, the first weight and the second weight can be determined according to the characteristics of the first original signal. From the above formula for calculating π1, it can be seen that π1 represents the proportion of the target signal (that is, the useful signal) to the original signal, and from the above formula for calculating π2, it can be seen that π2 represents the proportion of the original signal to the full value signal. α and β are used to balance the target signal strength and the original signal strength. In the embodiment of the present application, the effect to be achieved is to make the intensity of the target signal in the first original signal greater, so first pay attention to the value of π1. If π1 is closer to 1, it means that the noise in the first original signal is smaller. At this time, in order to prevent the first original signal from having a high signal-to-noise ratio but a small overall signal energy, further attention is paid to π2. If π2 is too small, it means that the energy of the first original signal is too small. At this time, the values of α and β can be selected according to demand, and the preferred value of α is greater than the value of β, such as 0.9 as the value of α and 0.1 as the value of β. If π1 is small, it means that the signal-to-noise ratio of the first original signal is not high, and π2 is no longer considered at this time (in this case, π2 is generally larger), that is, 1 is used as the value of α and 0 is used as the value of β.
[0082] In this way, when obtaining the first weight and the second weight, it can be determined whether the first ratio is greater than the first threshold; if it is determined that the first ratio is not greater than the first threshold, 1 is used as the first weight and 0 is used as the second weight. Further, if it is determined that the first ratio is greater than the first threshold, the first weight and the second weight set in advance based on experience can be obtained, such as 0.9 as the first weight and 0.1 as the second weight. The first threshold can be determined in advance based on experience, such as 0.2.
[0083] An example:
[0084] The energy of the first original signal is P ori =126.5762, the noise signal is -28dBV white noise, the maximum amplitude of the first original signal is 1.3V, and the target signals extracted therefrom include a heartbeat signal and a breathing signal, wherein the heartbeat signal is sig1=0.3×sin(2×π×x), and the frequency of the heartbeat signal is 60 times / minute, and the breathing signal is sig2=0.4×sin(2×π×0.3×x), and the frequency of the breathing signal is 18 times / minute, and x in the first original signal represents time.
[0085] The energy of the heartbeat signal is calculated to be P1=45, the energy of the breathing signal is P1=80, π1=0.9875, π2=0.2253. From the above values, it can be seen that π1=0.9875 indicates that the signal-to-noise ratio of the first original signal is high. At this time, the signal-to-noise ratio of the first original signal is focused on, that is, π1 is focused on. Therefore, α=0.9, β=0.1, then G=0.9×0.9875+0.1×0.2253=0.9072.
[0086] Another example:
[0087] The energy of the first original signal is P ori =710.4017, the noise signal is -28dBV white noise, the maximum amplitude of the first original signal is 1.3V, and the target signals extracted therefrom include a heartbeat signal and a breathing signal, wherein the heartbeat signal is sig1=0.3×sin(2×π×x), and the frequency of the heartbeat signal is 60 times / minute, and the breathing signal is sig2=0.4×sin(2×π×0.3×x), and the frequency of the breathing signal is 18 times / minute, where x in the first original signal represents time.
[0088] The energy of the heartbeat signal is calculated to be P1=45, the energy of the breathing signal is P1=80, π1=0.1759, π2=0.5226. From the above values, it can be seen that π1=0.1759 indicates that the signal-to-noise ratio of the first original signal is low. At this time, π2 is no longer considered. Therefore, α=1, β=0, then G=0.1759.
[0089] S15. Evaluate the quality of the first original signal according to the quality score of the first original signal.
[0090] For the original signal output by the same signal collector, the larger the quality score of the original signal is, the better the quality of the original signal is.
[0091] In an embodiment of the present application, the quality of the first original signal can be evaluated by comparing the quality of the first original signal with the quality of other original signals output by the signal collector to determine whether the quality of the first original signal has improved or deteriorated relative to the other original signals. Based on this, when evaluating the first original signal based on the quality score, the quality score of the second original signal output by the signal collector can be obtained, and then the quality score of the first original signal can be compared with the quality score of the second original signal. If the quality score of the first original signal is greater than the quality score of the second original signal, it is determined that the quality of the first original signal is better than the quality of the second original signal; if the quality score of the first original signal is less than the quality score of the second original signal, it is determined that the quality of the second original signal is better than the quality of the first original signal. The calculation method of the quality score of the second original signal is similar to the calculation method of the quality score of the first original signal, which will not be repeated here.
[0092] An embodiment of the present application provides a signal quality assessment method, which extracts a target signal from a first original signal output by a signal collector, and then calculates the ratio of the energy of the target signal to the energy of the first original signal, the first ratio can reflect the strength of the target signal, that is, it can reflect the signal-to-noise ratio of the first original signal, and then calculates a second ratio of the energy of the first original signal to the full-value signal, the second ratio can reflect the strength of the first original signal, determines the quality score of the first original signal according to the first ratio and the second ratio, and evaluates the quality of the first original signal according to the quality score, thus achieving the evaluation of the quality of the first original signal, and because both the strength of the first original signal and the strength of the target signal are considered when calculating the quality score, the quality assessment result of the first original signal according to the quality score can reflect the quality of the target signal in the first original signal.
[0093] Furthermore, in another embodiment of the present application, the development of the signal collector can be guided according to the quality evaluation result of the first original signal.
[0094] As an embodiment, if the first original signal is output by the signal collector before modification, and the second original signal is output by the signal collector after modification, if the quality of the first original signal is better than the quality of the second original signal, it means that the effect of the modification to the signal collector is reverse, and the signal collector is restored to the state before modification; if the quality of the second original signal is better than the quality of the first original signal, it means that the effect of the modification to the signal collector is positive, and the modification is retained.
[0095] As another embodiment, if the first original signal is output after the signal collector is modified, and the second original signal is output before the signal collector is modified, then if the quality of the first original signal is better than the quality of the second original signal, it means that the effect of the modification to the signal collector is positive, and the modification is retained; if the quality of the second original signal is better than the quality of the first original signal, it means that the effect of the modification to the signal collector is negative, and the signal collector is restored to the state before the modification.
[0096] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a signal quality assessment device provided by an embodiment of the present application. Figure 3 As shown, the device may include:
[0097] An extraction module 301 is used to extract a target signal from a first original signal output by a signal collector;
[0098] A first calculation module 302, configured to calculate a first ratio of the energy of the target signal to the energy of the first original signal;
[0099] A second calculation module 303 is used to calculate a second ratio of the energy of the first original signal to the energy of the full-value signal, where the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is the maximum amplitude in the first original signal;
[0100] A determination module 304, configured to determine a quality score of the first original signal according to the first ratio and the second ratio;
[0101] The evaluation module 305 is configured to evaluate the quality of the first original signal according to the quality score of the first original signal.
[0102] As an embodiment, the target signal may include one or more signals;
[0103] If it is determined that the target signal includes a signal, the energy of the signal is taken as the energy of the target signal;
[0104] If it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals is taken as the energy of the target signal.
[0105] As an embodiment, the determination module 304 may include ( Figure 3 Not shown):
[0106] An acquiring unit, configured to acquire a first weight and a second weight, wherein a sum of the first weight and the second weight is 1;
[0107] A first calculation unit, configured to multiply the first ratio by the first weight to obtain a first value;
[0108] A second calculation unit, used for multiplying the second ratio and the second weight to obtain a second value;
[0109] The third calculation unit is used to take the sum of the first value and the second value as the quality score of the first original signal.
[0110] As an embodiment, the acquisition unit is specifically used for:
[0111] Determining whether the first ratio is greater than a first threshold;
[0112] If it is determined that the first ratio is not greater than the first threshold, 1 is used as the first weight and 0 is used as the second weight.
[0113] As an embodiment, the evaluation module 305 is specifically configured to:
[0114] Obtaining a quality score of a second original signal output by the signal collector;
[0115] comparing the quality score of the first original signal with the quality score of the second original signal;
[0116] If the quality score of the first original signal is greater than the quality score of the second original signal, it is determined that the quality of the first original signal is better than the quality of the second original signal;
[0117] If it is found that the quality score of the first original signal is smaller than the quality score of the second original signal, it is determined that the quality of the second original signal is better than the quality of the first original signal.
[0118] See also Figure 4 , Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
[0119] like Figure 4 As shown, the electronic device provided in this embodiment includes: at least one processor 401, a memory 402, at least one network interface 403 and other user interfaces 404. The various components in the electronic device 400 are coupled together through a bus system 405. It can be understood that the bus system 405 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 4 Various buses are labeled as bus system 405 .
[0120] The user interface 404 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0121] It can be understood that the memory 402 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0122] In some implementations, the memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 4021 and application programs 4022 .
[0123] The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 4022.
[0124] In the embodiment of the present invention, by calling the program or instruction stored in the memory 402, specifically, the program or instruction stored in the application 4022, the processor 401 is used to execute the method steps provided by each method embodiment, for example, including:
[0125] Extracting a target signal from a first original signal output by a signal collector;
[0126] Calculating a first ratio of the energy of the target signal to the energy of the first original signal;
[0127] Calculate a second ratio of the energy of the first original signal to the energy of the full-value signal, where the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude of the first original signal;
[0128] Determining a quality score of the first original signal according to the first ratio and the second ratio;
[0129] The quality of the first original signal is evaluated according to the quality score of the first original signal.
[0130] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.
[0131] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application, or a combination thereof.
[0132] For software implementation, the technology of this article can be implemented by a unit that performs the functions of this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0133] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0134] When one or more programs in the storage medium can be executed by one or more processors, the signal quality evaluation method executed on the electronic device side can be implemented.
[0135] The processor is used to execute the signal quality evaluation program stored in the memory to implement the following steps of the signal quality evaluation method performed on the electronic device side:
[0136] Extracting a target signal from a first original signal output by a signal collector;
[0137] Calculating a first ratio of the energy of the target signal to the energy of the first original signal;
[0138] Calculate a second ratio of the energy of the first original signal to the energy of the full-value signal, where the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude of the first original signal;
[0139] Determining a quality score of the first original signal according to the first ratio and the second ratio;
[0140] The quality of the first original signal is evaluated according to the quality score of the first original signal.
[0141] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0142] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0143] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0144] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0145] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0146] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0147] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0148] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0149] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0150] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A signal quality assessment method, characterized in that: include: Extracting a target signal from a first original signal output by a signal collector; Calculating a first ratio of the energy of the target signal to the energy of the first original signal; Calculating a second ratio of the energy of the first original signal to the energy of a full-value signal, wherein the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude in the first original signal; determining a quality score of the first original signal according to the first ratio and the second ratio; evaluating the quality of the first original signal according to the quality score of the first original signal; The energy of the target signal and the energy of the first original signal are calculated by the following formula: Where P represents the energy of the signal, represents the signal value, and t represents the signal length; The first ratio is calculated by the following formula: in, represents the first ratio, represents the energy of the first original signal, represents the energy of the target signal; The second ratio is calculated by the following formula: in, represents the second ratio, Indicates full value signal; The determining the quality score of the first original signal according to the first ratio and the second ratio includes: Obtaining a first weight and a second weight, wherein the sum of the first weight and the second weight is 1; multiplying the first ratio by the first weight to obtain a first value; multiplying the second ratio by the second weight to obtain a second value; The sum of the first value and the second value is used as the quality score of the first original signal.
2. The method according to claim 1, characterized in that The target signal includes one or more signals; If it is determined that the target signal includes a signal, the energy of the signal is used as the energy of the target signal; If it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals is taken as the energy of the target signal.
3. The method according to claim 1, characterized in that The obtaining of the first weight and the second weight comprises: Determining whether the first ratio is greater than a first threshold; If it is determined that the first ratio is not greater than the first threshold, 1 is used as the first weight and 0 is used as the second weight.
4. The method according to claim 1, characterized in that: The evaluating the quality of the first original signal according to the quality score of the first original signal includes: Obtaining a quality score of a second original signal output by the signal collector; comparing the quality score of the first original signal with the quality score of the second original signal; If the quality score of the first original signal is greater than the quality score of the second original signal, it is determined that the quality of the first original signal is better than the quality of the second original signal; If it is found that the quality score of the first original signal is smaller than the quality score of the second original signal, it is determined that the quality of the second original signal is better than the quality of the first original signal.
5. A signal quality assessment device, characterized in that: include: An extraction module, used for extracting a target signal from a first original signal output by a signal collector; A first calculation module, used to calculate a first ratio of the energy of the target signal to the energy of the first original signal; A second calculation module is used to calculate a second ratio of the energy of the first original signal to the energy of a full-value signal, wherein the full-value signal is a signal whose signal length is consistent with the signal length of the first original signal and whose signal value is a signal with a maximum amplitude in the first original signal; a determination module, configured to determine a quality score of the first original signal according to the first ratio and the second ratio; An evaluation module, configured to evaluate the quality of the first original signal according to the quality score of the first original signal; The energy of the target signal and the energy of the first original signal are calculated by the following formula: Where P represents the energy of the signal, represents the signal value, and t represents the signal length; The first ratio is calculated by the following formula: in, represents the first ratio, represents the energy of the first original signal, represents the energy of the target signal; The second ratio is calculated by the following formula: in, represents the second ratio, Indicates full value signal; The determining module comprises: An acquiring unit, configured to acquire a first weight and a second weight, wherein a sum of the first weight and the second weight is 1; A first calculation unit, configured to multiply the first ratio by the first weight to obtain a first value; A second calculation unit, configured to multiply the second ratio by the second weight to obtain a second value; The third calculation unit is configured to use the sum of the first value and the second value as the quality score of the first original signal.
6. The device according to claim 5, characterized in that The target signal includes one or more signals; If it is determined that the target signal includes a signal, the energy of the signal is used as the energy of the target signal; If it is determined that the target signal includes multiple signals, the sum of the energies of the multiple signals is taken as the energy of the target signal.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a signal quality assessment program stored in the memory to implement the signal quality assessment method according to any one of claims 1 to 4.
8. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the signal quality assessment method according to any one of claims 1-4.
Citation Information
Patent Citations
Method for evaluating quality of human body impedance signals
CN109998546A
Hankel matrix structure optimization method and device, computing equipment and storage medium
CN111027414A
