Method for acquiring respiratory gating signal in non-contact manner

Through the non-contact method of acquiring respiratory gating signals, RGB and depth image processing technology is used to solve the problem of poor chest X-ray quality caused by the inability of infants and deaf-mute people to cooperate with breathing. It realizes automatic exposure control, simplifies operations and Radiation risk is reduced.

CN118743556APending Publication Date: 2024-10-08LIAONING KAMPO MEDICAL SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310296045.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In chest X-ray photography, some patients, especially infants and deaf-mute people, cannot cooperate with breathing, resulting in poor quality of chest X-rays. The existing contact respiratory gating signal acquisition method is complex and inconvenient, increasing the radiation risk for patients.

Method used

A non-contact method is used to obtain the RGB image and depth image of the respiratory state in real time, the Euler video amplification algorithm and the depth image are used to extract the respiratory signal, and the depth data is combined to determine the respiratory movement state to achieve automatic exposure control.

Benefits of technology

This method simplifies the operation, reduces the patient's radiation risk, provides accurate respiratory gating signals, improves the quality of chest X-rays, and avoids the inconvenience of contact acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118743556A_ABST
    Figure CN118743556A_ABST
Patent Text Reader

Abstract

The invention discloses a method for acquiring a respiratory gating signal in a non-contact manner. The method comprises the following steps: acquiring a video image; amplifying the respiratory motion; respiratory signal extraction; and outputting a gating signal. Aiming at a patient who cannot well cooperate with a doctor to breathe in X-ray photography, a video image of the patient is collected, and an Euler video amplification algorithm is adopted to amplify weak breathing motion to extract a breathing signal, so that a gating signal for controlling exposure is obtained. The invention provides the method for acquiring the respiratory gating signal in a non-contact manner by adopting visual calculation, the method is simple to operate and high in practicability, the shooting quality of the chest radiograph of the patient can be improved, and the waste radiograph rate can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of medical treatment of X-ray imaging, in particular to a method for non-contact acquisition of respiratory gating signals. Background Art

[0002] Chest X-ray is widely used in chest medical imaging due to its convenience, low price and low radiation dose.

[0003] During a DR chest X-ray examination, the patient needs to cooperate with the doctor in breathing to reduce the problem of poor chest X-ray quality caused by respiratory movement or insufficient inspiration. For some patients, especially infants and deaf-mute people who cannot cooperate with the doctor in breathing, it is difficult to grasp the best time for exposure by relying solely on the experience and naked eye observation of imaging technicians. In order to obtain a high-quality chest X-ray, multiple exposures are often required, which increases the patient's radiation risk.

[0004] At present, the best solution to the above problems is to use respiratory gating technology to accurately identify the patient's respiratory state and control the DR device for automatic exposure. However, most respiratory gating signal acquisition is contact-based, requiring the patient to wear a pressure sensor on the chest and abdomen or install a respiratory detection device on the mouth and nose, which increases the complexity of the operation and causes discomfort to the patient. Summary of the invention

[0005] The purpose of the present invention is to provide a non-contact method for obtaining respiratory gating signals to reduce the impact of respiratory movement on the quality of chest X-rays and avoid the inconvenience caused to imaging technicians and patients by contact-type acquisition of respiratory gating signals.

[0006] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:

[0007] A method for non-contact acquisition of respiratory gating signals comprises the following steps:

[0008] 1) Obtain the breathing state RGB image and depth image in real time, and align the RGB image with the depth image;

[0009] 2) Enlarge the RGB image using the Euler video enlargement algorithm and convert the enlarged image into a grayscale image;

[0010] 3) Extracting breathing signals and distance signals through depth images and grayscale images;

[0011] 4) Process the respiratory signal, obtain the respiratory gating signal and output it.

[0012] The step 3) comprises the following steps:

[0013] 3.1) Setting the size of the rectangular pixel block according to the distance from the camera to the patient, and dividing the depth image and the grayscale image into non-overlapping areas according to the set pixel block size;

