A method and system for detecting the separation of gas supply pipeline
By using the Bayesian formula and filtering algorithm to detect the disconnection event of the air supply pipeline in the inhaled laughing gas analgesic equipment, the problem of air pollution and the impact of the treatment effect caused by the equipment not being shut down in time is solved, and higher detection is achieved. Accuracy and safety.
Patent Information
- Application Number
- CN202111242766.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-10-25
AI Technical Summary
Existing inhaled laughing gas analgesic equipment cannot intelligently monitor when the air supply pipeline is disconnected, resulting in the equipment not being shut down in time, causing indoor air pollution and affecting the treatment effect.
Multiple criteria are established by measuring respiratory data, the Bayesian formula is used to calculate the probability, and the second-order IIR algorithm is combined with the second-order IIR algorithm to filter the data. The voting principle is used for air supply pipeline isolation detection to improve detection accuracy.
It achieves accurate detection of air supply pipeline detachment events, reduces the impact of noise, and avoids interference with indoor air pollution and treatment effects.
Smart Images

Figure CN113963772B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical gas supply, and in particular to a gas supply pipeline extraction detection method and system. Background Art
[0002] At present, in the field of inhaled laughing gas analgesia equipment, after the nurse removes the patient's air supply line, it is necessary to manually shut down the equipment to stop the air supply of the equipment. Few devices can intelligently monitor that the air supply line has been separated from the patient. In the existing air supply technology, if the nurse does not shut down the equipment in time, the equipment will release a large amount of laughing gas into the air, causing indoor air pollution. If during the operation, due to accidental external force, the connection of the air supply line is disconnected, but the patient's nasal mask or face mask is still well fitted, the doctor or patient may not be able to find the air supply line disconnected in time, which will affect the patient's analgesic effect, so that the patient will eventually affect the treatment effect due to pain, and a large amount of analgesic gas will also be released, causing indoor air pollution. Summary of the invention
[0003] One of the inventive purposes of the present invention is to provide a method and system for detecting the removal of an air supply line. The method and system establish multiple criteria by measuring respiratory data, and calculate the probabilities of different criteria by using the Bayesian formula, so as to accurately detect whether the air supply line has been removed and reduce the impact of noise in the air supply line.
[0004] One of the inventive purposes of the present invention is to provide a method and system for detecting the removal of an air supply line. The method and system provide intelligent detection and air supply methods, and obtain final exhaled air supply removal detection data through voting of multiple criteria, so as to accurately determine whether there is an event in which a patient removes the air supply line.
[0005] One of the inventive purposes of the present invention is to provide a method and system for detecting the air supply pipeline. The method and system detect the air pressure of the air supply pipeline, cache the detection data, filter the cached data using a second-order IIR algorithm, and calculate a preset criterion probability based on the filtered data, thereby reducing detection noise and improving detection accuracy.
[0006] In order to achieve at least one of the above-mentioned invention objects, the present invention further provides a method for detecting the separation of a gas supply pipeline, the method comprising the following steps:
[0007] Detecting pressure data of the gas supply pipeline, and caching the pressure data at a fixed time length and acquisition frequency to generate detection sample data;
[0008] Filtering the detection sample data, establishing at least one judgment criterion, and calculating the probability of the judgment criterion;
[0009] After obtaining each test sample data, the probability of each judgment criterion is calculated, and then the probability of the gas supply pipeline disconnection event under each criterion is calculated according to the Bayesian formula;
[0010] The voting principle is adopted to judge that there is a gas supply pipeline disconnection event when the number of judgment criteria that meet the judgment criteria is higher than the voting threshold.
[0011] According to one of the preferred embodiments of the present invention, the judgment criteria include calculating the average value of the detection sample data, the mean square error of the detection sample data, the cumulative value above the average value, the cumulative value below the average value and the minimum value of the sample detection data.
[0012] According to another preferred embodiment of the present invention, the judgment criteria include a first judgment criterion, wherein the first judgment criterion includes: calculating the average value of the filtered detection sample data, and calculating the number of intersection points between the filtered data and the average value, the first judgment criterion sets a standard intersection point threshold, and calculates the probability that the number of intersection points of the current sample detection data is greater than the intersection point threshold.
[0013] According to another preferred embodiment of the present invention, the judgment criterion includes a second judgment criterion, wherein the second judgment criterion includes: calculating the mean square error of the detection sample data after filtering, the second judgment criterion sets a standard mean square error threshold, and calculates the probability that the current detection sample data is above the mean square error threshold.
[0014] According to another preferred embodiment of the present invention, the judgment criteria include a third judgment criterion, wherein the third judgment criterion includes: calculating the average value of the filtered detection sample data, the third judgment criterion sets a first cumulative value threshold, calculating the cumulative value of the detection sample data higher than the average value, and calculating the probability of the current detection sample data being higher than the first cumulative value threshold.
[0015] According to another preferred embodiment of the present invention, the judgment criteria include a fourth judgment criterion, wherein the fourth judgment criterion includes: calculating the average value of the filtered detection sample data, the fourth judgment criterion sets a second cumulative value threshold, calculating the cumulative value of the detection sample data lower than the average value, and calculating the probability of the current detection sample data being higher than the second cumulative value threshold.
[0016] According to another preferred embodiment of the present invention, the judgment criteria include a fifth judgment criterion, wherein the fifth judgment criterion includes: calculating the minimum value of the detection sample data, setting a minimum value threshold, and calculating the probability that the minimum value in the current detection sample data is higher than the minimum value threshold.
[0017] According to another preferred embodiment of the present invention, the method for calculating the judgment criterion probability includes: obtaining detection sample data, and calculating the number of samples of the detection sample data that meet the judgment criterion, wherein the criterion probability is the number of samples in the detection sample data that meet the criterion / the total number of samples.
[0018] According to another preferred embodiment of the present invention, the method for calculating the probability of the gas supply line disconnection event under each criterion using the Bayesian formula is:
[0019]
[0020] Wherein B1 represents the existence of a gas supply management withdrawal event, A1 represents a positive detection condition that meets a certain criterion, and P(B1) represents the behavior probability of the withdrawal event. P(A1|B1) represents the probability of a gas supply management disconnection event occurring under certain detection criteria.
[0021] In order to achieve at least one of the above-mentioned invention purposes, the present invention further provides a gas supply pipeline extraction system, wherein the extraction system executes the above-mentioned gas supply pipeline extraction detection method.
[0022] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to perform the above-mentioned gas supply pipeline extraction detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Shown is a schematic flow chart of a gas supply pipeline extraction detection method of the present invention. DETAILED DESCRIPTION
[0024] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0025] It is to be understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" should not be understood as a limitation on the quantity.
[0026] Please combine Figure 1The present invention provides a method and system for detecting the separation of an air supply pipeline, wherein the detection method comprises the following steps: first, an air pressure sensor needs to be installed on the air supply pipeline, and the air pressure sensor is preferably installed on the air outlet of the air supply pipeline. When the air supply pipeline operates normally, the air pressure sensor will experience fluctuations in air pressure detection data under the patient's breathing. When the air supply pipeline leaves the patient's mouth and nose, the air pressure fluctuation will disappear. Therefore, the present invention establishes a complete set of air supply pipeline separation detection methods based on the air pressure fluctuations generated by the patient's breathing, which can take into account both the saving of medical gas and the patient's usage experience.
[0027] Specifically, the present invention detects a certain length of time in the gas supply pipeline as cache data of air pressure, wherein the cache data of air pressure is used as detection sample data of air pressure. In the present invention, air pressure data of 10s can be collected at a frequency of 10Hz as detection sample data cache, that is, the system only caches 10 seconds of detection sample data, and caches the detection sample data in the form of a circular cache queue. The cached detection sample data is further read, and the cached detection sample data is filtered, wherein the present invention first uses a second-order IIR algorithm to filter the detection sample data, and the cutoff frequency of the filter is set to 2Hz. It should be noted that after completing the second-order IIR algorithm filtering, the detection sample data is further filtered using a sliding average filter, and the order of the sliding average filter is preferably 5th order. It should be noted that the above-mentioned filtering algorithms are all prior art, and the present invention will not repeat them, and those skilled in the art can use including but not limited to the above-mentioned filtering method to perform.
[0028] It is worth mentioning that the present invention adopts at least one judgment criterion voting principle to determine whether there is a gas supply pipeline disconnection operation, so it is necessary to predetermine the condition parameters of disconnection under different judgment criteria under laboratory conditions. The present invention sets 5 judgment criteria, including the first judgment criterion, the second judgment criterion, the third judgment criterion, the fourth judgment criterion and the fifth judgment criterion, which are as follows:
[0029] The first judgment criterion includes: calculating the air pressure average value avg of the cached detection sample data, calculating the number of intersection points between the waveform of the detection sample data of the air pressure after filtering and the average value avg, wherein the method for judging the intersection point is: obtaining the air pressure values of adjacent detection points in the detection sample data, if the air pressure values of adjacent detection points are respectively located on both sides of the average value (one is higher than the average value, and the other is lower than the average value), it is judged that there is an unknown crossover point, or the air pressure value of one / two detection points is the average value avg. When the air supply pipeline is in a normal state and has not been removed, the intersection points of the detection sample data and the air pressure average value avg will gradually decrease due to the normal breathing of the patient. When the air supply pipeline is removed, the detection sample data in the cached data will be stored. In the presence of a large amount of non-respiratory air pressure noise data, the number of intersection points between the detection sample data and the air pressure average value avg increases significantly. The present invention obtains through experiments a crossing point threshold THa1=25 that can be used to determine the presence of an air supply pipeline withdrawal operation, and further calculates the probability P(A2) that the detection sample data is greater than the crossing point threshold THa1, A2 indicates that the number of intersection points between the detection sample data and the average value avg after filtering is greater than THa1, wherein P(A2) is calculated as follows: calculate the number of detection samples greater than the crossing point threshold THa1, calculate the number of all current detection samples, P(A2)=the number of detection samples greater than the crossing point threshold THa1 / the number of all current detection samples, it should be noted that the detection sample data will cache data every 10s.
[0030] The second judgment criterion includes: calculating the mean square error std of the detection sample data cached after filtering, wherein when the air supply line is not removed, the mean square error std of the detection sample data will gradually increase due to the patient's regular breathing, and when the air supply line is removed from the patient, the mean square error std of the detection sample will decrease. In the present invention, the mean square error threshold THa2 that meets the condition of removing the air supply line is obtained through experiments, and the probability P(A3) that the current detection sample data is greater than the mean square error threshold THa2 is further calculated, wherein P(A3) = the number of detection samples greater than the mean square error threshold THa2 / the number of all detection samples. In this embodiment, the mean square error threshold THa2 is preferably set to 0.02.
[0031] The third judgment criterion includes: calculating the average value avg of the filtered detection sample data, and calculating the sum sum_n of the detection sample data below the average value avg in the filtered detection sample data. It should be noted that when the air supply pipeline is not removed, the patient's regular breathing may cause the value of the sum sum_n of the detection sample data below the average value avg in the detection sample data to increase. If the air supply pipeline is removed, the value of the sum sum_n of the detection sample data below the average value avg in the detection sample data will decrease. The first cumulative value threshold THa3 for judging the presence of the event of gas supply management removal is determined by experiment. After multiple consecutive detections, the probability P(A4) that the sum sum_n of the detection sample data below the average value avg in the detection sample data is greater than the first cumulative value threshold THa3 is calculated, wherein P(A4) = the number of samples in which the sum sum_n of the detection sample data below the average value avg in the detection sample data is greater than the first cumulative value threshold THa3 / the total number of detection samples.
[0032] The fourth judgment criterion includes: calculating the average value avg of the filtered detection sample data, and calculating the sum sum_p of the detection sample data higher than the average value avg in the filtered detection sample data. It should be noted that when the air supply pipeline is not removed, the patient's regular breathing may cause the value of the sum sum_p of the detection sample data higher than the average value avg in the detection sample data to increase. If the air supply pipeline is removed, the value of the sum sum_p of the detection sample data higher than the average value avg in the detection sample data will decrease. The second cumulative value threshold THa4 for judging the presence of the event of gas supply management being removed is determined by experiments. After multiple consecutive detections, the probability P(A5) that the sum sum_p of the detection sample data higher than the average value avg in the detection sample data is greater than the second cumulative value threshold THa4 is calculated, wherein P(A5) = the number of samples in which the sum sum_p of the detection sample data higher than the average value avg is greater than the second cumulative value threshold THa4 / the total number of detection samples.
[0033] The fifth judgment criterion includes: calculating the minimum value min of the detection sample data after filtering, when the gas supply pipeline is not removed, the minimum value min of the detection sample data will be smaller, and when the gas supply pipeline is removed, the minimum value min of the detection sample data will become larger. The detection sample minimum value threshold THa5 that can be used to determine the presence of a gas supply pipeline removal event is obtained by experimental means, and the probability P(A6) that the minimum value min is greater than the minimum value threshold THa5 is calculated after multiple consecutive detections, where P(A6) = the number of detection samples whose minimum value in the detection sample data is greater than the minimum value threshold THa5 / the total number of detection samples.
[0034] After receiving each test sample, the Bayesian formula is used to calculate the probability of the gas supply pipeline being removed for different judgment criteria. For example: B1 is defined as the event of the patient removing the gas supply pipeline, and A1 is defined as the event that satisfies any of the above criteria for positive detection. It can be obtained that P(A1|B1)=P(A1), P(A1|B1)=1-P(A1). In the initial state, it can be assumed that P(B1)=0.01, then P(B1)=1-P(B1)=0.99.
[0035] When new test sample data is received, when the test sample data meets the positive test condition of any one of the five judgment criteria, wherein the positive test condition indicates that the requirements of the criteria are fully met, and it is judged that there is a condition for the gas supply pipeline to be removed, P(B1) is recalculated according to the Bayesian formula:
[0036]
[0037] If new test sample data is received, when the test sample data meets the negative test condition of any one of the above five criteria, wherein the negative test condition means that the positive criteria are not met, and it is judged that there is no condition for removing the gas supply pipeline. Recalculate P(B1) according to the Bayesian formula:
[0038]
[0039] In order to make the judgment more accurate, the present invention sets a first lower threshold value THPB1n. When the calculated P(B1) is less than the first lower threshold value THPB1n, P(B1)=THPB1n.
[0040] The voting principle is further adopted to vote on the judgment results of each judgment criterion, and a voting threshold THvote is set. If the judgment criterion meets the positive detection condition and the number of votes is greater than the voting threshold THvote, it is considered that there is an event of gas supply pipeline removal. Since the present invention combines the Bayesian formula and the voting principle, it can effectively avoid the influence of noise generated by temporary movement of the gas supply pipeline during the gas supply process on the detection result, thereby greatly improving the accuracy of detection.
[0041] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wire segments, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, electrical wire, optical cable, RF, etc., or any suitable combination of the foregoing.
[0042] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0043] Those skilled in the art should understand that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The objectives of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments. Without departing from the principles, the implementation methods of the present invention may be deformed or modified in any way.
Claims
1. A method for detecting the separation of a gas supply pipeline, characterized in that: The method comprises the following steps: Detecting pressure data of the gas supply pipeline, and caching the pressure data at a fixed time length and acquisition frequency to generate detection sample data; Filtering the detection sample data, establishing at least one judgment criterion, and calculating the probability of the judgment criterion; After obtaining each test sample data, the probability of each judgment criterion is calculated, and then the probability of the gas supply pipeline disconnection event under each criterion is calculated according to the Bayesian formula; The voting principle is adopted to judge that there is a gas supply pipeline disconnection event when the number of judgment criteria that meet the judgment criteria is higher than the voting threshold.
2. A method for detecting the separation of a gas supply pipeline according to claim 1, characterized in that: The method for calculating the criterion probability includes: acquiring detection sample data, and calculating the number of samples of the detection sample data that meet the judgment criterion, wherein the judgment criterion probability is the number of samples in the detection sample data that meet the criterion / the total number of samples.
3. A method for detecting the separation of a gas supply pipeline according to claim 2, characterized in that: The judgment criteria include a first judgment criterion, wherein the first judgment criterion includes: calculating the average value of the filtered detection sample data, and calculating the number of intersection points between the filtered data and the average value, the first judgment criterion sets a standard intersection point threshold, and calculates the probability that the number of intersection points of the current sample detection data is greater than the intersection point threshold.
4. A method for detecting the separation of a gas supply pipeline according to claim 2, characterized in that: The judgment criterion includes a second judgment criterion, wherein the second judgment criterion includes: calculating the mean square error of the detection sample data after filtering, the second judgment criterion sets a standard mean square error threshold, and calculates the probability that the current detection sample data is above the mean square error threshold.
5. A method for detecting the separation of a gas supply pipeline according to claim 2, characterized in that: The judgment criteria include a third judgment criterion, wherein the third judgment criterion includes: calculating the average value of the filtered detection sample data, the third judgment criterion sets a first cumulative value threshold, calculating the cumulative value of the detection sample data higher than the average value, and calculating the probability of the current detection sample data being higher than the first cumulative value threshold.
6. A method for detecting the separation of a gas supply pipeline according to claim 2, characterized in that: The judgment criteria include a fourth judgment criterion, wherein the fourth judgment criterion includes: calculating the average value of the filtered detection sample data, the fourth judgment criterion sets a second cumulative value threshold, calculating the cumulative value of the detection sample data lower than the average value, and calculating the probability of the current detection sample data being higher than the second cumulative value threshold.
7. A method for detecting the separation of a gas supply pipeline according to claim 2, characterized in that: The judgment criteria include a fifth judgment criteria, wherein the fifth judgment criteria include: calculating a minimum value of the detection sample data, setting a minimum value threshold, and calculating a probability that the minimum value in the current detection sample data is higher than the minimum value threshold.
8. A method for detecting the separation of a gas supply pipeline according to claim 1, characterized in that: The Bayesian formula is used to calculate the probability of the gas supply line disconnection event under each judgment criterion: Wherein B1 represents the presence of a gas supply line disconnection event, A1 represents the detection condition that meets a certain judgment criterion, and P(B1) represents the behavior probability of the disconnection event. P(A1|B1) represents the probability of a gas supply line disconnection event occurring under the condition that a certain judgment criterion is met.
9. A gas supply pipeline extraction system, characterized in that: The extraction system implements an extraction detection method for a gas supply pipeline as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement a gas supply pipeline extraction detection method as described in any one of claims 1 to 8.
