Respiratory signal marker supplementation method, apparatus, computer device, and storage medium

By identifying interpolation points in the respiratory signal and supplementing them with labels, the problem of reconstruction accuracy caused by missing respiratory signal labels was solved, thereby increasing information and improving reconstruction results.

CN115462780BActive Publication Date: 2026-07-24SHANGHAI UNITED IMAGING HEALTHCARE
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI UNITED IMAGING HEALTHCARE
Filing Date
2022-09-14
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing technologies suffer from low accuracy and significant information loss when respiratory signal markers are missing, making it impossible to effectively utilize all respiratory information.

Method used

By acquiring respiratory signals with signal markers, interpolation points are determined based on the time interval between adjacent markers, and the signal markers are supplemented based on the interpolation points to generate supplemented signal markers.

Benefits of technology

It increases the amount of respiratory signal information, improves the accuracy of reconstruction results, and ensures the integrity and reliability of signal markers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115462780B_ABST
    Figure CN115462780B_ABST
Patent Text Reader

Abstract

The application relates to a respiratory signal marker supplementing method, device, computer equipment and storage medium. The method comprises the following steps: acquiring a respiratory signal provided with signal markers; in the case that adjacent markers in the signal markers meet preset missing conditions, determining interpolation points of the signal markers according to time intervals between the adjacent markers; supplementing the signal markers according to the interpolation points to generate supplemented signal markers of the respiratory signal. The method can increase information of the respiratory signal and improve the accuracy of respiratory signal reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of signal processing technology, and in particular to a method, apparatus, computer device, and storage medium for supplementing respiratory signal markers. Background Technology

[0002] Respiratory signals are commonly used data in clinical reconstruction, and the peaks and troughs in these signals serve as crucial information for the reconstruction process. During signal acquisition, factors such as limited access to the data subject or inability to complete specified operations can lead to tightly packed or irregularly changing respiratory signal waveforms. This makes it difficult to identify and label all peaks and troughs, resulting in missing labels. Furthermore, a disconnection of the respiratory signal waveform detection equipment or an imperfect labeling algorithm can also cause missing respiratory signal labels. Consequently, reconstruction based on these respiratory signal labels can result in poor imaging quality or even complete failure in reconstruction.

[0003] In existing technologies, the problem of missing markers in respiratory signals is addressed by discarding the marker of the second peak (or trough) out of two consecutive peaks (or troughs), thus ensuring that all markers in the respiratory signal exhibit alternating peaks and troughs. However, this method suffers from information loss, and because it fails to fully utilize all respiratory information, it can easily lead to low accuracy in the reconstruction results.

[0004] Therefore, current respiratory signal reconstruction techniques suffer from information loss. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, computer device, and computer-readable storage medium for supplementing respiratory signal markers that can increase respiratory signal information, in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for supplementing respiratory signal markers. The method includes:

[0007] Acquire respiratory signals with signal markers set;

[0008] If adjacent markers in the signal markers meet a preset missing condition, the interpolation point of the signal markers is determined based on the time interval between the adjacent markers.

[0009] The signal marker is supplemented based on the interpolation point to generate a supplemented signal marker for the respiratory signal.

[0010] In one embodiment, when adjacent markers in the signal markers meet a preset missing condition, determining the interpolation point of the signal marker based on the time interval between the adjacent markers includes:

[0011] When the adjacent markers are identical, determine the multiple of the time interval between the adjacent markers relative to the standard time interval;

[0012] When the multiple is a positive even number, the difference between the multiple and the first parameter is determined as the number of interpolation points;

[0013] If the multiple is a positive odd number and exceeds the first preset value, the difference between the multiple and the second parameter is determined as the number of interpolation points;

[0014] If the multiple is a positive odd number and does not exceed the first preset value, the third parameter is determined as the number of interpolation points;

[0015] Based on the number of interpolation points, the interpolation points of the signal markers are determined between the adjacent markers.

[0016] In one embodiment, determining the interpolation point of the signal marker based on the time interval between the adjacent markers, when the adjacent markers in the signal markers meet a preset missing condition, further includes:

[0017] If the adjacent markers are not identical and the time interval between the adjacent markers exceeds the standard time interval, determine the multiple of the time interval between the adjacent markers relative to the standard time interval;

[0018] If the multiple is a positive even number and exceeds the second preset value, the difference between the multiple and the fourth parameter is determined as the number of interpolation points.

[0019] If the multiple is a positive odd number and exceeds the third preset value, the difference between the multiple and the fifth parameter is determined as the number of interpolation points;

[0020] If the multiple is a positive even number and does not exceed the second preset value, the sixth parameter is determined as the number of interpolation points;

[0021] Based on the number of interpolation points, the interpolation points of the signal markers are determined between the adjacent markers.

[0022] In one embodiment, after supplementing the signal markers according to the interpolation points to generate supplemented signal markers for the respiratory signal, the method further includes:

[0023] Identify the supplemented adjacent markers in the supplemented signal markers;

[0024] When adjacent markers are identical after supplementation, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval.

[0025] Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker.

[0026] In one embodiment, after identifying the supplemented adjacent markers in the supplemented signal markers, the method further includes:

[0027] If the adjacent markers are not the same after the supplementation, obtain the time interval between the adjacent markers after the supplementation;

[0028] If the time interval between adjacent markers after supplementation does not exceed the standard time interval, the supplemented signal markers will not be supplemented.

[0029] In one embodiment, after obtaining the time interval between the supplemented adjacent markers when the supplemented adjacent markers are not the same, the method further includes:

[0030] If the time interval between adjacent markers after supplementation exceeds the standard time interval, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval.

[0031] Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker.

[0032] In one embodiment, before determining the interpolation point of the signal marker based on the time interval between the adjacent markers, if the adjacent markers in the signal markers meet a preset missing condition, the method further includes:

[0033] Obtain the historical markers preceding adjacent markers in the signal markers;

[0034] The time interval between the historical markers is determined as the standard time interval.

[0035] Secondly, this application also provides a respiratory signal marker supplementation device. The device includes:

[0036] The acquisition module is used to acquire respiratory signals that have been marked with signal tags;

[0037] The determining module is used to determine the interpolation point of the signal marker based on the time interval between the adjacent markers when the adjacent markers in the signal marker meet the preset missing condition;

[0038] The supplementary module is used to supplement the signal marker according to the interpolation point to generate a supplemented signal marker for the respiratory signal.

[0039] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0040] Acquire respiratory signals with signal markers set;

[0041] If adjacent markers in the signal markers meet a preset missing condition, the interpolation point of the signal markers is determined based on the time interval between the adjacent markers.

[0042] The signal marker is supplemented based on the interpolation point to generate a supplemented signal marker for the respiratory signal.

[0043] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0044] Acquire respiratory signals with signal markers set;

[0045] If adjacent markers in the signal markers meet a preset missing condition, the interpolation point of the signal markers is determined based on the time interval between the adjacent markers.

[0046] The signal marker is supplemented based on the interpolation point to generate a supplemented signal marker for the respiratory signal.

[0047] The above-mentioned respiratory signal marker supplementation method, device, computer equipment, and storage medium first acquire a respiratory signal with signal markers set, then, if adjacent markers in the signal markers meet preset missing conditions, determine the interpolation point of the signal markers based on the time interval between adjacent markers, and finally supplement the signal markers based on the interpolation point to generate a supplemented signal marker for the respiratory signal; it can supplement the signal markers when there are missing signal markers in the respiratory signal, thereby increasing the information of the respiratory signal.

[0048] Moreover, using the increased respiratory signals for reconstruction can improve the accuracy of the reconstruction results. Attached Figure Description

[0049] Figure 1 This is a diagram illustrating the application environment of a respiratory signal marker supplementation method in one embodiment;

[0050] Figure 2 This is a schematic diagram of respiratory signal markings in one embodiment;

[0051] Figure 3 This is a flowchart illustrating the respiratory signal marker supplementation method in another embodiment;

[0052] Figure 4 This is a structural block diagram of a respiratory signal marker supplementation device in one embodiment;

[0053] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0055] The respiratory signal marker supplementation method provided in this application can be applied to a terminal or a server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. The server can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0056] In one embodiment, such as Figure 1 As shown, a method for supplementing respiratory signal markers is provided. Taking the application of this method to a terminal as an example, the method includes the following steps:

[0057] Step S110: Acquire the respiratory signal with the signal marker set.

[0058] The respiratory signal can be a curve generated based on respiratory movements, or it can be a curve with regular changes obtained by preprocessing the curve generated based on respiratory movements.

[0059] Among them, signal marking can be used to mark the peaks and troughs in the respiratory signal.

[0060] In practice, respiratory signals can be collected by a respiratory signal acquisition device, and the collected respiratory signals can be input to a terminal. The terminal identifies the peaks and troughs in the respiratory signals and marks them to generate signal markers for the respiratory signals, so that the terminal can obtain respiratory signals with signal markers.

[0061] In practical applications, the terminal can also preprocess the respiratory signals collected by the respiratory signal acquisition device, such as filtering, noise reduction, and smoothing. The preprocessed respiratory signals can then be identified and labeled to obtain the signal labels of the preprocessed respiratory signals.

[0062] Step S120: If the adjacent markers in the signal markers meet the preset missing conditions, determine the interpolation point of the signal markers based on the time interval between the adjacent markers.

[0063] Adjacent markers can be two consecutive signal markers.

[0064] In practice, a missing condition for signal markers can be preset. This condition can be that adjacent markers are identical, or that although adjacent markers are different, the time interval between adjacent markers exceeds a preset time interval. The signal markers of the respiratory signals are detected according to their chronological order. If the current adjacent marker meets the missing condition, the standard time interval for the signal markers can be determined based on the signal markers preceding the current adjacent marker.