[0014] 3.2) Calculate the average gray value M for each segmented area g (n,t) and the average distance value M d (n,t):

[0015]

[0016]

[0017] Among them, n represents the nth segmented area, G n (i, t) represents the grayscale image of the i-th block after being enlarged at time t, D n (i, t) represents the i-th depth image at time t, and N represents the number of pixels in the area;

[0018] 3.3) Set the signal window time to K seconds, and update the gray value signal S of each block in the window in real time according to the camera frame rate g (n) and depth value signal S d (n):

[0019] S g (n)=[M g (n,tK),...M g (n,t)]

[0020] S d (n)=[M d (n,tK),...M d (n,t)];

[0021] 3.4) In the first K second window, select the gray value signal S g The signal with the least noise in (n) is taken as the optimal signal, and the similarity between other gray value signals and the optimal signal is calculated, and the area where the similarity meets the threshold is recorded and saved as the breathing area;

[0022] 3.5) Gray value signal S of the breathing area g (n) Perform superposition processing to obtain the breathing signal RS, and the depth value signal S of the selected area d (n) Perform superposition processing to obtain the distance signal DS:

[0023] RS=∑S g (index)

[0024] DS=∑S d (index)

[0025] Among them, index represents the sequence number of the area whose similarity meets the threshold.

[0026] The step 4) comprises the following steps:

[0027] 4.1) Perform low-pass filtering on the respiratory signal RS;

[0028] 4.2) Calculate the peak and trough positions and amplitudes of the filtered respiratory signal RS, and use linear interpolation to obtain the peak and trough envelopes of the entire window;

[0029] 4.3) Calculate the average distance M of the distance signal DS corresponding to the peak and trough positions of the breathing signal RS respectively DSP and M DSV :

[0030]

[0031]

[0032] Where X represents the number of peaks, P(i) represents the position of the i-th peak, Y represents the number of troughs, and V(j) represents the position of the j-th trough;

[0033] 4.4) When M DSP >M DSV When the peak of RS corresponds to the final state of exhalation, the trough corresponds to the final state of inspiration. At this time, the respiratory signal RS and the peak-trough envelope are flipped. Otherwise, if the respiratory state is the opposite, RS does not need to be flipped; and the gated signal trigger curve RT is obtained according to the peak-trough envelope:

[0034] RT i =RV i +a×(RP i -RV i )

[0035] Among them, RT i Indicates the value of the gate trigger curve at point i, RV i Represents the value of the trough envelope at point i, RP i represents the value of the peak envelope at point i, and a is the threshold;

[0036] 4.5) When the amplitude of the newly input respiratory signal RS i Meet RS i ≥RT i When the gate is triggered, the gate is closed otherwise.

[0037] A device for non-contact acquisition of respiratory gating signals, comprising:

[0038] The video image acquisition module is used to obtain the breathing state RGB image and depth image in real time, and align the RGB image with the depth image;

[0039] A respiratory motion magnification module is used to magnify the RGB image using the Euler video magnification algorithm and convert the magnified image into a grayscale image;

[0040] A breathing signal extraction module, used to extract a breathing signal and a distance signal through a depth image and a grayscale image;

[0041] The gated signal output module is used to process the respiratory signal, obtain the respiratory gating signal and output it.

[0042] The video image acquisition module is a depth camera installed next to the beam limiter of the DR device and simultaneously acquires RGB images and depth images in real time.

[0043] The respiratory motion amplification module comprises:

[0044] An image region segmentation module is used to set the size of a rectangular pixel block according to the distance from the camera to the patient, and to segment the depth image and the grayscale image into non-overlapping regions according to the set pixel block size;

[0045] The local signal extraction module is used to calculate the average gray value M for each segmented area. g (n,t) and the average distance value M d (n,t);

[0046] The signal update module is used to set the signal window time to K seconds and update the gray value signal S of each block in the window in real time according to the camera frame rate. g (n) and depth value signal S d (n):

