Method, device and equipment for detecting carbon dioxide concentration and storage medium
Patent Information
- Application Number
- CN202311237285.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-09-21
AI Technical Summary
[0004]本申请的主要目的在于提供一种二氧化碳浓度的检测方法、装置、设备及存储介质,可以解决现有技术中主流式气体检测模块更换适配器所带来的CO2浓度测量误差的技术问题
[0034] This application uses a standard adapter of the same type to fit the measured carbon dioxide concentrations of different concentrations, obtaining carbon dioxide concentration curves and a calibration concentration coefficient matrix. The standard adapter and other adapters are then used to detect carbon dioxide concentrations of the same set concentration, yielding a first carbon dioxide concentration and a second carbon dioxide concentration. The calibration concentration coefficient matrix is then corrected to ensure that the first and second carbon dioxide concentrations meet preset conditions. Based on the corrected calibration concentration coefficient matrix, the carbon dioxide concentration corresponding to the target adapter is calculated. This application obtains the optimal calibration concentration coefficient through correction and compensation, ensuring the stability and accuracy of the measured CO2 concentration in exhaled gas, reducing carbon dioxide concentration detection errors, and improving the anti-interference capability of mainstream gas detection modules in practical applications.
Smart Images

Figure CN117373551B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of bioengineering and medical technology, and in particular to a method, apparatus, device and storage medium for detecting carbon dioxide concentration. Background Technology
[0002] Detecting CO2 concentration during a patient's respiration is crucial for disease diagnosis and clinical treatment. CO2 detection can be divided into two different methods: mainstream and sidestream. Sidestream detection has the advantages of dehumidifying exhaled gas and maintaining a constant gas flow rate. However, it suffers from significant delays and distortion, limiting its use in real-time testing conditions. In contrast, while mainstream detection has lower interference resistance, it offers better real-time performance. This allows for the calculation of more respiratory CO2-derived parameters, providing more information about the patient's breathing and assisting doctors in making better judgments and treatments. However, as mentioned above, mainstream detection has weaker interference resistance, primarily due to the need for adapters of different specifications to operate with it.
[0003] Because adults and newborns differ in respiratory flow rate, pressure, and volume, mainstream modules require either an adult or newborn adapter to complete the test. However, due to the significant differences in specifications between adult and newborn adapters, the measurement results may vary considerably when connecting different types of adapters, leading to substantial discrepancies in CO2 concentration measurements. Furthermore, even when using only an adult or newborn adapter, the manufacturing processes of different adapters cannot be guaranteed to be completely identical, resulting in inconsistencies in the detected data due to subtle differences. Therefore, each adapter change in a mainstream detection module may introduce a certain degree of error in the CO2 measurement results of exhaled gas. Summary of the Invention
[0004] The main objective of this application is to provide a method, apparatus, device, and storage medium for detecting carbon dioxide concentration, which can solve the technical problem of CO2 concentration measurement error caused by the replacement of adapters in mainstream gas detection modules in the prior art.
[0005] To achieve the above objectives, the first aspect of this application provides a method for detecting carbon dioxide concentration, the method comprising:
[0006] The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0007] The calibration concentration coefficient matrix is obtained based on the calibration concentration coefficients in the carbon dioxide fitting curve;
[0008] When a mainstream carbon dioxide detection module is connected to a standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix.
[0009] When a mainstream carbon dioxide detection module is connected to any other adapter of the same type, a second AD value is obtained by introducing carbon dioxide gas of a set concentration. Based on the second AD value and the calibration concentration coefficient matrix, a mathematical formula for the second carbon dioxide concentration is obtained.
[0010] Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0011] The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
[0012] To achieve the above objectives, a second aspect of this application provides a carbon dioxide concentration detection device, the device comprising:
[0013] The fitting module is used to obtain carbon dioxide fitting curves when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curve is used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0014] The first matrix construction module is used to obtain the calibration concentration coefficient matrix based on the calibration concentration coefficients in the carbon dioxide fitting curve.
[0015] The first detection module is used to obtain the first AD value when a set concentration of carbon dioxide gas is introduced under the condition that the mainstream carbon dioxide detection module is connected to the standard adapter, and to obtain the mathematical formula of the first carbon dioxide concentration based on the first AD value and the calibration concentration coefficient matrix.
[0016] The second detection module is used to obtain the second AD value when the mainstream carbon dioxide detection module is connected to any other adapter of the same type and a set concentration of carbon dioxide gas is introduced, and to obtain the mathematical formula of the second carbon dioxide concentration based on the second AD value and the calibration concentration coefficient matrix.
[0017] The correction module is used to correct the calibration concentration coefficient matrix according to the mathematical formula of the first carbon dioxide concentration and the mathematical formula of the second carbon dioxide concentration, so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset conditions, and obtain the corrected calibration concentration coefficient matrix.
[0018] The concentration calculation module is used to calculate the carbon dioxide concentration when the mainstream carbon dioxide detection module is connected to any target adapter of the same type, using the corrected calibration concentration coefficient matrix.
[0019] To achieve the above objectives, a third aspect of this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0020] The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0021] The calibration concentration coefficient matrix is obtained based on the calibration concentration coefficients in the carbon dioxide fitting curve;
[0022] When a mainstream carbon dioxide detection module is connected to a standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix.
[0023] When a mainstream carbon dioxide detection module is connected to any other adapter of the same type, a second AD value is obtained by introducing carbon dioxide gas of a set concentration. Based on the second AD value and the calibration concentration coefficient matrix, a mathematical formula for the second carbon dioxide concentration is obtained.
[0024] Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0025] The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
[0026] To achieve the above objectives, a fourth aspect of this application provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0027] The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0028] The calibration concentration coefficient matrix is obtained based on the calibration concentration coefficients in the carbon dioxide fitting curve;
[0029] When a mainstream carbon dioxide detection module is connected to a standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix.
[0030] When a mainstream carbon dioxide detection module is connected to any other adapter of the same type, a second AD value is obtained by introducing carbon dioxide gas of a set concentration. Based on the second AD value and the calibration concentration coefficient matrix, a mathematical formula for the second carbon dioxide concentration is obtained.
[0031] Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0032] The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
[0033] The embodiments of this application have the following beneficial effects:
[0034] This application uses a standard adapter of the same type to fit the measured carbon dioxide concentrations of different concentrations, obtaining carbon dioxide concentration curves and a calibration concentration coefficient matrix. The standard adapter and other adapters are then used to detect carbon dioxide concentrations of the same set concentration, yielding a first carbon dioxide concentration and a second carbon dioxide concentration. The calibration concentration coefficient matrix is then corrected to ensure that the first and second carbon dioxide concentrations meet preset conditions. Based on the corrected calibration concentration coefficient matrix, the carbon dioxide concentration corresponding to the target adapter is calculated. This application obtains the optimal calibration concentration coefficient through correction and compensation, ensuring the stability and accuracy of the measured CO2 concentration in exhaled gas, reducing carbon dioxide concentration detection errors, and improving the anti-interference capability of mainstream gas detection modules in practical applications. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] in:
[0037] Figure 1 This is a flowchart of the carbon dioxide concentration detection method in the embodiments of this application;
[0038] Figure 2 This is a structural block diagram of the carbon dioxide concentration detection device in the embodiments of this application;
[0039] Figure 3 This is a structural block diagram of the computer device in the embodiments of this application. Detailed Implementation
[0040] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0041] like Figure 1 As shown, in one embodiment, a method for detecting carbon dioxide concentration is provided. This method can be applied to both terminals and servers. The method for detecting carbon dioxide concentration specifically includes the following steps:
[0042] S100: Obtain carbon dioxide fitting curves when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient, and AD value.
[0043] Specifically, a mainstream carbon dioxide detection module connected to a standard adapter forms a mainstream respiratory carbon dioxide concentration monitoring device or system.
[0044] Mainstream respiratory carbon dioxide concentration monitoring devices or systems are primarily used for monitoring end-tidal carbon dioxide concentration values. Because mainstream respiratory carbon dioxide concentration monitoring places the sensor directly on the adapter between the endotracheal tube (ETT) and the ventilation duct, it eliminates the need to extract any breathing gas, thus enabling real-time recording and integration of respiratory carbon dioxide concentration waveforms, offering advantages such as fast response.
[0045] Different concentrations of carbon dioxide gas are introduced into the mainstream respiration carbon dioxide concentration monitoring device or system. The device will measure the carbon dioxide concentration value corresponding to each test and record the AD value, where the AD value is the measured voltage peak value.
[0046] Curve fitting was performed on all the carbon dioxide concentration measurements and AD values obtained from the experiments to obtain a carbon dioxide fitting curve. This curve characterizes the functional relationship between the measured carbon dioxide concentration and the AD value; more specifically, it characterizes the functional relationship between carbon dioxide concentration, the calibration concentration coefficient, and the AD value. The calibration concentration coefficient is a constant obtained during the curve fitting process. Carbon dioxide concentration can be expressed using both the calibration concentration coefficient and the AD value.
[0047] S200: Obtain the calibration concentration coefficient matrix based on the calibration concentration coefficients in the carbon dioxide fitting curve.
[0048] Specifically, the carbon dioxide concentration curve is generally a non-linear curve. Therefore, the calibration concentration coefficient includes at least two, and all the calibration concentration coefficients form a calibration concentration coefficient matrix.
[0049] S300: Obtain the first AD value obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and a set concentration of carbon dioxide gas is introduced, and obtain the mathematical formula for the first carbon dioxide concentration based on the first AD value and the calibration concentration coefficient matrix.
[0050] Specifically, the first carbon dioxide concentration is calculated based on the corresponding first AD value and the calibration concentration coefficient matrix.
[0051] S400: Obtain the second AD value obtained when a mainstream carbon dioxide detection module is connected to any other adapter of the same type and a set concentration of carbon dioxide gas is introduced, and obtain the mathematical formula for the second carbon dioxide concentration based on the second AD value and the calibration concentration coefficient matrix.
[0052] Specifically, other adapters of the same type refer to other adapters of the same type as the standard adapter.
[0053] The mainstream carbon dioxide detection module connects to the standard adapter and other adapters respectively, and calculates the carbon dioxide concentration of carbon dioxide gas with the same set concentration when introduced.
[0054] The second carbon dioxide concentration is calculated based on the corresponding second AD value and the calibration concentration coefficient matrix.
[0055] S500: Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0056] Specifically, theoretically, the carbon dioxide concentrations obtained from the two methods should be the same, but in reality, there is an error in the carbon dioxide concentrations obtained from the two methods. Therefore, it is necessary to correct the calibration coefficient matrix to eliminate the concentration error between the two methods.
[0057] The concentration error between the two may be completely eliminated or it may not be completely eliminated. Therefore, meeting the preset condition means that the absolute value of the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration does not exceed the concentration difference threshold, or the concentration difference between the two is 0.
[0058] Preferably, the calibration concentration coefficient matrix is modified so that the second carbon dioxide concentration is equal to the first carbon dioxide concentration, resulting in a modified calibration concentration coefficient matrix, i.e., the concentration difference is 0.
[0059] During the correction process, the calibration concentration coefficient in either the mathematical formula for the first carbon dioxide concentration or the mathematical formula for the second carbon dioxide concentration remains unchanged, while the calibration concentration coefficient in the other mathematical formula is corrected to make the two mathematical formulas equal.
[0060] S600: Calculates the carbon dioxide concentration when the mainstream carbon dioxide detection module is connected to any target adapter of the same type using the corrected calibration concentration coefficient matrix.
[0061] Specifically, the target adapter type is the same as the standard adapter type. The AD value is obtained when the mainstream carbon dioxide detection module is connected to any target adapter of the same type. Using the AD value and the corrected calibration concentration coefficient matrix, the target carbon dioxide concentration corresponding to the target adapter can be calculated.
[0062] This embodiment uses a standard adapter of the same type to fit the measured carbon dioxide concentrations of different concentrations, obtaining carbon dioxide concentration curves and a calibration concentration coefficient matrix. The standard adapter and other adapters are then used to detect carbon dioxide concentrations of the same set concentration, yielding a first carbon dioxide concentration and a second carbon dioxide concentration. The calibration concentration coefficient matrix is then corrected to ensure that the first and second carbon dioxide concentrations meet preset conditions. The carbon dioxide concentration corresponding to the target adapter is calculated based on the corrected calibration concentration coefficient matrix. This embodiment obtains the optimal calibration concentration coefficient through correction and compensation, ensuring the stability and accuracy of the measured CO2 concentration in exhaled gas, reducing carbon dioxide concentration detection errors, and improving the anti-interference capability of mainstream gas detection modules in practical applications.
[0063] In one embodiment, the adapter type includes adult adapters and child adapters;
[0064] If the standard adapter is an adult standard adapter, then the calibration concentration coefficient matrix is the adult calibration concentration coefficient matrix;
[0065] If the standard adapter is a pediatric standard adapter, then the calibration concentration coefficient matrix is the pediatric calibration concentration coefficient matrix.
[0066] Specifically, different standard adapter types result in different calibration concentration coefficient matrices. The calibration concentration coefficients for each adapter are only used for calculating the carbon dioxide concentration for the corresponding adapter type.
[0067] If the standard adapter is an adult standard adapter, the adult calibration concentration coefficient matrix is obtained through the following steps:
[0068] The adult carbon dioxide fitting curves were obtained when the mainstream carbon dioxide detection module was connected to the adult standard adapter and different concentrations of carbon dioxide gas were introduced. The adult carbon dioxide fitting curves are used to characterize the functional relationship between the carbon dioxide concentration corresponding to the adult adapter and the calibration concentration coefficient and AD value.
[0069] Based on the adult carbon dioxide fitting curve, the adult calibration concentration coefficient matrix is obtained, which includes the adult calibration concentration coefficients of the adult carbon dioxide fitting curve.
[0070] The carbon dioxide concentration obtained when a mainstream carbon dioxide detection module is connected to an adult standard adapter and a first set concentration of carbon dioxide gas is introduced is used as the first carbon dioxide concentration, and the corresponding AD value is obtained.
[0071] When the mainstream carbon dioxide detection module is connected to other adult adapters, the carbon dioxide concentration obtained by introducing a first set concentration of carbon dioxide gas is used as the second carbon dioxide concentration, and the corresponding AD value is obtained.
[0072] The mathematical formulas for the first carbon dioxide concentration and the second carbon dioxide concentration with respect to the adult calibration concentration coefficient matrix and AD value are obtained respectively. The adult calibration concentration coefficient matrix is corrected so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset conditions, and the corrected adult calibration concentration coefficient matrix is obtained.
[0073] The carbon dioxide concentration is calculated when the mainstream carbon dioxide detection module is connected to the target adult adapter using the modified adult calibration concentration coefficient matrix.
[0074] If the standard adapter is a pediatric standard adapter, the pediatric calibration concentration coefficient matrix is obtained through the following steps:
[0075] The carbon dioxide fitting curves for children were obtained when a mainstream carbon dioxide detection module was connected to a standard pediatric adapter and different concentrations of carbon dioxide gas were introduced. The pediatric carbon dioxide fitting curves were used to characterize the functional relationship between the carbon dioxide concentration corresponding to the pediatric adapter and the calibration concentration coefficient and AD value.
[0076] Based on the pediatric carbon dioxide fitting curve, the pediatric calibration concentration coefficient matrix is obtained, wherein the pediatric calibration concentration coefficient matrix includes the pediatric calibration concentration coefficients of the pediatric carbon dioxide fitting curve.
[0077] The carbon dioxide concentration obtained when a mainstream carbon dioxide detection module is connected to a pediatric standard adapter and a second set concentration of carbon dioxide gas is introduced is used as the first carbon dioxide concentration, and the corresponding AD value is obtained.
[0078] The carbon dioxide concentration obtained when the mainstream carbon dioxide detection module is connected to other children's adapters and a second set concentration of carbon dioxide gas is introduced is used as the second carbon dioxide concentration, and the corresponding AD value is obtained.
[0079] The mathematical expressions for the first carbon dioxide concentration and the second carbon dioxide concentration with respect to the pediatric calibration concentration coefficient matrix and AD value are obtained respectively. The pediatric calibration concentration coefficient matrix is corrected so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset conditions, and the corrected pediatric calibration concentration coefficient matrix is obtained.
[0080] The carbon dioxide concentration was calculated using the modified pediatric calibration concentration coefficient matrix when the mainstream carbon dioxide detection module was connected to the target pediatric adapter.
[0081] The first set concentration is based on adult standards, and the second set concentration is based on pediatric standards. The first set concentration and the second set concentration are not equal.
[0082] This embodiment is used to determine the carbon dioxide concentration in exhaled gases of living organisms. It measures carbon dioxide concentrations at different levels using an adult standard adapter or a pediatric standard adapter, and then fits the results to obtain a carbon dioxide concentration curve and a calibration concentration coefficient matrix. The standard adapter and other adapters are used to detect carbon dioxide concentrations of gases with the same set concentration, obtaining a first carbon dioxide concentration and a second carbon dioxide concentration. The calibration concentration coefficient matrix is then corrected to ensure that the first and second carbon dioxide concentrations meet preset conditions. The carbon dioxide concentration corresponding to the target adapter is calculated based on the corrected calibration concentration coefficient matrix. This embodiment obtains optimal adult and pediatric calibration concentration coefficients through correction and compensation, ensuring the stability and accuracy of the measured CO2 concentration in adult or pediatric exhaled gases, reducing carbon dioxide concentration detection errors, and improving the anti-interference capability of mainstream gas detection modules in practical applications.
[0083] In one embodiment, the mathematical expression for the first carbon dioxide concentration or the second carbon dioxide concentration with respect to the calibration concentration coefficient matrix and the AD value is constructed using the following formula (1) or formula (2):
[0084]
[0085]
[0086] Where AD is the first AD value corresponding to the first carbon dioxide concentration or the second AD value corresponding to the second carbon dioxide concentration, AD is the measured voltage peak value, x(1), x(2), x(3)...x(n) are the calibration concentration coefficients in the calibration concentration coefficient matrix, n is the number of calibration concentration coefficients, and cCO2 i The first or second carbon dioxide concentration was measured.
[0087] Specifically, the relationship between carbon dioxide concentration and AD value is non-linear. n is a positive integer greater than or equal to 3.
[0088] In one embodiment, ensuring that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets a preset condition includes:
[0089] The concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration shall not exceed the concentration difference threshold.
[0090] or,
[0091] Make the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration zero.
[0092] Specifically, the concentration difference threshold is a relatively small value, which can be set according to the actual situation. This application does not impose any restrictions on it.
[0093] During the correction process, preferably, the calibration concentration coefficient in the mathematical formula for the first carbon dioxide concentration is kept unchanged, while the calibration concentration coefficient in the mathematical formula for the second carbon dioxide concentration is adjusted so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset condition. Specifically, as shown in the following formula (5) or formula (6):
[0094]
[0095]
[0096] Where cCO21 is the first carbon dioxide concentration, cCO22 is the second carbon dioxide concentration, c0 is the concentration difference, and c max is the concentration difference threshold, AD2 is the second AD value corresponding to the second carbon dioxide concentration, x(1)*s(1), x(2)*s(2), x(3)*s(3)...x(n)*s(n) are the calibration concentration coefficients in the corrected calibration concentration coefficient matrix, and n is the total number of calibration concentration coefficients. s(1), s(2), s(3)...s(n) are correction coefficients.
[0097] Preferably, c0 = 0, then according to formula (5), we can obtain:
[0098]
[0099] Right now,
[0100] x(1)*AD1 n-1 +x(2)*AD1 n-2 +…x(n)*AD1 0
[0101] =x(1)*s(1)*AD2 n-1 +x(2)*s(2)*AD2 n-2 +…x(n)*s(n)*AD2 0
[0102] From this, the correction coefficients s(1), s(2), s(3)...s(n) can be obtained. Among them, AD1 is the first AD value corresponding to the first carbon dioxide concentration.
[0103] or,
[0104] During the correction process, the calibration concentration coefficient in the mathematical formula for the second carbon dioxide concentration can be kept unchanged, while the calibration concentration coefficient in the mathematical formula for the first carbon dioxide concentration can be adjusted so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset conditions.
[0105] The above functions can be integrated into the calculation of the module zeroing function unit. After changing the adapter, the zeroing calculation can be performed to complete the correction of the carbon dioxide concentration corresponding to different adapters.
[0106] In one embodiment, the carbon dioxide fitting curve is obtained by using a cubic equation to fit the carbon dioxide concentration to the AD value.
[0107] The calibration concentration coefficient matrix includes four calibration concentration coefficients.
[0108] Specifically, both the adult calibration concentration coefficient matrix and the pediatric calibration concentration coefficient matrix include four calibration concentration coefficients.
[0109] The calibration concentration coefficient matrix is a 1×4 matrix or a 4×1 matrix.
[0110] If the calibration concentration coefficient matrix is a 1×4 matrix, the mathematical expressions for carbon dioxide concentration, AD value, and calibration concentration coefficient matrix are as follows:
[0111]
[0112] The calibration concentration coefficient matrix before correction is: [x(1) x(2) x(3) x(4)]
[0113] The corrected calibration concentration coefficient matrix is as follows:
[0114] [x'(1) x'(2) x'(3) x'(4)]
[0115] =[x(1)*s(1) x(2)*s(2) x(3)*s(3) x(4)*s(4)]
[0116] If the calibration concentration coefficient matrix is a 4×1 matrix, then the mathematical expressions for carbon dioxide concentration, AD value, and calibration concentration coefficient matrix are as follows:
[0117]
[0118] The calibration concentration coefficient matrix before correction was:
[0119] The corrected calibration concentration coefficient matrix is as follows:
[0120] In one embodiment, the carbon dioxide gas at a set concentration is air.
[0121] Specifically, a mainstream carbon dioxide detection module can be connected to a standard adapter or other adapter and placed in an air environment to measure the carbon dioxide concentration in the air without introducing any gas. The CO2 concentration in the air is approximately 0.03%-0.04%, so the monitored CO2 concentration will definitely not be zero. This method allows for the rapid determination of both the first and second carbon dioxide concentrations, and air is readily available with minimal error.
[0122] Of course, the concentration of carbon dioxide in the air can also be measured under standard atmospheric pressure. This application does not limit the concentration of carbon dioxide gas to be set.
[0123] In one embodiment, the carbon dioxide concentration is calculated using either formula (3) or formula (4) when the mainstream carbon dioxide detection module is connected to any target adapter of the same type:
[0124]
[0125]
[0126]
[0127] Among them, AD 目标 The AD value is obtained when the mainstream carbon dioxide detection module is connected to the target adapter. 目标 The measured peak voltage is represented by x'(1), x'(2), x'(3)...x'(n), which are the calibration concentration coefficients in the corrected calibration concentration coefficient matrix, and n is the number of calibration concentration coefficients. cCO2 目标 The carbon dioxide concentration is obtained when the mainstream carbon dioxide detection module is connected to the target adapter.
[0128] The calibration concentration coefficient matrices for different types of adapters (e.g., adult adapters, pediatric adapters) in this application are theoretically different. This application eliminates the need for separate modeling and calculation of the calibration concentration coefficient for each replacement adapter, which would otherwise be too labor-intensive. Automated calibration for each type of adapter can be achieved by working backwards from the above process.
[0129] This application can solve the technical problem of CO2 concentration measurement error caused by replacing the adapter of mainstream gas monitoring modules, and improve the anti-interference capability of mainstream gas monitoring modules in practical applications.
[0130] refer to Figure 2 This application also provides a device for detecting carbon dioxide concentration, the device comprising:
[0131] The fitting module 100 is used to obtain carbon dioxide fitting curves when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0132] The first matrix construction module 200 is used to obtain the calibration concentration coefficient matrix based on the calibration concentration coefficients in the carbon dioxide fitting curve.
[0133] The first detection module 300 is used to obtain the first AD value obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and a set concentration of carbon dioxide gas is introduced, and to obtain a mathematical formula for the first carbon dioxide concentration based on the first AD value and the calibration concentration coefficient matrix.
[0134] The second detection module 400 is used to obtain the second AD value obtained when the mainstream carbon dioxide detection module is connected to any other adapter of the same type and a set concentration of carbon dioxide gas is introduced, and to obtain the mathematical formula of the second carbon dioxide concentration based on the second AD value and the calibration concentration coefficient matrix.
[0135] The correction module 500 is used to correct the calibration concentration coefficient matrix according to the mathematical formula of the first carbon dioxide concentration and the mathematical formula of the second carbon dioxide concentration, so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset conditions, and obtain the corrected calibration concentration coefficient matrix.
[0136] The concentration calculation module 600 is used to calculate the carbon dioxide concentration when the mainstream carbon dioxide detection module is connected to any target adapter of the same type using the corrected calibration concentration coefficient matrix.
[0137] In one embodiment, the adapter type includes adult adapters and child adapters;
[0138] If the standard adapter is an adult standard adapter, then the calibration concentration coefficient matrix is the adult calibration concentration coefficient matrix;
[0139] If the standard adapter is a pediatric standard adapter, then the calibration concentration coefficient matrix is the pediatric calibration concentration coefficient matrix.
[0140] In one embodiment, the mathematical expression for the first carbon dioxide concentration or the second carbon dioxide concentration with respect to the calibration concentration coefficient matrix and the AD value is constructed using the following formula (1) or formula (2):
[0141]
[0142]
[0143] Where AD is the first AD value corresponding to the first carbon dioxide concentration or the second AD value corresponding to the second carbon dioxide concentration, AD is the measured voltage peak value, x(1), x(2), x(3)...x(n) are the calibration concentration coefficients in the calibration concentration coefficient matrix, n is the number of calibration concentration coefficients, and cCO2 i The first or second carbon dioxide concentration was measured.
[0144] In one embodiment, the correction module 500 is specifically used for:
[0145] The concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration shall not exceed the concentration difference threshold.
[0146] or,
[0147] Make the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration zero.
[0148] In one embodiment, the carbon dioxide fitting curve is obtained by using a cubic equation to fit the carbon dioxide concentration to the AD value.
[0149] The calibration concentration coefficient matrix includes four calibration concentration coefficients.
[0150] In one embodiment, the carbon dioxide gas at a set concentration is air.
[0151] In one embodiment, the carbon dioxide concentration is calculated using either formula (3) or formula (4) when the mainstream carbon dioxide detection module is connected to any target adapter of the same type:
[0152]
[0153]
[0154] Among them, AD 目标 The AD value is obtained when the mainstream carbon dioxide detection module is connected to the target adapter. 目标 The measured peak voltage is represented by x'(1), x'(2), x'(3)...x'(n), which are the calibration concentration coefficients in the corrected calibration concentration coefficient matrix, and n is the number of calibration concentration coefficients. cCO2 目标 The carbon dioxide concentration is obtained when the mainstream carbon dioxide detection module is connected to the target adapter.
[0155] Figure 3 An internal structural diagram of a computer device in one embodiment is shown. This computer device can specifically be a terminal or a server. Figure 3As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program causes the processor to perform the steps in the above-described method embodiments. The internal memory may also store a computer program, which, when executed by the processor, causes the processor to perform the steps in the above-described method embodiments. Those skilled in the art will understand that... Figure 3 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.
[0156] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps:
[0157] The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0158] The calibration concentration coefficient matrix is obtained based on the calibration concentration coefficients in the carbon dioxide fitting curve;
[0159] When a mainstream carbon dioxide detection module is connected to a standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix.
[0160] When a mainstream carbon dioxide detection module is connected to any other adapter of the same type, a second AD value is obtained by introducing carbon dioxide gas of a set concentration. Based on the second AD value and the calibration concentration coefficient matrix, a mathematical formula for the second carbon dioxide concentration is obtained.
[0161] Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0162] The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
[0163] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following steps:
[0164] The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value.
[0165] The calibration concentration coefficient matrix is obtained based on the calibration concentration coefficients in the carbon dioxide fitting curve;
[0166] When a mainstream carbon dioxide detection module is connected to a standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix.
[0167] When a mainstream carbon dioxide detection module is connected to any other adapter of the same type, a second AD value is obtained by introducing carbon dioxide gas of a set concentration. Based on the second AD value and the calibration concentration coefficient matrix, a mathematical formula for the second carbon dioxide concentration is obtained.
[0168] Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets the preset conditions, thus obtaining the modified calibration concentration coefficient matrix.
[0169] The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
[0170] 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 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, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0171] 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.
[0172] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively 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 patent application should be determined by the appended claims.
Claims
1. A method for detecting carbon dioxide concentration, characterized in that, The method includes: The carbon dioxide fitting curves are obtained when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value. Based on the calibration concentration coefficients in the carbon dioxide fitting curve, the calibration concentration coefficient matrix is obtained; When the mainstream carbon dioxide detection module is connected to the standard adapter, the first AD value is obtained by introducing a carbon dioxide gas of a set concentration. The mathematical formula for the first carbon dioxide concentration is obtained based on the first AD value and the calibration concentration coefficient matrix. The second AD value is obtained when the mainstream carbon dioxide detection module is connected to any other adapter of the same type and carbon dioxide gas of the set concentration is introduced. The mathematical formula for the second carbon dioxide concentration is obtained based on the second AD value and the calibration concentration coefficient matrix. Based on the mathematical formulas for the first and second carbon dioxide concentrations, the calibration concentration coefficient matrix is modified so that the concentration difference between the second and first carbon dioxide concentrations meets a preset condition, thus obtaining the modified calibration concentration coefficient matrix. The carbon dioxide concentration is calculated using the corrected calibration concentration coefficient matrix when the mainstream carbon dioxide detection module is connected to any target adapter of the same type.
2. The method according to claim 1, characterized in that, The adapters include adult adapters and children's adapters; If the standard adapter is an adult standard adapter, then the calibration concentration coefficient matrix is an adult calibration concentration coefficient matrix; If the standard adapter is a pediatric standard adapter, then the calibration concentration coefficient matrix is a pediatric calibration concentration coefficient matrix.
3. The method according to claim 1, characterized in that, The mathematical expression for the first or second carbon dioxide concentration with respect to the calibration concentration coefficient matrix and AD value is constructed using the following formula (1) or formula (2): wherein AD is a first AD value corresponding to the first carbon dioxide concentration or a second AD value corresponding to the second carbon dioxide concentration, the AD value is a measured voltage peak value, x(1), x(2), x(3)...x(n) are calibration concentration coefficients in a calibration concentration coefficient matrix, n is a number of the calibration concentration coefficients, cCO2 i is the measured first carbon dioxide concentration or the measured second carbon dioxide concentration.
4. The method according to claim 1, characterized in that, To ensure that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets a preset condition, including: The concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration shall not exceed the concentration difference threshold. or, The concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration is made to be 0.
5. The method according to claim 1, characterized in that, The carbon dioxide fitting curve was obtained by using a cubic equation to fit the carbon dioxide concentration to the AD value. The calibration concentration coefficient matrix includes four calibration concentration coefficients.
6. The method according to claim 1, characterized in that, The carbon dioxide gas at the set concentration is air.
7. The method according to claim 1, characterized in that, The carbon dioxide concentration when the mainstream carbon dioxide detection module is connected to any target adapter of the same type can be calculated using the following formula (3) or formula (4): Among them, AD 目标 The AD value is obtained when the mainstream carbon dioxide detection module is connected to the target adapter. 目标 The measured peak voltage is represented by x'(1), x'(2), x'(3)...x'(n), which are the calibration concentration coefficients in the corrected calibration concentration coefficient matrix, and n is the number of calibration concentration coefficients. cCO2 目标 The carbon dioxide concentration is obtained when the mainstream carbon dioxide detection module is connected to the target adapter.
8. A device for detecting carbon dioxide concentration, characterized in that, The device includes: The fitting module is used to obtain carbon dioxide fitting curves when a mainstream carbon dioxide detection module is connected to a standard adapter and different concentrations of carbon dioxide gas are introduced. The carbon dioxide fitting curves are used to characterize the functional relationship between carbon dioxide concentration, calibration concentration coefficient and AD value. The first matrix construction module is used to obtain the calibration concentration coefficient matrix based on the calibration concentration coefficients in the carbon dioxide fitting curve. The first detection module is used to obtain the first AD value when a mainstream carbon dioxide detection module is connected to the standard adapter and a set concentration of carbon dioxide gas is introduced, and to obtain a mathematical formula for the first carbon dioxide concentration based on the first AD value and the calibration concentration coefficient matrix. The second detection module is used to obtain the second AD value obtained when the mainstream carbon dioxide detection module is connected to any other adapter of the same type and carbon dioxide gas of the set concentration is introduced, and to obtain the mathematical formula of the second carbon dioxide concentration based on the second AD value and the calibration concentration coefficient matrix. The correction module is used to correct the calibration concentration coefficient matrix according to the mathematical formula of the first carbon dioxide concentration and the mathematical formula of the second carbon dioxide concentration, so that the concentration difference between the second carbon dioxide concentration and the first carbon dioxide concentration meets the preset condition, and obtain the corrected calibration concentration coefficient matrix. The concentration calculation module is used to calculate the carbon dioxide concentration when the mainstream carbon dioxide detection module is connected to any target adapter of the same type using the modified calibration concentration coefficient matrix.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
10. A computer device, comprising a memory and a processor, characterized in that, The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Main stream type method for monitoring concentration of carbon dioxide breathed by people in real time
CN103712942A
Main flow type medical breathing carbon dioxide concentration measuring system and calibration device and method
CN115825333A