[0065] For cases where the missing condition is that adjacent markers are the same, the interpolation point between the current adjacent markers can be determined based on the multiple of the time interval between the current adjacent markers relative to the standard time interval. Alternatively, the standard time interval can be used as a preset time interval. For cases where the missing condition is that adjacent markers are not the same, but the time interval between adjacent markers exceeds the standard time interval, the interpolation point between the current adjacent markers can also be determined based on the multiple of the time interval between the current adjacent markers relative to the standard time interval.

[0066] Step S130: Supplement the signal markers according to the interpolation points to generate supplemented signal markers for the respiratory signal.

[0067] In practice, the position of the interpolation point between the current adjacent markers can be determined as the supplementary position for supplementing the signal marker. Alternatively, the supplementary marker for supplementing the signal marker at the supplementary position can be determined based on the current adjacent markers. By generating the supplementary marker at the supplementary position, the supplemented signal marker of the respiratory signal can be obtained.

[0068] Figure 2 This is a schematic diagram of respiratory signal markings in one embodiment. According to... Figure 2 In the respiratory signal waveform, troughs can be marked with "*" and peaks with "+", resulting in a respiratory signal with signal markings. For... Figure 2 The time required for marking with boxes in the middle is 5.6 × 10. 4 ~6.2×10 4 In cases where signal markers are missing, the time interval between adjacent markers can be determined to be 6.2 × 10⁻⁶. 4 -5.6×10 4 =0.6×10 4 It can also be based on 5.6×10 4The previous signal markings were used to calculate the standard time interval between peaks and troughs or between troughs and peaks. For example, a 5.6 × 10⁻⁶ interval could be selected. 4 Given a previous time interval t0, count the number n of all signal markers within t0, and determine t0 / n as the standard time interval. Assume the calculated standard time interval is 0.12 × 10⁻⁶. 4 The multiple of the time interval between adjacent markers relative to the standard time interval is calculated, yielding 0.6 × 10⁻⁶. 4 / 0.12×10 4 =5, therefore, the laying time can be determined to be 5.6 × 10. 4 ~6.2×10 4 The number of interpolation points is 5, and they are set alternately according to the trough-peak rule. The laying time is 5.6 × 10⁻⁶. 4 The location is a trough, and the laying time is 6.2 × 10. 4 The peak is at 5.6 × 10⁻⁶. 4 ~6.2×10 4 Five points are evenly selected between the points and labeled as peak, trough, peak, trough, and peak respectively.

[0069] The above-mentioned respiratory signal marker supplementation method first acquires a respiratory signal with signal markers set, then, if the adjacent markers in the signal markers meet the preset missing conditions, determines the interpolation point of the signal markers based on the time interval between the adjacent markers, and finally supplements the signal markers based on the interpolation point to generate a supplemented signal marker for the respiratory signal; it can supplement the signal markers when the signal markers in the respiratory signal are missing, thereby increasing the information of the respiratory signal.

[0070] Moreover, using the increased respiratory signals for reconstruction can improve the accuracy of the reconstruction results.

[0071] In one embodiment, step S120 may specifically include: when adjacent markers are identical, determining the multiple of the time interval between adjacent markers relative to the standard time interval; when the multiple is a positive even number, determining the difference between the multiple and a first parameter as the number of interpolation points; when the multiple is a positive odd number and exceeds a first preset value, determining the difference between the multiple and a second parameter as the number of interpolation points; when the multiple is a positive odd number and does not exceed the first preset value, determining a third parameter as the number of interpolation points; and determining the interpolation points of the signal markers between adjacent markers based on the number of interpolation points.

[0072] The standard time interval can be the standard time interval between adjacent peaks and troughs or adjacent troughs and peaks in the respiratory signal.

[0073] The first parameter can be 1, the second parameter can be 2, the third parameter can be 1, and the first preset value can be 1.

[0074] In practice, when adjacent markers form a peak-peak or trough-trough pattern, the multiple of the time interval between adjacent markers relative to the standard time interval can be calculated. If the multiple is a positive even number, the first parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive odd number and greater than a first preset value, the second parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive odd number and less than or equal to the first preset value, the third parameter is used as the number of interpolation points. After determining the number of interpolation points, interpolation points can be evenly distributed between adjacent markers based on the number of interpolation points.

[0075] For example, if the current adjacent marker points are in a continuous state of peak-peak or trough-trough, then first calculate the time interval T between the current adjacent marker points, and then calculate the multiple. Where t1 is the standard time interval. This indicates rounding up. If N is even, the number of interpolation points is N-1. For example, if N = 2, 4, 6, ..., the number of interpolation points is 1, 3, 5, .... If N is an odd number greater than 1, the number of interpolation points is N-2. For example, if N = 3, 5, 7, ..., the number of interpolation points is 1, 3, 5, .... If N = 1, then 1 point is interpolated to ensure peak-valley conditions.