[0047] The breathing area recognition module is used to select the gray value signal S in the first K second window g The signal with the least noise in (n) is taken as the optimal signal, and the similarity between other gray value signals and the optimal signal is calculated, and the area where the similarity meets the threshold is recorded and saved as the breathing area;

[0048] Signal superposition module, used to superimpose the gray value signal S of the breathing area g (n) Perform superposition processing to obtain the breathing signal RS, and the depth value signal S of the selected area d (n) Perform superposition processing to obtain the distance signal DS.

[0049] The gate signal output module comprises:

[0050] A respiratory signal preprocessing module, used for performing low-pass filtering on the respiratory signal RS;

[0051] The respiratory signal envelope calculation module is used to calculate the peak and trough positions and amplitudes of the filtered respiratory signal RS, and obtain the peak and trough envelopes of the entire window using linear interpolation;

[0052] The breathing state judgment module is used to calculate the average distance M of the distance signal DS corresponding to the peak and trough positions of the breathing signal RS. DSP and M DSV , when M DSP >M DSV When the peak of RS corresponds to the final state of exhalation, the trough corresponds to the final state of inspiration. At this time, the respiratory signal RS and the peak-trough envelope are flipped. Otherwise, if the respiratory state is the opposite, RS does not need to be flipped. The gated signal trigger curve RT is obtained according to the peak-trough envelope.

[0053] The gated signal output module is used to detect the amplitude of the newly input respiratory signal RS i Meet RS i ≥RT i When the gate is triggered, the gate is closed otherwise.

[0054] The present invention has the following beneficial effects and advantages:

[0055] The present invention collects video images of patients, uses the Euler video magnification algorithm to amplify weak respiratory movements, and uses a block method to identify respiratory movement areas without prior marking. The distance data obtained by the depth camera is combined to further judge the respiratory movement state, thereby obtaining an accurate gated output signal. The method is simple to operate and highly practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a flow chart of the method of the present invention;

[0057] Figure 2 Flowchart for respiratory signal extraction;

[0058] Figure 3 Flowchart for gated output;

[0059] Figure 4 This is a diagram of the respiratory waveform and the corresponding gated signal output obtained by the present invention. DETAILED DESCRIPTION

[0060] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0061] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0062] The specific flow chart of the present invention is as follows Figure 1 As shown:

[0063] Step 101: Video image acquisition: The RGB image and the depth image are acquired in real time through a depth camera installed next to the beam limiter of the DR device, and the RGB image and the depth image are aligned.

[0064] Step 102: Respiratory motion amplification processing. The collected RGB image is subjected to motion amplification processing using the Euler video magnification algorithm EVM to obtain a motion-amplified image, which is then converted into a grayscale image for storage.

[0065] Step 103: Extraction of respiratory signal. The flowchart of this step is as follows: Figure 2 As shown:

[0066] Step 201: Image region segmentation: The size of the rectangular pixel block is set according to the distance from the camera to the patient, and the image is segmented into non-overlapping regions according to the set pixel block size.

[0067] Step 202: Local signal extraction. Calculate the average gray value M for each segmented area. g (n,t) and the average distance value M d (n,t).

[0068]

[0069] Among them, n represents the nth segmented area, t represents a certain moment, G n represents the grayscale image of the nth block after magnification at time t, D n represents the nth block of depth image at time t, where N represents the number of pixels in the area.

[0070] Set the signal window time to 10s, and update the gray value signal S of each block in the window in real time according to the camera frame rate g (n) and depth value signal S d (n).

[0071] S g (n)=[M g (n,t-10),...M g (n,t)],S d (n)=[M d (n,t-10),...M d (n,t)]

[0072] Step 203: Respiratory region identification. Only the first 10-second window is identified, and no further identification is performed. Select signal S g(n), similarity calculation is performed between other gray value signals and the optimal signal, and the area meeting the threshold is recorded and saved as the breathing area;

[0073] Step 204: Signal S of the identified breathing area g (n) The superposition process is performed as the breathing signal RS, and the distance signal S is processed for the selected area. d The superposition of (n) is DS.

