Spectral analysis method and device for negative pressure drainage bottle
By calculating the spectral data deviation information and obtaining the correction coefficient, the spectral data offset caused by the position change of the negative pressure drainage bottle is corrected, and the problems of spectral data drift and error are solved, and the analysis effect and parameter accuracy are improved.
Patent Information
- Application Number
- CN202510477807.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2045-04-16
AI Technical Summary
The prior art changes in the optical path of the spectral analysis equipment due to the change in the position of the negative pressure drainage bottle, resulting in drift and error in the spectral data, affecting the analysis effect and parameter accuracy.
By acquiring the first spectral data and the second spectral data, the spectral data deviation information is calculated, and the pre-constructed mapping relationship table is queried to obtain the spectral correction coefficient, and the first spectral data is corrected to obtain accurate drainage liquid parameter information.
The spectral data offset and error caused by the position change of the negative pressure drainage bottle is effectively corrected, and the spectral analysis effect and the accuracy of drainage fluid parameters are improved.
Smart Images

Figure CN120213829A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of drainage fluid analysis. Specifically, it relates to a spectral analysis method and device for a negative pressure drainage bottle. Background Art
[0002] During or after surgical operations, the prior art usually uses a negative pressure drainage bottle to collect body fluids such as exudate or blood in a patient's body. The prior art can obtain drainage fluid parameters (such as hemoglobin concentration and bilirubin concentration) by using spectral analysis technology to perform spectral analysis on the drainage fluid, so that medical staff can understand the patient's bleeding condition, postoperative recovery condition, and timely detect potential complication risks based on the drainage fluid parameters.
[0003] The prior art uses a spectral analysis device arranged near the negative pressure drainage bottle to obtain spectral data of the drainage fluid. However, the negative pressure drainage bottle is not in a static state during use (for example, the patient's autonomous activities or the nursing operations of medical staff may cause changes in the pose of the negative pressure drainage bottle), and the change in the pose of the negative pressure drainage bottle will cause a change in the optical path of the spectral analysis device. Since the optical path is a key factor affecting the accuracy of spectral data, the prior art has problems of spectral data drift and error due to the change in the optical path when the pose of the negative pressure drainage bottle changes, and the change amount of the optical path is a dynamic value, resulting in poor spectral analysis effect and low accuracy of drainage fluid parameters.
[0004] In response to the above problems, there is currently no effective technical solution. It should be noted that the above information disclosed in this part is only used to understand the background of the inventive concept of the present invention, and therefore may include information that does not constitute the prior art. Summary of the Invention
[0005] The purpose of this application is to provide a spectral analysis method and device for a negative pressure drainage bottle, which can effectively solve the problem of spectral data drift and error caused by the change in the optical path when the pose of the negative pressure drainage bottle changes, and the change amount of the optical path is a dynamic value.
[0006] In a first aspect, this application provides a spectral analysis method for a negative pressure drainage bottle, which is used to perform spectral analysis on the drainage fluid in the negative pressure drainage bottle. The spectral analysis method for the negative pressure drainage bottle includes the following steps: S1. When spectral analysis of the drainage fluid is required, obtain first spectral data and second spectral data. The first spectral data is the spectral data corresponding to the optical path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle; S2. Obtain spectral data deviation information based on the second spectral data and the calibrated spectral data, where the calibrated spectral data is the spectral data corresponding to the optical path that does not pass through the drainage fluid in the negative pressure drainage bottle in the calibrated pose; S3. Query the pre-constructed mapping relationship table of spectral data deviation and correction coefficient according to the spectral data deviation information to obtain the spectral correction coefficient; S4. Obtain the corrected spectral data based on the spectral data and the spectral correction coefficient; S5. Analyze and obtain the drainage fluid parameter information based on the corrected spectral data.
[0007] A spectral analysis method for a negative pressure drainage bottle provided by this application first obtains spectral data deviation information according to the second spectral data and the calibrated spectral data, then obtains the spectral correction coefficient based on the spectral data deviation information, and corrects the first spectral data based on the spectral correction coefficient to obtain the corrected spectral data. Finally, the drainage fluid parameter information is obtained by analyzing the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the change in the pose of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, this application can correct the offset and error of the first spectral data caused by the change in the pose of the negative pressure drainage bottle. That is, this application can effectively solve the problem that the spectral data has drift and error due to the change in the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameter.
[0008] Optionally, the first spectral data includes multiple groups of spectral wavelengths and their corresponding spectral intensities. Step S4 includes: S41. Query the pre-constructed mapping relationship table of wavelength and adjustment coefficient according to the spectral wavelength to obtain multiple first spectral adjustment coefficients, and each spectral wavelength corresponds to a first spectral adjustment coefficient; S42. Obtain the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, and the first spectral adjustment coefficient. The corrected spectral data is the set of all corrected spectral intensities.
[0009] Since the drainage fluid includes multiple components, and different components have different absorption and scattering degrees for light of different wavelengths, and this technical solution first obtains the first spectral adjustment coefficients corresponding to different spectral wavelengths, and then adjusts the corresponding spectral intensities based on the first spectral adjustment coefficients. Therefore, this technical solution is equivalent to using different correction strategies when correcting the spectral intensities corresponding to different spectral wavelengths. Therefore, this technical solution can effectively improve the accuracy of the corrected spectral data, thereby effectively improving the accuracy of the finally obtained drainage fluid parameter information.
[0010] Optionally, step S4 further includes a step executed between step S41 and step S42: S43. Obtain the image information of the negative pressure drainage bottle by using the image acquisition component, and analyze whether there are bubbles in the drainage fluid according to the image information of the negative pressure drainage bottle. If so, execute step S44; if not, execute step S42. S44. Analyze and obtain the bubble parameter information according to the image information of the negative pressure drainage bottle, and then query the pre-constructed mapping relation table of the bubble parameters and the adjustment coefficient set according to the bubble parameter information to obtain the adjustment coefficient set. The adjustment coefficient set includes the second spectral adjustment coefficients corresponding to different spectral wavelengths. The bubble parameter information includes the number of bubbles and the average size of the bubbles. When it is analyzed that there are bubbles in the drainage fluid, step S42 includes: S421. Obtain the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, the first spectral adjustment coefficient, and the second spectral adjustment coefficient.
[0011] Since when there are bubbles in the drainage fluid, the bubbles will scatter, reflect, or refract light, and the scattering, reflection, and refraction of light by the bubbles will all lead to a decrease in the accuracy of the spectral intensity. Moreover, the degrees of scattering, reflection, and refraction of light of different wavelengths by the bubbles may vary. The obtained adjustment coefficient set of this technical solution includes the second spectral adjustment coefficients corresponding to different spectral wavelengths. Therefore, this technical solution is equivalent to adaptively adjusting the spectral intensity according to the specific parameters of the bubbles when there are bubbles in the drainage fluid, and the degrees of adaptive adjustment of the spectral intensity corresponding to different spectral wavelengths are different. Therefore, this technical solution can further improve the accuracy of the spectral intensity, and thus further improve the accuracy of the corrected spectral data.
[0012] Optionally, step S43 includes: S431. Obtain the image information of the negative pressure drainage bottle by using the image acquisition component; S432. Perform preprocessing on the image information of the negative pressure drainage bottle. The preprocessing includes grayscale processing, contrast enhancement, and noise reduction processing; S433. Use an edge detection algorithm to perform edge detection on the preprocessed image information of the negative pressure drainage bottle to obtain the drainage fluid area; S434. Use the Hough circle transformation algorithm to identify bubbles in the drainage fluid area to analyze whether there are bubbles in the drainage fluid. If so, execute step S44; if not, execute step S42.
[0013] Since this technical solution is equivalent to grayscale processing, contrast enhancement and noise reduction processing of the negative pressure drainage bottle image information when analyzing whether there are bubbles in the drainage fluid, and grayscale processing can simplify image data and reduce the complexity of subsequent processing, contrast enhancement can make the boundaries in the image clearer, and noise reduction processing can improve the quality of the image, this technical solution can effectively improve the accuracy of bubble recognition.
[0014] Optionally, the edge detection algorithm is a Canny edge detection algorithm.
[0015] Optionally, step S1 includes: S11, when it is necessary to perform spectral analysis on the drainage fluid, obtaining first spectral data and second spectral data; S12: Perform smoothing filtering on the first spectrum data and the second spectrum data to reduce noise interference.
[0016] Since the technical solution can effectively reduce the random noise in the first spectral data and the second spectral data and improve the signal-to-noise ratio of the first spectral data and the second spectral data by performing smoothing filtering on the first spectral data and the second spectral data, this example can effectively improve the accuracy and reliability of the first spectral data and the second spectral data, so as to provide more accurate and reliable spectral data for subsequent processing steps, thereby further improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0017] Optionally, the spectrum analysis method of the negative pressure drainage bottle further comprises the steps of: S6. Obtain the height of the drainage fluid level, and generate an alarm message when the difference between the height of the drainage fluid level and the height of the light path that does not pass through the drainage fluid in the negative pressure drainage bottle is less than a height threshold.
[0018] When the difference between the drainage fluid level height and the height of the optical path that does not pass through the drainage fluid in the negative pressure drainage bottle is less than the height threshold, it means that the drainage fluid level is too high, and the optical path corresponding to the second spectral data may be at risk of passing through the drainage fluid. If the optical path corresponding to the second spectral data passes through the drainage fluid, it will cause the difference between the second spectral data and the calibration spectral data to be not only associated with the position difference of the negative pressure drainage bottle. Therefore, this technical solution can avoid as much as possible the situation where the difference between the second spectral data and the calibration spectral data is not only associated with the position difference of the negative pressure drainage bottle due to the drainage fluid level being too high, and the spectral analysis effect and drainage fluid parameters are unreliable.
[0019] Optionally, the height threshold is determined based on an actual posture of the negative pressure drainage bottle.
[0020] Since the height threshold of this technical solution is determined based on the actual pose of the negative pressure drainage bottle, that is, the height threshold of this technical solution is always adapted to the actual pose of the negative pressure drainage bottle, this technical solution can effectively reduce the occurrence of false alarms or missed alarms, thereby effectively improving the reliability of alarm information.
[0021] Optionally, the drainage fluid parameter information includes hemoglobin concentration and bilirubin concentration.
[0022] In a second aspect, the present application also provides a spectral analysis device for a negative pressure drainage bottle, which is used to perform spectral analysis on the drainage fluid in the negative pressure drainage bottle. The spectral analysis device for the negative pressure drainage bottle includes: A spectral data acquisition module, configured to acquire first spectral data and second spectral data when spectral analysis of the drainage fluid is required. The first spectral data is the spectral data corresponding to the optical path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle; A spectral data deviation acquisition module, configured to acquire spectral data deviation information according to the second spectral data and the calibrated spectral data. The calibrated spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle in the calibrated pose; A spectral correction coefficient acquisition module, configured to query a pre-constructed mapping relationship table between spectral data deviation and correction coefficient according to the spectral data deviation information to obtain a spectral correction coefficient; A spectral data correction module, configured to obtain corrected spectral data according to the spectral data and the spectral correction coefficient; A drainage fluid parameter acquisition module, configured to analyze and obtain drainage fluid parameter information based on the corrected spectral data.
[0023] The spectral analysis device for a negative pressure drainage bottle provided by the present application first obtains spectral data deviation information according to the second spectral data and the calibrated spectral data, then obtains a spectral correction coefficient based on the spectral data deviation information, and corrects the first spectral data based on the spectral correction coefficient to obtain corrected spectral data. Finally, drainage fluid parameter information is obtained by analyzing the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the change in the pose of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, the present application can correct the offset and error of the first spectral data caused by the change in the pose of the negative pressure drainage bottle. That is, the present application can effectively solve the problem that the spectral data drifts and has errors due to the change in the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0024] As can be seen from the above, for a spectral analysis method and device of a negative pressure drainage bottle provided by the present application, first, spectral data deviation information is obtained based on second spectral data and calibrated spectral data, then a spectral correction coefficient is obtained based on the spectral data deviation information, and the first spectral data is corrected based on the spectral correction coefficient to obtain corrected spectral data. Finally, drainage fluid parameter information is obtained based on the analysis of the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, the present application can correct the offset and error of the first spectral data caused by the pose change of the negative pressure drainage bottle. That is, the present application can effectively solve the problem that the spectral data has drift and error due to the change of the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flowchart of a spectral analysis method of a negative pressure drainage bottle provided by an embodiment of the present application.
[0026] Figure 2 It is a schematic structural diagram of a spectral analysis device of a negative pressure drainage bottle provided by an embodiment of the present application.
[0027] Reference numerals: 1, spectral data acquisition module; 2, spectral data deviation acquisition module; 3, spectral correction coefficient acquisition module; 4, spectral data correction module; 5, drainage fluid parameter acquisition module. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Usually, the components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application claimed, but only represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0029] It should be noted that: similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, terms such as "first" and "second" are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0030] In the first aspect, asFigure 1 As shown in the figure, the present application provides a spectral analysis method for a negative pressure drainage bottle, which is used for spectral analysis of the drainage fluid in the negative pressure drainage bottle. The spectral analysis method for the negative pressure drainage bottle includes the following steps: S1. When spectral analysis of the drainage fluid is required, obtain first spectral data and second spectral data. The first spectral data is the spectral data corresponding to the optical path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle; S2. Obtain spectral data deviation information according to the second spectral data and the calibrated spectral data. The calibrated spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle in the calibrated pose; S3. Query a pre-constructed mapping relationship table between spectral data deviation and correction coefficient according to the spectral data deviation information to obtain a spectral correction coefficient; S4. Obtain corrected spectral data according to the spectral data and the spectral correction coefficient; S5. Analyze and obtain drainage fluid parameter information based on the corrected spectral data.
[0031] Step S1 can use existing light sources and spectroscopic devices to obtain the first spectral data and the second spectral data. Specifically, the spectroscopic device divides the light beam emitted by the light source into two beams. One beam passes through the drainage fluid in the negative pressure drainage bottle, and the other beam avoids the drainage fluid in the negative pressure drainage bottle (does not pass through the drainage fluid in the negative pressure drainage bottle). Step S2 can also use two existing light sources to obtain the first spectral data and the second spectral data. Specifically, the working parameters of the two light sources are the same. The light beam emitted by one light source passes through the drainage fluid in the negative pressure drainage bottle, and the light beam emitted by the other light source does not pass through the drainage fluid in the negative pressure drainage bottle. It should be understood that due to the action of gravity, the drainage fluid accumulates in the bottom area of the negative pressure drainage bottle. Therefore, in this embodiment, the light beam needs to be made to have a height greater than the liquid level height of the drainage fluid so that the light beam does not pass through the drainage fluid in the negative pressure drainage bottle. It should also be understood that since the first spectral data is the spectral data corresponding to the optical path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle, the first spectral data can reflect the spectral characteristics of the light beam passing through the drainage fluid, and the second spectral data can reflect the spectral characteristics of the light beam not passing through the drainage fluid.
[0032] Step S2 can obtain the spectral data deviation information by subtracting the second spectral data from the calibrated spectral data. That is, the calculation formula for the spectral data deviation information is: spectral data deviation information = calibrated spectral data - second spectral data. The calibrated spectral data in step S2 is obtained by pre-calibration. Specifically, the process of obtaining the calibrated spectral data can be as follows: adjust the actual pose of the negative pressure drainage bottle to the calibrated pose; fix the negative pressure drainage bottle to ensure that the pose of the negative pressure drainage bottle does not change; make the light beam emitted by the light source not pass through the drainage liquid in the negative pressure drainage bottle, and then use the spectral data at this time as the calibrated spectral data. It should be understood that the calibrated pose in this embodiment can be designed by those skilled in the art according to experience or actual needs. It should also be understood that since both the second spectral data and the calibrated spectral data are the spectral data corresponding to the optical path that does not pass through the drainage liquid in the negative pressure drainage bottle, that is, the difference between the second spectral data and the calibrated spectral data is caused by the difference between the actual pose and the calibrated pose of the negative pressure drainage bottle, that is, the difference between the second spectral data and the calibrated spectral data is only related to the pose difference of the negative pressure drainage bottle. Therefore, the spectral data deviation information obtained in step S2 can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle. That is, this embodiment is equivalent to quantifying the optical path change using the spectral data deviation information.
[0033] The mapping relationship table between the spectral data deviation and the correction coefficient in step S3 stores multiple sets of spectral data deviations and their corresponding correction coefficients. The data source of this mapping relationship table can be experimental data or simulation data. It should be understood that since the spectral data deviation information in this embodiment can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle, and under the same other conditions, the optical path change amount is related to the correction amount of the spectral data passing through the drainage. Therefore, step S3 can obtain the spectral correction coefficient based on the spectral data deviation information, so as to use the spectral correction coefficient to correct the first spectral data in the subsequent process. This spectral correction coefficient can reflect the correction degree of the first spectral data.
[0034] Step S4 corrects the first spectral data by multiplying the first spectral data by the spectral correction coefficient to obtain the corrected spectral data, that is, the corrected spectral data is the corrected first spectral data. It should be understood that since the spectral correction coefficient in this embodiment is obtained based on the spectral data deviation information, and the spectral data deviation information can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle. Therefore, step S4 can correct the offset and error of the first spectral data caused by the pose change of the negative pressure drainage bottle. That is, this application can effectively improve the accuracy of the spectral data corresponding to the optical path passing through the drainage liquid through steps S1 - S4, so that the spectral data corresponding to the optical path passing through the drainage liquid can more accurately reflect the true spectral characteristics of the drainage liquid.
[0035] Step S5 can obtain the drainage fluid parameter information based on the existing drainage fluid parameter analysis model or drainage fluid parameter analysis algorithm according to the corrected spectral data. Preferably, step S5 obtains the drainage fluid parameter information by inputting the corrected spectral data into a pre-trained drainage fluid parameter analysis model. Taking the calculation of the hemoglobin concentration in the drainage fluid as an example, the drainage fluid parameter analysis model is established based on the standard spectral characteristics of hemoglobin. The drainage fluid parameter analysis model calculates the hemoglobin concentration value by analyzing the absorbance values at specific wavelengths in the corrected spectral data and combining with the model algorithm.
[0036] A spectral analysis method for a negative pressure drainage bottle provided by the present application first obtains spectral data deviation information according to the second spectral data and the calibrated spectral data, then obtains a spectral correction coefficient based on the spectral data deviation information, and corrects the first spectral data based on the spectral correction coefficient to obtain corrected spectral data. Finally, the drainage fluid parameter information is obtained based on the analysis of the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, the present application can correct the offset and error of the first spectral data caused by the pose change of the negative pressure drainage bottle. That is, the present application can effectively solve the problem that the spectral data has drift and error due to the change of the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0037] In some preferred embodiments, the first spectral data includes multiple groups of spectral wavelengths and their corresponding spectral intensities, and step S4 includes: S41. Query a pre-constructed mapping relationship table of wavelength and adjustment coefficient according to the spectral wavelength to obtain multiple first spectral adjustment coefficients, and each spectral wavelength corresponds to a first spectral adjustment coefficient; S42. Obtain the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, and the first spectral adjustment coefficient. The corrected spectral data is the set of all corrected spectral intensities.
[0038] The mapping relationship table between wavelength and adjustment coefficient in step S41 can be a data table stored in a memory or a cloud server. This mapping relationship table records multiple groups of wavelengths and their corresponding adjustment coefficients. Therefore, in step S41, the first spectral adjustment coefficient corresponding to each spectral wavelength can be determined by querying this mapping relationship table according to the spectral wavelength. For example, this mapping relationship table can be set as follows: the adjustment coefficient for wavelengths less than or equal to 380 nm is 0.65, the adjustment coefficient for wavelengths greater than 380 nm and less than or equal to 450 nm is 0.85, the adjustment coefficient for wavelengths greater than 450 nm and less than or equal to 580 nm is 1.1, and the adjustment coefficient for wavelengths greater than 580 nm is 0.8. If the spectral wavelength is 270 nm, the corresponding first spectral adjustment coefficient is 0.65. Step S42 can obtain the corrected spectral intensity corresponding to this spectral wavelength by multiplying the spectral coefficient corresponding to the spectral wavelength, the first spectral adjustment coefficient, and the spectral correction coefficient, that is, the calculation formula for the corrected spectral intensity is: the corrected spectral intensity of the i-th spectral wavelength = the spectral intensity corresponding to the i-th spectral wavelength × the first spectral adjustment coefficient corresponding to the i-th spectral wavelength × the spectral correction coefficient. Since the drainage fluid includes multiple components, and different components have different absorption and scattering degrees for light of different wavelengths, and in this embodiment, the first spectral adjustment coefficient corresponding to different spectral wavelengths is first obtained, and then the spectral intensity corresponding to it is adjusted based on the first spectral adjustment coefficient. Therefore, this embodiment is equivalent to using different correction strategies when correcting the spectral intensity corresponding to different spectral wavelengths. Therefore, this embodiment can effectively improve the accuracy of the corrected spectral data, thereby effectively improving the accuracy of the finally obtained drainage fluid parameter information.
[0039] In some preferred embodiments, step S4 further includes a step executed between step S41 and step S42: S43. Use the image acquisition component to obtain the image information of the negative pressure drainage bottle, and analyze whether there are bubbles in the drainage fluid according to the image information of the negative pressure drainage bottle. If so, execute step S44; if not, execute step S42. S44. Analyze and obtain the bubble parameter information according to the image information of the negative pressure drainage bottle, and then query the pre-constructed mapping relationship table between bubble parameters and the adjustment coefficient set to obtain the adjustment coefficient set. The adjustment coefficient set includes the second spectral adjustment coefficient corresponding to different spectral wavelengths. The bubble parameter information includes the number of bubbles and the average bubble size. When it is analyzed that there are bubbles in the drainage fluid, step S42 includes: S421. Obtain the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, the first spectral adjustment coefficient, and the second spectral adjustment coefficient.
[0040] The image acquisition component of this embodiment can be an existing camera. Step S43 can use existing image recognition technology to recognize the bubbles (equivalent to the target object of the image recognition technology) in the negative pressure drainage bottle image information to analyze whether there are bubbles in the drainage fluid. When it is analyzed that there are bubbles in the drainage fluid, step S43 can use existing image recognition technology and image analysis technology to analyze and obtain bubble parameter information based on the negative pressure drainage bottle image information. The bubble parameter information includes the number of bubbles and the average bubble size. The number of bubbles is the total number of bubbles in the drainage fluid, and the average bubble size is the average value of the sizes of all bubbles in the drainage fluid. The mapping relationship table between the bubble parameters and the adjustment coefficient set in step S44 stores multiple sets of bubble parameters and their corresponding adjustment coefficient sets. Each adjustment coefficient set includes the second spectral adjustment coefficients of different spectral wavelengths. Therefore, the adjustment coefficient set obtained in step S43 includes the second spectral adjustment coefficients corresponding to different spectral wavelengths. When it is analyzed that there are bubbles in the drainage fluid, this embodiment obtains the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, the first spectral adjustment coefficient, and the second spectral adjustment coefficient. When it is analyzed that there are no bubbles in the drainage fluid, this embodiment obtains the corrected spectral intensity corresponding to each spectral wavelength according to the spectral correction coefficient, the spectral intensity corresponding to each spectral wavelength, and the first spectral adjustment coefficient. Since when there are bubbles in the drainage fluid, the bubbles will scatter, reflect, or refract light, and the scattering, reflection, and refraction of light by the bubbles will all lead to a decrease in the accuracy of the spectral intensity, and the degrees of scattering, reflection, and refraction of light of different wavelengths by the bubbles may vary. The adjustment coefficient set obtained in this embodiment includes the second spectral adjustment coefficients corresponding to different spectral wavelengths. Therefore, this embodiment is equivalent to adaptively adjusting the spectral intensity according to the specific parameters of the bubbles when there are bubbles in the drainage fluid, and the degrees of adaptive adjustment of the spectral intensity corresponding to different spectral wavelengths are different. Therefore, this embodiment can further improve the accuracy of the spectral intensity, thereby further improving the accuracy of the corrected spectral data. It should be understood that this embodiment is equivalent to using the spectral correction coefficient to correct the spectral deviation caused by the pose change of the negative pressure drainage bottle, using the first spectral adjustment coefficient to correct the spectral difference at different wavelengths, and using the second spectral adjustment coefficient to correct the spectral error introduced by the bubbles to improve the accuracy and reliability of the corrected spectral data.
[0041] In some preferred embodiments, step S43 includes: S431. Use the image acquisition component to obtain the negative pressure drainage bottle image information; S432. Preprocess the negative pressure drainage bottle image information. The preprocessing includes grayscale processing, contrast enhancement, and noise reduction processing; S433. Use an edge detection algorithm to perform edge detection on the preprocessed negative pressure drainage bottle image information to obtain the drainage fluid area; S434. Use the Hough circle transformation algorithm to identify bubbles in the drainage fluid area to analyze whether there are bubbles in the drainage fluid. If so, execute step S44; if not, execute step S42.
[0042] The grayscale processing in step S432 can convert the image information of the negative pressure drainage bottle from a color image to a grayscale image to simplify the image data and reduce the complexity of subsequent processing. The contrast enhancement in step S432 can make the boundaries between the bubbles and the drainage fluid and between the drainage fluid and the negative pressure drainage bottle in the grayscale image clearer. The noise reduction processing in step S432 can reduce the noise points in the grayscale image to improve the quality of the grayscale image. Step S432 can use existing Gaussian filtering methods or median filtering methods for noise reduction processing. The edge detection algorithm in step S433 can be an existing algorithm. This edge detection algorithm can locate the boundary of the drainage fluid by analyzing the pixel gradient changes of the preprocessed image information of the negative pressure drainage bottle to obtain the drainage fluid area. The Hough circle transformation algorithm in step S434 is a mature algorithm that can search for a set of pixels conforming to circular features in an image. Since the cross-sectional shape of the bubbles in the drainage fluid is usually circular or approximately circular, and the Hough circle transformation algorithm can search for a set of pixels conforming to circular features in an image, if it is analyzed by the Hough circle transformation algorithm that there are circular features in the drainage fluid area, it means that there are bubbles in the drainage fluid; if it is analyzed by the Hough circle transformation algorithm that there are no circular features in the drainage fluid area, it means that there are no bubbles in the drainage fluid. Since this embodiment is equivalent to first performing grayscale processing, contrast enhancement, and noise reduction processing on the image information of the negative pressure drainage bottle when analyzing whether there are bubbles in the drainage fluid, and the grayscale processing can simplify the image data and reduce the complexity of subsequent processing, the contrast enhancement can make the boundaries in the image clearer, and the noise reduction processing can improve the quality of the image, so this embodiment can effectively improve the accuracy of bubble recognition.
[0043] In some preferred embodiments, the edge detection algorithm is the Canny edge detection algorithm. This embodiment uses the Canny edge detection algorithm to perform edge detection on the preprocessed image information of the negative pressure drainage bottle. Since the Canny edge detection algorithm can effectively suppress noise interference and accurately locate the edges in the image through multi-level filtering and gradient calculation, this embodiment can effectively improve the accuracy of the drainage fluid area, provide a more accurate working area for bubble recognition, and thus effectively avoid the situation where some bubbles are not correctly recognized due to the obtained drainage fluid area being smaller than the actual drainage fluid area, and the drainage fluid with bubbles is misjudged as having no bubbles, that is, this embodiment can effectively improve the accuracy of bubble recognition.
[0044] In some preferred embodiments, step S1 includes: S11, when it is necessary to perform spectral analysis on the drainage fluid, obtaining first spectral data and second spectral data; S12: Perform smoothing filtering on the first spectrum data and the second spectrum data to reduce noise interference.
[0045] The smoothing filter processing of step S12 can be an existing signal processing technology. Since the spectral data collection process is affected by factors such as ambient light fluctuations and electronic device noise, the first spectral data and the second spectral data obtained will inevitably contain noise. These noises will reduce the signal-to-noise ratio of the first spectral data and the second spectral data, and affect the quality of the first spectral data and the second spectral data. Since step S12 can effectively reduce the random noise in the first spectral data and the second spectral data and improve the signal-to-noise ratio of the first spectral data and the second spectral data by smoothing the first spectral data and the second spectral data, this example can effectively improve the accuracy and reliability of the first spectral data and the second spectral data, so as to provide more accurate and reliable spectral data for subsequent processing steps, thereby further improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0046] In some preferred embodiments, the spectrum analysis method of the negative pressure drainage bottle further comprises the steps of: S6. Obtain the height of the drainage fluid level, and generate an alarm message when the difference between the height of the drainage fluid level and the height of the light path that does not pass through the drainage fluid in the negative pressure drainage bottle is less than a height threshold.
[0047] In step S6, the height of the drainage fluid level can be obtained by an existing liquid level monitoring component (such as a liquid level sensor). The height threshold of this embodiment can be a value set by a person skilled in the art based on experience or actual needs. The alarm information of this embodiment is used to remind medical staff that the level of the drainage fluid is too high so that the medical staff can take corresponding measures. The alarm information can be in the form of a sound alarm, a light alarm, or a text prompt on a display screen. When the difference between the height of the drainage fluid level and the height of the optical path of the drainage fluid that does not pass through the negative pressure drainage bottle is less than the height threshold, it indicates that the level of the drainage fluid is too high, and the optical path corresponding to the second spectral data may have the risk of passing through the drainage fluid. If the optical path corresponding to the second spectral data passes through the drainage fluid, it will cause the difference between the second spectral data and the calibration spectral data to not be associated only with the difference in the position and posture of the negative pressure drainage bottle. Therefore, this embodiment can avoid as much as possible the situation that the difference between the second spectral data and the calibration spectral data is not associated only with the difference in the position and posture of the negative pressure drainage bottle due to the high level of the drainage fluid, and the spectral analysis effect and the drainage fluid parameters are unreliable.
[0048] In some preferred embodiments, the height threshold is determined based on the actual pose of the negative pressure drainage bottle. The height threshold of this embodiment is determined based on the actual pose of the negative pressure drainage bottle, that is, this embodiment is equivalent to making the height threshold a value dynamically determined based on the actual pose of the negative pressure drainage bottle, rather than a fixed value. This embodiment can obtain the actual pose of the negative pressure drainage bottle by using a pose sensor to monitor the tilt angle and orientation of the negative pressure drainage bottle. This embodiment can query a pre-constructed mapping relationship table between the pose of the negative pressure drainage bottle and the height threshold according to the actual pose of the negative pressure drainage bottle. The mapping relationship table records the height thresholds corresponding to different poses. Therefore, this embodiment can query the mapping relationship table according to the actual pose of the negative pressure drainage bottle by means of data query to quickly determine the height threshold matching the actual pose of the current negative pressure drainage bottle. Since the height threshold of this embodiment is determined based on the actual pose of the negative pressure drainage bottle, that is, the height threshold of this embodiment is always adapted to the actual pose of the negative pressure drainage bottle, this embodiment can effectively reduce the occurrence of missed alarms or false alarms, thereby effectively improving the reliability of alarm information.
[0049] In some preferred embodiments, the drainage fluid parameter information includes hemoglobin concentration and bilirubin concentration. The hemoglobin concentration of this embodiment can reflect the postoperative bleeding condition, and the bilirubin concentration of this embodiment can reflect the hepatobiliary recovery status.
[0050] As can be seen from the above, a spectral analysis method of a negative pressure drainage bottle provided by the present application first obtains spectral data deviation information according to the second spectral data and the calibrated spectral data, then obtains a spectral correction coefficient based on the spectral data deviation information, and corrects the first spectral data based on the spectral correction coefficient to obtain corrected spectral data. Finally, the drainage fluid parameter information is obtained based on the analysis of the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the change in the pose of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, the present application can correct the offset and error of the first spectral data caused by the change in the pose of the negative pressure drainage bottle, that is, the present application can effectively solve the problem that the spectral data has drift and error due to the change in the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0051] Second, as Figure 2 shown, the present application also provides a spectral analysis device for a negative pressure drainage bottle, which is used for spectral analysis of the drainage fluid in the negative pressure drainage bottle. The spectral analysis device of the negative pressure drainage bottle includes: A spectral data acquisition module 1, configured to acquire first spectral data and second spectral data when spectral analysis of the drainage fluid is required. The first spectral data is the spectral data corresponding to the optical path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle; A spectral data deviation acquisition module 2, configured to acquire spectral data deviation information according to the second spectral data and the calibrated spectral data. The calibrated spectral data is the spectral data corresponding to the optical path not passing through the drainage fluid in the negative pressure drainage bottle in the calibrated pose; A spectral correction coefficient acquisition module 3, configured to query a pre-constructed mapping relation table of spectral data deviation and correction coefficient according to the spectral data deviation information to obtain a spectral correction coefficient; A spectral data correction module 4, configured to obtain corrected spectral data according to the spectral data and the spectral correction coefficient; A drainage fluid parameter acquisition module 5, configured to analyze and obtain drainage fluid parameter information based on the corrected spectral data.
[0052] A spectral analysis device for a negative pressure drainage bottle provided by an embodiment of the present application includes a spectral data acquisition module 1, a spectral data deviation acquisition module 2, a spectral correction coefficient acquisition module 3, a spectral data correction module 4, and a drainage fluid parameter acquisition module 5. The spectral analysis device for a negative pressure drainage bottle provided by this embodiment is used to execute the steps in a spectral analysis method for a negative pressure drainage bottle provided in the first aspect above. The principle of the spectral analysis device for a negative pressure drainage bottle provided by this embodiment is the same as the principle of the spectral analysis method for a negative pressure drainage bottle provided in the first aspect above, and will not be elaborated in detail here.
[0053] As can be seen from the above, for a spectral analysis method and device for a negative pressure drainage bottle provided by the present application, first, spectral data deviation information is acquired according to the second spectral data and the calibrated spectral data, then a spectral correction coefficient is obtained based on the spectral data deviation information, and the first spectral data is corrected based on the spectral correction coefficient to obtain corrected spectral data. Finally, drainage fluid parameter information is analyzed and obtained based on the corrected spectral data. Since the spectral data deviation information can reflect the magnitude of the optical path change caused by the pose change of the negative pressure drainage bottle, and the spectral correction coefficient is obtained based on the spectral data deviation information, the present application can correct the offset and error of the first spectral data caused by the pose change of the negative pressure drainage bottle, that is, the present application can effectively solve the problem that the spectral data has drift and error due to the change of the optical path when the pose of the negative pressure drainage bottle changes and the change amount of the optical path is a dynamic value, thereby effectively improving the spectral analysis effect and the accuracy of the drainage fluid parameters.
[0054] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another robot, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.
[0055] In addition, in each embodiment of the present application, the various functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.
[0056] In this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0057] The above description is only for the embodiments of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A spectral analysis method for a negative pressure drainage bottle, used for performing spectral analysis on drainage fluid in a negative pressure drainage bottle, characterized in that: The spectrum analysis method of the negative pressure drainage bottle comprises the following steps: S1. When it is necessary to perform spectral analysis on the drainage fluid, obtaining first spectral data and second spectral data, wherein the first spectral data is spectral data corresponding to a light path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is spectral data corresponding to a light path not passing through the drainage fluid in the negative pressure drainage bottle; S2. Acquire spectral data deviation information according to the second spectral data and calibration spectral data, wherein the calibration spectral data is spectral data corresponding to a light path that does not pass through the drainage fluid in the negative pressure drainage bottle in the calibration posture; S3, querying a pre-built mapping relationship table of spectral data deviation and correction coefficient according to the spectral data deviation information to obtain the spectral correction coefficient; S4, obtaining corrected spectral data according to the spectral data and the spectral correction coefficient; S5. Obtain drainage fluid parameter information based on the corrected spectral data analysis.
2. The spectrum analysis method of the negative pressure drainage bottle according to claim 1, characterized in that: The first spectral data includes multiple groups of spectral wavelengths and their corresponding spectral intensities, and step S4 includes: S41, querying a pre-constructed mapping relationship table between wavelength and adjustment coefficient according to the spectrum wavelength to obtain a plurality of first spectrum adjustment coefficients, each of the spectrum wavelengths corresponding to one of the first spectrum adjustment coefficients; S42, obtaining a corrected spectrum intensity corresponding to each of the spectrum wavelengths according to the spectrum correction coefficient, the spectrum intensity corresponding to each of the spectrum wavelengths, and a first spectrum adjustment coefficient, wherein the corrected spectrum data is a collection of all the corrected spectrum intensities.
3. The spectrum analysis method of the negative pressure drainage bottle according to claim 2, characterized in that: Step S4 also includes the following steps performed between step S41 and step S42: S43, using the image acquisition component to obtain the image information of the negative pressure drainage bottle, and analyzing whether there are bubbles in the drainage fluid according to the image information of the negative pressure drainage bottle, if yes, executing step S44, if not, executing step S42; S44, acquiring bubble parameter information according to the negative pressure drainage bottle image information analysis, and then querying a pre-constructed mapping relationship table between bubble parameters and adjustment coefficient sets according to the bubble parameter information to acquire an adjustment coefficient set, wherein the adjustment coefficient set includes second spectral adjustment coefficients corresponding to different spectral wavelengths, and the bubble parameter information includes the number of bubbles and the average size of bubbles; When bubbles are detected in the drainage fluid, step S42 includes: S421 . Obtain a corrected spectral intensity corresponding to each of the spectral wavelengths according to the spectral correction coefficient, the spectral intensity corresponding to each of the spectral wavelengths, a first spectral adjustment coefficient, and a second spectral adjustment coefficient.
4. The spectrum analysis method of the negative pressure drainage bottle according to claim 3, characterized in that: Step S43 includes: S431, using an image acquisition component to obtain negative pressure drainage bottle image information; S432, preprocessing the negative pressure drainage bottle image information, wherein the preprocessing includes grayscale processing, contrast enhancement and noise reduction processing; S433, performing edge detection on the pre-processed negative pressure drainage bottle image information using an edge detection algorithm to obtain a drainage fluid area; S434, using the Holf circle variation algorithm to identify bubbles in the drainage fluid area to analyze whether there are bubbles in the drainage fluid, if so, execute step S44, if not, execute step S42.
5. The spectrum analysis method of the negative pressure drainage bottle according to claim 4, characterized in that: The edge detection algorithm is the Canny edge detection algorithm.
6. The spectrum analysis method of the negative pressure drainage bottle according to claim 1, characterized in that: Step S1 includes: S11, when it is necessary to perform spectral analysis on the drainage fluid, obtaining first spectral data and second spectral data; S12: Perform smoothing filtering on the first spectral data and the second spectral data to reduce noise interference.
7. The spectrum analysis method of the negative pressure drainage bottle according to claim 1, characterized in that: The spectrum analysis method of the negative pressure drainage bottle also includes the steps of: S6. Obtain the height of the drainage fluid level, and generate an alarm message when the difference between the height of the drainage fluid level and the height of the light path that does not pass through the drainage fluid in the negative pressure drainage bottle is less than a height threshold.
8. The spectrum analysis method of the negative pressure drainage bottle according to claim 7, characterized in that: The height threshold is determined based on the actual position of the negative pressure drainage bottle.
9. The spectrum analysis method of the negative pressure drainage bottle according to claim 1, characterized in that: The drainage fluid parameter information includes hemoglobin concentration and bilirubin concentration.
10. A spectral analysis device for a negative pressure drainage bottle, used for performing spectral analysis on drainage fluid in a negative pressure drainage bottle, characterized in that: The spectrum analysis device of the negative pressure drainage bottle comprises: a spectral data acquisition module, used for acquiring first spectral data and second spectral data when it is necessary to perform spectral analysis on the drainage fluid, wherein the first spectral data is spectral data corresponding to a light path passing through the drainage fluid in the negative pressure drainage bottle, and the second spectral data is spectral data corresponding to a light path not passing through the drainage fluid in the negative pressure drainage bottle; a spectral data deviation acquisition module, configured to acquire spectral data deviation information according to the second spectral data and calibration spectral data, wherein the calibration spectral data is spectral data corresponding to an optical path that does not pass through drainage fluid in the negative pressure drainage bottle in a calibration posture; A spectrum correction coefficient acquisition module, used for querying a pre-built mapping relationship table of spectrum data deviation and correction coefficient according to the spectrum data deviation information to obtain the spectrum correction coefficient; A spectral data correction module, used for obtaining corrected spectral data according to the spectral data and the spectral correction coefficient; The drainage fluid parameter acquisition module is used to acquire drainage fluid parameter information based on the modified spectral data analysis.
Citation Information
Patent Citations
Method and apparatus for downhole spectral analysis of fluids
CN101375143A
CT ray hardening artifact correction method and system based on energy spectrum analysis
CN115078421A
Water eutrophication detection method and device
CN116718609A
Correction method of calibration curve
JP2007187594A
Methods and Apparatus for Downhole Fluid Analysis
US20140176946A1