[0076] In this embodiment, when adjacent markers are identical, the multiple of the time interval between adjacent markers relative to the standard time interval is determined. When the multiple is a positive even number, the difference between the multiple and the first parameter is determined as the number of interpolation points. When the multiple is a positive odd number and exceeds the first preset value, the difference between the multiple and the second parameter is determined as the number of interpolation points. When the multiple is a positive odd number and does not exceed the first preset value, the third parameter is determined as the number of interpolation points. Based on the number of interpolation points, the interpolation points of the signal markers are determined between adjacent markers. This can quickly determine the interpolation points between adjacent markers when there is a significant gap between adjacent markers (peak-peak or trough-trough), thus improving the efficiency of signal marker supplementation.

[0077] In one embodiment, step S120 may further include: determining a multiple of the time interval between adjacent markers relative to the standard time interval when adjacent markers are not identical and the time interval between adjacent markers exceeds the standard time interval; determining the number of interpolation points by the difference between the multiple and the fourth parameter when the multiple is a positive even number and exceeds the second preset value; determining the number of interpolation points by the difference between the multiple and the fifth parameter when the multiple is a positive odd number and exceeds the third preset value; determining the number of interpolation points by the sixth parameter when the multiple is a positive even number and does not exceed the second preset value; and determining the interpolation points of the signal markers between adjacent markers based on the number of interpolation points.

[0078] Among them, the fourth parameter can be 2, the fifth parameter can be 1, the sixth parameter can be 0, the second preset value can be 2, and the third preset value can be 1.

[0079] In practical implementation, when adjacent markers form a peak-trough or trough-peak pattern, it can be further determined whether the time interval between adjacent markers exceeds the standard time interval. If it does not exceed the standard time interval, it can be determined that there are no missing signal markers between adjacent markers; otherwise, if it exceeds the standard time interval, it can be determined that there are missing signal markers between adjacent markers. For cases where there are missing signal markers, the multiple of the time interval between adjacent markers relative to the standard time interval can be calculated. If the multiple is a positive even number and greater than the second preset value, the fourth parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive odd number and greater than the third preset value, the fifth parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive even number and less than or equal to the second preset value, the sixth parameter is used as the number of interpolation points. After determining the number of interpolation points, interpolation points can be evenly distributed between adjacent markers based on the number of interpolation points.

[0080] For example, if the current adjacent marker point is a peak-trough or trough-peak pattern, then the time interval P between the current adjacent marker points is further calculated, and then the multiplier is calculated. Where t1 is the standard time interval. This indicates rounding up. If N is an even number greater than 2, the number of interpolation points is N-2. For example, if N = 4, 6, 8, ..., the number of interpolation points is 2, 4, 6, .... If N is an odd number greater than 1, the number of interpolation points is N-1. For example, if N = 3, 5, 7, ..., the number of interpolation points is 2, 4, 6, .... If N = 2, then 0 points are interpolated, which is defined as the normal state and no interpolation is performed.

[0081] In this embodiment, when adjacent markers are different and the time interval between adjacent markers exceeds the standard time interval, the multiple of the time interval between adjacent markers relative to the standard time interval is determined. When the multiple is a positive even number and exceeds the second preset value, the difference between the multiple and the fourth parameter is determined as the number of interpolation points. When the multiple is a positive odd number and exceeds the third preset value, the difference between the multiple and the fifth parameter is determined as the number of interpolation points. When the multiple is a positive even number and does not exceed the second preset value, the sixth parameter is determined as the number of interpolation points. Based on the number of interpolation points, the interpolation points of the signal markers are determined between adjacent markers. This can determine whether a signal marker is missing when the adjacent markers have only a slight peak-valley or valley-peak gap, thus improving the accuracy of signal marker supplementation.

[0082] In one embodiment, after step S130, the method may further include: identifying adjacent markers in the supplemented signal markers; if the adjacent markers are the same, determining a new interpolation point for the supplemented signal markers based on the multiple of the time interval between adjacent markers relative to the standard time interval; and supplementing the supplemented signal markers based on the new interpolation point to generate new supplemented signal markers.

[0083] In specific implementation, two adjacent markers in the supplemented signal markers can be used as supplemented adjacent markers. According to the time sequence of the respiratory signals, the two adjacent markers in the supplemented signal markers are identified. If the two adjacent markers are identified as the same, a new interpolation point of the supplemented signal marker can be determined according to the multiple of the time interval between the two adjacent markers relative to the standard time interval. The location of the new interpolation point is determined as the supplementary position where the supplemented signal marker needs to be supplemented. The supplementary marker for supplementing the supplemented signal marker at the supplementary position is determined according to the two adjacent markers. By generating the supplementary marker at the supplementary position, a new supplemented signal marker is obtained.