[0074] RS=∑S g (index), DS = ∑S d (index)

[0075] Wherein, index represents the sequence number of the area that meets the threshold in step 203.

[0076] Step 104: Gating signal output. The flowchart of this step is as follows: Figure 3 As shown:

[0077] Step 301: Respiration signal preprocessing: performing low-pass filtering on the acquired respiratory signal RS.

[0078] Step 302: Calculate the envelope of the respiratory signal. By calculating the peak and trough positions and amplitudes of the respiratory signal RS, use linear interpolation to obtain the peak and trough envelopes of the entire window;

[0079] Step 303: Determine the breathing state. Calculate the average distance M of the distance signal DS corresponding to the peak and trough positions of the breathing signal RS. DSP and M DSV .

[0080]

[0081] Where N represents the number of peaks, P(i) represents the position of the i-th peak, M represents the number of troughs, and V(j) represents the position of the j-th trough.

[0082] When M DSP >M DSV When the peak of RS corresponds to the final state of exhalation, the trough corresponds to the final state of inspiration. At this time, the respiratory signal RS and the peak and trough envelopes are flipped. Otherwise, the respiratory state is the opposite and RS does not need to be flipped.

[0083] Step 304: Gating signal output. The gated signal trigger curve can be obtained from the peak and trough envelope:

[0084] RT i =RV i +a×(RP i -RV i )

[0085] Among them, RT i Indicates the value of the gate trigger curve at point i, RV i Represents the value of the trough envelope at point i, RP i represents the value of the peak envelope at point i, and a is the threshold;

[0086] When the new input breathing signal amplitude RS i Meet RS i >=RT i The gate is triggered when ON, otherwise the gate is closed.

[0087] Figure 4 The respiratory waveform obtained by the present invention and the corresponding gated signal output diagram are given.

[0088] According to the above steps of the present invention, ordinary technicians in the field can understand and implement it without any creative work.

[0089] The above description is only an embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, expansion, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for non-contact acquisition of respiratory gating signals, characterized in that: The following steps are involved: 1) Obtain the breathing state RGB image and depth image in real time, and align the RGB image with the depth image; 2) Enlarge the RGB image using the Euler video enlargement algorithm and convert the enlarged image into a grayscale image; 3) Extracting breathing signals and distance signals through depth images and grayscale images; 4) Process the respiratory signal, obtain the respiratory gating signal and output it.

2. A method for non-contact acquisition of respiratory gating signals according to claim 1, characterized in that: The step 3) comprises the following steps: 3.1) Setting the size of the rectangular pixel block according to the distance from the camera to the patient, and dividing the depth image and the grayscale image into non-overlapping areas according to the set pixel block size; 3.2) Calculate the average gray value M for each segmented area g (n,t) and the average distance value M d (n,t): Among them, n represents the nth segmented area, G n (i, t) represents the grayscale image of the i-th block after being enlarged at time t, D n (i, t) represents the i-th depth image at time t, and N represents the number of pixels in the area; 3.3) Set the signal window time to K seconds, and update the gray value signal S of each block in the window in real time according to the camera frame rate g (n) and depth value signal S d (n): S g (n)=[M g (n,t-K),...M g (n,t)] S d (n)=[M d (n,t-K),...M d (n,t)]; 3.4) In the first K second window, select the gray value signal S g The signal with the least noise in (n) is taken as the optimal signal, and the similarity between other gray value signals and the optimal signal is calculated, and the area where the similarity meets the threshold is recorded and saved as the breathing area; 3.5) Gray value signal S of the breathing area g (n) Perform superposition processing to obtain the breathing signal RS, and the depth value signal S of the selected area d (n) Perform superposition processing to obtain the distance signal DS: RS=∑S g (index) DS=∑S d (index) Among them, index represents the sequence number of the area whose similarity meets the threshold.