[0084] In practical applications, to further ensure that all peaks and troughs in the respiratory signal are marked, after generating supplementary signal markers for the respiratory signal in step S130, it can be verified whether all supplementary signal markers are in an alternating peak-trough or trough-peak state. For two adjacent supplementary markers that are not in an alternating state, it indicates that there are still missing markers between these two adjacent supplementary markers. In this case, the method in the aforementioned embodiment can be used to calculate the multiple of the time interval between adjacent supplementary markers relative to the standard time interval. If the multiple is a positive even number, the first parameter is subtracted from the multiple to obtain the number of interpolation points; if the multiple is a positive odd number and greater than the first preset value, the second parameter is subtracted from the multiple to obtain the number of interpolation points; if the multiple is a positive odd number and less than or equal to the first preset value, the third parameter is used as the number of interpolation points. After determining the number of interpolation points, new interpolation points can be evenly set between adjacent supplementary markers according to the number of interpolation points.

[0085] In this embodiment, by identifying adjacent markers in the supplemented signal markers, and in the case where the adjacent markers are the same, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers relative to the standard time interval. Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker. This can further check whether there are missing signal markers in the supplemented signal markers, and further supplement the signal markers when they are missing, ensuring the integrity of the signal markers.

[0086] In one embodiment, after the step of identifying the supplemented adjacent markers in the supplemented signal markers, the method may further include: if the supplemented adjacent markers are different, obtaining the time interval between the supplemented adjacent markers; if the time interval between the supplemented adjacent markers does not exceed the standard time interval, not supplementing the supplemented signal markers.

[0087] In practice, the adjacent markers in the supplemented signal markers are identified according to the chronological order of the respiratory signals. If the two adjacent markers are not the same, the time interval between the two adjacent markers can be obtained and compared with the standard time interval. If the time interval is less than or equal to the standard time interval, it means that there are no missing signal markers in the supplemented signal markers, and the supplemented signal markers do not need to be supplemented.

[0088] In this embodiment, by obtaining the time interval between adjacent markers after supplementation when they are different, and not supplementing the signal markers if the time interval between adjacent markers after supplementation does not exceed the standard time interval, it is possible to further check whether there are missing signal markers in the supplemented signal markers and ensure the integrity of the signal markers.

[0089] In one embodiment, after obtaining the time interval between adjacent markers after supplementation when they are not the same, the method may further include: if the time interval between adjacent markers after supplementation exceeds the standard time interval, determining a new interpolation point for the supplemented signal marker based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval; supplementing the supplemented signal marker based on the new interpolation point to generate a new supplemented signal marker.

[0090] In the specific implementation, according to the chronological order of the respiratory signals, two adjacent markers in the supplemented signal markers are identified. If two adjacent markers are found to be different, the time interval between the two adjacent markers can be obtained and compared with the standard time interval. If it is greater than the standard time interval, a new interpolation point of the supplemented signal marker can be determined based on the multiple of the time interval between the two adjacent markers relative to the standard time interval. The location of the new interpolation point is determined as the supplementary position where the supplemented signal marker needs to be supplemented. The supplementary marker at the supplementary position is determined based on the two adjacent markers. By generating the supplementary marker at the supplementary position, a new supplemented signal marker is obtained.

[0091] In practical applications, to further ensure that all peaks and troughs in the respiratory signal are marked, after generating supplementary signal markers for the respiratory signal in step S130, it can be verified whether all supplementary signal markers are in an alternating peak-trough or trough-peak state. For two adjacent supplementary markers in an alternating state, the time interval between the two adjacent supplementary markers can be obtained and compared with the standard time interval. If it is less than or equal to the standard time interval, it is determined that there is no missing signal marker, and supplementary signal markers are not required. Otherwise, if it is greater than the standard time interval, it indicates that there is a missing signal marker. The method described in the previous embodiment can be used to calculate the multiple of the time interval between adjacent supplementary markers relative to the standard time interval. If the multiple is a positive even number and greater than the second preset value, the fourth parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive odd number and greater than the third preset value, the fifth parameter is subtracted from the multiple to obtain the number of interpolation points. If the multiple is a positive even number and less than or equal to the second preset value, the sixth parameter is used as the number of interpolation points. After determining the number of interpolation points, new interpolation points can be evenly distributed between adjacent markers after supplementation, based on the number of interpolation points.

[0092] In this embodiment, when the time interval between adjacent markers after supplementation exceeds the standard time interval, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval. Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker. This can further check whether there are missing signal markers in the supplemented signal markers, and further supplement the signal markers when they are missing, ensuring the integrity of the signal markers.

[0093] In one embodiment, before step S120, the method may further include: obtaining historical markers preceding adjacent markers in the signal markers; and determining the time interval between historical markers as a standard time interval.

[0094] In practice, if adjacent markers meet the preset missing conditions, the signal markers before the adjacent markers can be used as historical markers, and the average time interval between adjacent markers in the historical markers can be calculated to obtain the standard time interval.

[0095] For example, according to Figure 2 The time required for marking using boxes is 5.6 × 10. 4 ~6.2×10 4 The signal markers are missing between 5.6 × 10 4 Previous signal markers are used as historical markers. The average time interval between peaks and troughs or troughs and peaks of historical markers is calculated. Specifically, a 5.6 × 10⁻⁶ segment can be extracted.4 Given a previous time interval t0, count the number n of all signal markers within t0, and determine t0 / n as the standard time interval.

[0096] In this embodiment, by obtaining historical markers preceding adjacent markers in the signal markers, the time interval between historical markers is determined as the standard time interval. This allows for the statistical analysis of the standard time interval between peaks and troughs or troughs and peaks in the signal markers. This facilitates marker supplementation based on the standard time interval when markers are missing, thereby improving the reliability of marker supplementation.

[0097] In one embodiment, such as Figure 3 As shown, a method for supplementing respiratory signal markers is provided. Taking the application of this method to a terminal as an example, the method includes the following steps:

[0098] Step S210: Acquire the respiratory signal with the signal marker set;

[0099] Step S220: If the adjacent markers in the signal markers meet the preset missing conditions, determine the interpolation point of the signal markers based on the time interval between the adjacent markers.

[0100] Step S230: Supplement the signal markers according to the interpolation points to generate supplemented signal markers for the respiratory signal;

[0101] Step S240: Identify the adjacent markers in the supplemented signal markers;

[0102] Step S250: When adjacent markers are identical after supplementation, determine a new interpolation point for the supplemented signal marker based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval; supplement the supplemented signal marker based on the new interpolation point to generate a new supplemented signal marker.

[0103] Step S260: If the adjacent markers are different after supplementation, obtain the time interval between the adjacent markers after supplementation;

[0104] Step S262: If the time interval between adjacent markers after supplementation exceeds the standard time interval, determine a new interpolation point for the supplemented signal marker based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval; supplement the supplemented signal marker based on the new interpolation point to generate a new supplemented signal marker.

[0105] Step S264: If the time interval between adjacent markers after supplementation does not exceed the standard time interval, the supplemented signal markers are not supplemented.

[0106] In this embodiment, by acquiring a respiratory signal marked with signal markers, and when adjacent markers in the signal markers meet a preset missing condition, an interpolation point for the signal markers is determined based on the time interval between adjacent markers. The signal markers are then supplemented based on the interpolation point to generate a supplemented signal marker for the respiratory signal. This method can supplement signal markers when they are missing in the respiratory signal, thus increasing the information of the respiratory signal. Based on the supplemented adjacent markers in the supplemented signal markers and the time interval between them, a new interpolation point for the supplemented signal markers is determined. The supplemented signal markers are then supplemented based on the new interpolation point to generate a new supplemented signal marker. This method can further check whether there are any missing signal markers in the supplemented signal markers and supplement them when they are missing, ensuring the reliability of the signal marker supplementation.

[0107] To facilitate a deeper understanding of the embodiments of this application by those skilled in the art, a specific example will be used for illustration below.

[0108] To enhance the information in respiratory signals and improve the accuracy of signal reconstruction, a supplementary labeling method for respiratory signal peaks and troughs is proposed, which includes the following steps:

[0109] 1. Calculate the average time interval t1 between all peak and trough markers preceding the current marker point;

[0110] 2. Determine whether the current marker point is a continuous peak state with the previous marker point;

[0111] 3. If it is a continuous state, the time interval T of the current continuous state is calculated to be a multiple of t1. Starting from 1, the multiples are incremented in the manner of 2N. If the multiple is greater than 2*(N-1) and less than 2*N, interpolation is required. The number of interpolation points is 2N-1. The interpolation points are marked according to peak-valley or valley-peak. Then, the peak and valley signals of the interpolation are added to the overall marking.

[0112] 4. Verify whether all waves are in a peak-trough or trough-peak state;

[0113] 5. After step 4, calculate the time interval P between every two marked points, and then calculate that P is a multiple of t1. Starting from 1, interpolate 2*N points in increments of 2*(N+1). For time intervals greater than 2*N+1 and less than 2*(N+1)+1, mark them according to peak-valley or valley-peak conditions, and add the interpolated points to the overall marking.

[0114] The above-mentioned method of supplementing the peaks and troughs of respiratory signals can increase the information of respiratory signals and improve the accuracy of signal reconstruction.

[0115] Moreover, by introducing a verification step, the respiratory signal markers are detected and supplemented twice, which can effectively solve the problem of incomplete supplementation of respiratory markers caused by missing respiratory signals, so that the missing markers in the respiratory signals are supplemented as much as possible.

[0116] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0117] Based on the same inventive concept, this application also provides a respiratory signal marker supplementation device for implementing the respiratory signal marker supplementation method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more respiratory signal marker supplementation device embodiments provided below can be found in the limitations of the respiratory signal marker supplementation method described above, and will not be repeated here.