3. The method for non-contact acquisition of respiratory gating signals according to claim 1, characterized in that: The step 4) comprises the following steps: 4.1) Perform low-pass filtering on the respiratory signal RS; 4.2) Calculate the peak and trough positions and amplitudes of the filtered respiratory signal RS, and use linear interpolation to obtain the peak and trough envelopes of the entire window; 4.3) Calculate the average distance M of the distance signal DS corresponding to the peak and trough positions of the breathing signal RS respectively DSP and M DSV : Where X represents the number of peaks, P(i) represents the position of the i-th peak, Y represents the number of troughs, and V(j) represents the position of the j-th trough; 4.4) When M DSP >M DSV When the peak of RS corresponds to the final state of exhalation, the trough corresponds to the final state of inspiration. At this time, the respiratory signal RS and the peak-trough envelope are flipped. Otherwise, if the respiratory state is the opposite, RS does not need to be flipped; and the gated signal trigger curve RT is obtained according to the peak-trough envelope: RT i =RV i +a×(RP i -RV i ) Among them, RT i Indicates the value of the gate trigger curve at point i, RV i Represents the value of the trough envelope at point i, RP i represents the value of the peak envelope at point i, and a is the threshold; 4.5) When the amplitude of the newly input respiratory signal RS i Meet RS i ≥RT i When the gate is triggered, the gate is closed otherwise.

4. A device for non-contact acquisition of respiratory gating signals, characterized in that: include: The video image acquisition module is used to obtain the breathing state RGB image and depth image in real time, and align the RGB image with the depth image; A respiratory motion magnification module is used to magnify the RGB image using the Euler video magnification algorithm and convert the magnified image into a grayscale image; A breathing signal extraction module, used to extract a breathing signal and a distance signal through a depth image and a grayscale image; The gated signal output module is used to process the respiratory signal, obtain the respiratory gating signal and output it.

5. The device for non-contact acquisition of respiratory gating signals according to claim 4, characterized in that: The video image acquisition module is a depth camera installed next to the beam limiter of the DR device and simultaneously acquires RGB images and depth images in real time.

6. The device for non-contact acquisition of respiratory gating signals according to claim 4, characterized in that: The respiratory motion amplification module comprises: An image region segmentation module is used to set the size of a rectangular pixel block according to the distance from the camera to the patient, and to segment the depth image and the grayscale image into non-overlapping regions according to the set pixel block size; The local signal extraction module is used to calculate the average gray value M for each segmented area. g (n,t) and the average distance value M d (n,t); The signal update module is used to set the signal window time to K seconds and update the gray value signal S of each block in the window in real time according to the camera frame rate. g (n) and depth value signal S d (n): The breathing area recognition module is used to select the gray value signal S in the first K second window g The signal with the least noise in (n) is taken as the optimal signal, and the similarity between other gray value signals and the optimal signal is calculated, and the area where the similarity meets the threshold is recorded and saved as the breathing area; Signal superposition module, used to superimpose the gray value signal S of the breathing area g (n) Perform superposition processing to obtain the breathing signal RS, and the depth value signal S of the selected area d (n) Perform superposition processing to obtain the distance signal DS.

7. The device for non-contact acquisition of respiratory gating signals according to claim 4, characterized in that: The gate signal output module comprises: A respiratory signal preprocessing module, used for performing low-pass filtering on the respiratory signal RS; The respiratory signal envelope calculation module is used to calculate the peak and trough positions and amplitudes of the filtered respiratory signal RS, and obtain the peak and trough envelopes of the entire window using linear interpolation; The breathing state judgment module is used to calculate the average distance M of the distance signal DS corresponding to the peak and trough positions of the breathing signal RS. DSP and M DSV , when M DSP >M DSV When the peak of RS corresponds to the final state of exhalation, the trough corresponds to the final state of inspiration. At this time, the respiratory signal RS and the peak-trough envelope are flipped. Otherwise, if the respiratory state is the opposite, RS does not need to be flipped. The gated signal trigger curve RT is obtained according to the peak-trough envelope. The gated signal output module is used to detect the amplitude of the newly input respiratory signal RS i Meet RS i ≥RT i When the gate is triggered, the gate is closed otherwise.