[0118] In one embodiment, such as Figure 4 As shown, a respiratory signal marker supplementation device is provided, comprising: an acquisition module 310, a determination module 320, and a supplementation module 330, wherein:

[0119] Acquisition module 310 is used to acquire respiratory signals with signal markers set;

[0120] The determining module 320 is used to determine the interpolation point of the signal marker based on the time interval between the adjacent markers when the adjacent markers in the signal marker meet the preset missing condition;

[0121] The supplementary module 330 is used to supplement the signal marker according to the interpolation point to generate a supplemented signal marker for the respiratory signal.

[0122] In one embodiment, the determining module 320 is further configured to: determine, when the adjacent markers are identical, a multiple of the time interval between the adjacent markers relative to a standard time interval; when the multiple is a positive even number, determine the difference between the multiple and a first parameter as the number of interpolation points; when the multiple is a positive odd number and exceeds a first preset value, determine the difference between the multiple and a second parameter as the number of interpolation points; when the multiple is a positive odd number and does not exceed the first preset value, determine a third parameter as the number of interpolation points; and determine the interpolation points of the signal markers between the adjacent markers based on the number of interpolation points.

[0123] In one embodiment, the determining module 320 is further configured to: determine a multiple of the time interval between adjacent markers relative to the standard time interval when the adjacent markers are not identical and the time interval between the adjacent markers exceeds the standard time interval; and determine the difference between the multiple and the fourth parameter as the number of interpolation points when the multiple is a positive even number and exceeds a second preset value.

[0124] When the multiple is a positive odd number and exceeds a third preset value, the difference between the multiple and the fifth parameter is determined as the number of interpolation points; when the multiple is a positive even number and does not exceed the second preset value, the sixth parameter is determined as the number of interpolation points; based on the number of interpolation points, the interpolation points of the signal markers are determined between the adjacent markers.

[0125] In one embodiment, the above-mentioned respiratory signal marker supplementation device further includes:

[0126] The identification module is used to identify the supplemented adjacent markers in the supplemented signal markers;

[0127] The same-mark processing module is used to determine a new interpolation point for the supplemented signal mark based on the multiple of the time interval between the supplemented adjacent marks relative to the standard time interval when the supplemented adjacent marks are the same.

[0128] The same supplement module is used to supplement the supplemented signal marker according to the new interpolation point and generate a new supplemented signal marker.

[0129] In one embodiment, the above-mentioned respiratory signal marker supplementation device further includes:

[0130] Different processing modules are marked to obtain the time interval between adjacent marks after supplementation when adjacent marks are not the same after supplementation;

[0131] The first time interval processing module is configured not to supplement the supplemented signal markers if the time interval between adjacent markers after supplementation does not exceed the standard time interval.

[0132] In one embodiment, the above-mentioned respiratory signal marker supplementation device further includes:

[0133] The second time interval processing module is used to determine a new interpolation point for the supplemented signal markers based on the multiple of the time interval between the supplemented adjacent markers relative to the standard time interval when the time interval between the supplemented adjacent markers exceeds the standard time interval.

[0134] Different supplementary modules are used to supplement the supplemented signal markers according to the new interpolation point, and generate new supplemented signal markers.

[0135] In one embodiment, the above-mentioned respiratory signal marker supplementation device further includes:

[0136] The historical marker acquisition module is used to acquire historical markers preceding adjacent markers in the signal markers;

[0137] The standard time interval determination module is used to determine the time interval between the historical markers as the standard time interval.

[0138] Each module in the aforementioned respiratory signal marker supplementation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0139] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a breathing signal tag supplementation method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device casing, or an external keyboard, touchpad, or mouse.

[0140] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0141] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0142] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can 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 can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0144] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0145] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for supplementing respiratory signal markers, characterized in that, The method includes: Acquire respiratory signals with signal markers set; If adjacent markers in the signal markers meet a preset missing condition, the interpolation point of the signal markers is determined based on the time interval between the adjacent markers. The signal markers are supplemented based on the interpolation points to generate supplemented signal markers for the respiratory signal; Identify the supplemented adjacent markers in the supplemented signal markers; When adjacent markers are identical after supplementation, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval. Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker; The missing condition includes any one of the following: The adjacent markers are the same; The adjacent markers are not the same, and the time interval between the adjacent markers exceeds the standard time interval; When adjacent markers in the signal markers meet a preset missing condition, determining the interpolation point of the signal marker based on the time interval between the adjacent markers includes: When adjacent markers are identical, determine the multiple N of the time interval between adjacent markers relative to the standard time interval. If N is even, the number of interpolation points is N-1; if N is an odd number greater than 1, the number of interpolation points is N-2; if N=1, the number of interpolation points is 1; or... When the adjacent markers are not the same and the time interval between the adjacent markers exceeds the standard time interval, determine the multiple N of the time interval between the adjacent markers relative to the standard time interval. If N is an even number greater than 2, the number of interpolation points is N-2. If N is an odd number greater than 1, the number of interpolation points is N-1. If N=2, no interpolation is performed. Based on the number of interpolation points, the interpolation points of the signal markers are determined between the adjacent markers; Alternatively, the respiratory signal labeling supplementation method includes: Calculate the average time interval between all peak and trough markers preceding the current marker; Determine whether the current marker point is continuous with the previous marker point; If so, calculate the multiple of the time interval of the continuous state relative to the average time interval, starting from 1 and increasing by multiples in the manner of 2N, interpolating 2N-1 points for values ​​greater than 2*(N-1) and less than 2*N, and marking the interpolation points according to the peaks and troughs or the troughs and peaks. Verify whether all waves are in a peak-trough or trough-peak state; Calculate the multiple of the time interval between each pair of marked points relative to the average time interval, starting from 1 and increasing by multiples of 2*(N+1). For time intervals greater than 2*N+1 and less than 2*(N+1)+1, interpolate 2*N points and mark them according to peaks and troughs or troughs and peaks.

2. The method according to claim 1, characterized in that, The acquisition of the respiratory signal marked with a signal includes: Identify the peaks and troughs in the respiratory signal; The identified peaks and troughs are marked to generate signal markers for the respiratory signal.

3. The method according to claim 1, characterized in that, After identifying the supplemented adjacent markers in the supplemented signal markers, the method further includes: If the adjacent markers are not the same after the supplementation, obtain the time interval between the adjacent markers after the supplementation; If the time interval between adjacent markers after supplementation does not exceed the standard time interval, the supplemented signal markers will not be supplemented.

4. The method according to claim 3, characterized in that, In cases where the supplemented adjacent markers are not identical, after obtaining the time interval between the supplemented adjacent markers, the method further includes: If the time interval between adjacent markers after supplementation exceeds the standard time interval, a new interpolation point for the supplemented signal marker is determined based on the multiple of the time interval between adjacent markers after supplementation relative to the standard time interval. Based on the new interpolation point, the supplemented signal marker is supplemented to generate a new supplemented signal marker.

5. The method according to any one of claims 1 to 4, characterized in that, Before determining the interpolation point of the signal marker based on the time interval between adjacent markers, if adjacent markers in the signal markers meet a preset missing condition, the method further includes: Obtain the historical markers preceding adjacent markers in the signal markers; The time interval between the historical markers is determined as the standard time interval.

6. A respiratory signal marker supplementation device, characterized in that, The device includes: The acquisition module is used to acquire respiratory signals that have been marked with signal tags; The determining module is used to determine the interpolation point of the signal marker based on the time interval between the adjacent markers when the adjacent markers in the signal marker meet a preset missing condition; the missing condition includes any one of the following: the adjacent markers are the same; the adjacent markers are not the same, and the time interval between the adjacent markers exceeds a standard time interval; The determining module is further configured to: when adjacent markers are identical, determine the multiple N of the time interval between adjacent markers relative to the standard time interval; if N is even, the number of interpolation points is N-1; if N is odd greater than 1, the number of interpolation points is N-2; if N=1, the number of interpolation points is 1; or, when adjacent markers are not identical and the time interval between adjacent markers exceeds the standard time interval, determine the multiple N of the time interval between adjacent markers relative to the standard time interval; if N is even greater than 2, the number of interpolation points is N-2; if N is odd greater than 1, the number of interpolation points is N-1; if N=2, no interpolation is performed; and determine the interpolation points of the signal markers between adjacent markers based on the number of interpolation points. The supplementary module is used to supplement the signal marker according to the interpolation point to generate a supplemented signal marker for the respiratory signal; The identification module is used to identify the supplemented adjacent markers in the supplemented signal markers; The same-mark processing module is used to determine a new interpolation point for the supplemented signal mark based on the multiple of the time interval between the supplemented adjacent marks relative to the standard time interval when the supplemented adjacent marks are the same. The same supplement module is used to supplement the supplemented signal marker according to the new interpolation point and generate a new supplemented signal marker.

7. The apparatus according to claim 6, characterized in that, The device further includes: Different processing modules are marked to obtain the time interval between adjacent marks after supplementation when adjacent marks are not the same after supplementation; The first time interval processing module is configured not to supplement the supplemented signal markers if the time interval between adjacent markers after supplementation does not exceed the standard time interval.

8. The apparatus according to claim 7, characterized in that, The device further includes: The second time interval processing module is used to determine a new interpolation point for the supplemented signal markers based on the multiple of the time interval between the supplemented adjacent markers relative to the standard time interval when the time interval between the supplemented adjacent markers exceeds the standard time interval. Different supplementary modules are used to supplement the supplemented signal markers according to the new interpolation point, and generate new supplemented signal markers.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.