Endoscopy decontamination compliance monitoring method, apparatus and computer device
Patent Information
- Application Number
- CN202311618960.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2043-11-29
AI Technical Summary
但目前市面上的追溯系统,在判断各个洗消环节的操作时间是否满足规范时间时,是通过两次读取内镜上的电子标签时间,计算两次时间差作为当前洗消环节的操作时间,即洗消下一个过程的“开始时间”就是上一个过程的“结束时间”,现有洗消环节的操作时间的计算方式会存在记录时间满足规范时间,但实际的清洗时间并不满足规范时间的情况出现
[0042]本发明实施例提供的消化内镜洗消合规性监测方法、装置和计算机设备,无需对现有洗消设备进行改进,仅需要增加摄像头设备以获取单个洗消环节的洗消过程的洗消图像序列,通过对各个洗消环节的洗消过程的洗消图像序列进行分析,以提取各帧洗消图像中水流轮廓区域与洗消池内储水水平面的交界线,根据交界线与洗消池的标记线的轮廓区域的位置关系判定采集每一洗消图像时洗消池里的储水量是否达到预设的洗消水量阈值,若首次出现洗消池里的储水量达到洗消水量阈值的洗消图像的采集时间作为当前洗消环节的开始时间,并以此统计当前洗消环节的实际操作时间,解决了现有清洗消毒追溯系统在监测洗消环节的操作时间时存在的记录时间满足规范时间,但实际的清洗时间并不满足规范时间的情况出现,使得各个洗消环节的实际操作时间的统计更精确,进而保证消化内镜洗消合规性监测的准确性。
Smart Images

Figure CN117557964B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical information technology, and in particular to a method, apparatus, and computer equipment for monitoring the compliance of digestive endoscope cleaning and disinfection. Background Technology
[0002] As invasive diagnostic tools, the cleaning and disinfection of digestive endoscopes is receiving increasing attention. With the widespread adoption of digestive endoscope cleaning and disinfection traceability systems, existing systems can now simultaneously manage the processes of cleaning, disinfection, use, and storage of endoscopes. These systems equip each endoscope with an electronic tag, and disinfection personnel also wear their own identification tags. When cleaning begins, the system automatically senses and records the operator, endoscope model, and whether each disinfection step meets the specified time requirements. However, current traceability systems determine whether the operation time for each disinfection step meets the specified time by reading the electronic tag on the endoscope twice and calculating the time difference between the two readings as the operation time for the current disinfection step. This means that the "start time" of the next disinfection step is the "end time" of the previous step. This current method of calculating operation time can lead to situations where the recorded time meets the specified time, but the actual cleaning time does not.
[0003] Therefore, addressing the issue that existing cleaning and disinfection traceability systems record the operation time in the cleaning and disinfection process as meeting the standard time, but the actual cleaning time does not, is of great significance for accurately monitoring the compliance of digestive endoscopy cleaning and disinfection. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a method, apparatus and computer device for monitoring the compliance of digestive endoscope cleaning and disinfection to overcome the above problems.
[0005] One aspect of the present invention provides a method for monitoring the compliance of disinfection of digestive endoscopes, the method comprising:
[0006] When the digestive endoscope is detected to have entered a new disinfection step, acquire N consecutive frames of disinfection images of the current disinfection process, where N≥1;
[0007] Identify the water flow contour region from the faucet and the marker line contour region of the decontamination tank in each frame of the decontamination image.
[0008] Extract the boundary line between the water flow contour area and the water level in the decontamination tank in each frame of the decontamination image, and determine whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the contour area of the marker line.
[0009] If the water volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, the acquisition time of the current decontamination image is taken as the start time of the current decontamination step, and the actual operation time of the current decontamination step is calculated based on the start time.
[0010] The actual operation time of the current disinfection process is compared with the preset standard time for the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is deemed to be compliant.
[0011] Optionally, identifying the water flow contour region from the faucet in each frame of the decontamination image includes:
[0012] For each decontamination image, the maximum contour region of the water flow area is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image. If the set of coordinate points of the maximum contour regions of the extracted water flow areas are inconsistent, it is determined that the water flow is in a flowing state, and the union of the set of coordinate points of the maximum contour regions of the water flow areas is taken as the water flow contour region of the current decontamination image.
[0013] Optionally, the step of taking the union of the coordinates of the maximum contour regions of each water flow region as the water flow contour region of the current decontamination image includes:
[0014] Generate a completely black image with the same resolution as the decontamination images based on the resolution of each frame of the acquired decontamination images;
[0015] For each decontamination image, the maximum contour of the water flow region is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image. The maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image are mapped onto the all-black image. The contour region coordinates corresponding to each maximum contour in the all-black image are filled. The maximum contour of the filled region in the all-black image is extracted. The maximum contour of the water flow region in the current decontamination image is corrected based on the extracted maximum contour. The coordinate region corresponding to the corrected maximum contour is taken as the water flow contour region in the current decontamination image.
[0016] Optionally, the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image are mapped onto the all-black image, including:
[0017] Traverse the set of coordinate points in the outline region of the marked line to obtain the minimum and maximum values of the y-coordinate in the set of coordinate points;
[0018] Determine whether the set of coordinate points in the maximum contour of the water flow area in each historical decontamination image contains coordinate points whose ordinate Y value is within the range of the minimum and maximum values;
[0019] The historical decontamination image containing the coordinate points of the maximum contour of the water flow region that are within the range of the minimum and maximum values of the ordinate Y-coordinate is used as the effective historical decontamination image.
[0020] The maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each valid historical decontamination image are respectively mapped onto the all-black image.
[0021] Optionally, the boundary line between the water flow contour region and the water level in the decontamination tank in each frame of the decontamination image is extracted, including:
[0022] Extract the water flow profile sub-region containing the contact surface between the water flow and the water stored in the decontamination tank from the water flow profile region in each frame of the decontamination image.
[0023] Calculate the minimum bounding rectangle of each water flow profile sub-region, and divide the corresponding water flow profile sub-region into left and right regions based on the x-coordinate of the center point of the minimum bounding rectangle;
[0024] Find the first coordinate point corresponding to the maximum value of the Y-coordinate in the left region and the second coordinate point corresponding to the maximum value of the Y-coordinate in the right region. Calculate the first straight line equation based on the coordinate values of the first and second coordinate points. Use the first straight line equation as the straight line equation of the boundary between the water flow contour region in the current decontamination image and the water level in the decontamination tank.
[0025] Optionally, a sub-region of water flow contour containing the contact surface between the water flow and the water stored in the decontamination tank is extracted from the water flow contour region in each frame of the decontamination image, including:
[0026] Traverse the set of coordinate points of the outline region of the marker line in each frame of the de-duration image, and obtain the minimum value of the y-coordinate in the set of coordinate points;
[0027] The coordinate point set of the water flow contour region in the corresponding decontamination image is filtered according to the minimum value to extract the water flow contour sub-region in the current decontamination image containing the contact surface between the water flow and the water stored in the decontamination tank.
[0028] Optionally, determining whether the water volume in the decontamination tank reaches a preset decontamination water volume threshold when acquiring the current decontamination image is based on the positional relationship between the boundary line and the outline region of the marked line includes:
[0029] The least squares line fitting algorithm is used to fit the outline region of the marker line in each frame of the de-dust image to obtain the straight line equation of the marker line.
[0030] Calculate the intersection points of the marker lines and the boundary lines in each frame of the de-dusting image based on the linear equations of the marker lines and the boundary lines.
[0031] If the marker line intersects with the boundary line and the coordinates of the intersection point are within the outline area of the marker line, or if the marker line intersects with the boundary line, but the coordinates of the intersection point are not within the outline area of the marker line and the Y-value of the ordinate of the intersection point is less than the Y-value of any area within the outline area of the marker line, then it is determined that the water volume in the decontamination tank has reached the decontamination water volume threshold when the current decontamination image is collected.
[0032] Optionally, the method further includes:
[0033] When a digestive endoscope is detected to be entering a new disinfection stage, the endoscope identification information is obtained by reading the electronic tag set on the digestive endoscope, and the personnel identification information of the personnel is obtained by reading the electronic tag worn by the personnel performing the procedure.
[0034] The compliance test results of the current disinfection process are uploaded to the preset database server for recording, and the actual operation time, disinfection image data and compliance test results of the current disinfection process are fed back to the traceability management workstation.
[0035] In another aspect, the present invention provides a digestive endoscope disinfection compliance monitoring device, the device comprising a functional module for implementing the digestive endoscope disinfection compliance monitoring method as described in any of the preceding claims, specifically, the device comprising:
[0036] The acquisition module is used to acquire N consecutive frames of disinfection images of the current disinfection process when the digestive endoscope is detected to have entered a new disinfection step.
[0037] The recognition module is used to identify the water flow contour area from the faucet and the marker line contour area of the decontamination pool in each frame of the decontamination image.
[0038] The determination module is used to extract the boundary line between the water flow contour area and the water level in the decontamination tank in each frame of the decontamination image, and determine whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the marker line contour area.
[0039] The timing module is used to determine the start time of the current decontamination step if the water volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, and to calculate the actual operation time of the current decontamination step based on the start time.
[0040] The comparison module is used to compare the actual operation time of the current disinfection process with the preset standard time of the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is determined to be compliant.
[0041] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor; when executed by the processor, the computer program implements the steps of the digestive endoscope disinfection compliance monitoring method as described in any of the preceding claims.
[0042] The digestive endoscope disinfection compliance monitoring method, device, and computer equipment provided in this invention do not require modifications to existing disinfection equipment. They only require the addition of a camera to acquire disinfection image sequences of individual disinfection stages. By analyzing these image sequences, the boundary between the water flow contour region and the water level in the disinfection tank is extracted from each frame. Based on the positional relationship between the boundary line and the contour region of the marked line in the disinfection tank, it is determined whether the water volume in the disinfection tank reaches a preset disinfection water volume threshold when each image is acquired. The acquisition time of the first image where the water volume in the disinfection tank reaches the threshold is taken as the start time of the current disinfection stage. This time is used to calculate the actual operation time of the current disinfection stage. This solves the problem in existing cleaning and disinfection traceability systems where the recorded time meets the standard time, but the actual cleaning time does not. This makes the statistics of the actual operation time of each disinfection stage more accurate, thereby ensuring the accuracy of digestive endoscope disinfection compliance monitoring.
[0043] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. In the drawings:
[0045] Figure 1 This is a flowchart of a method for monitoring the compliance of digestive endoscope washing and disinfection according to an embodiment of the present invention;
[0046] Figure 2 This is a reference diagram illustrating the implementation of a method for extracting water flow profile sub-regions in a digestive endoscope disinfection compliance monitoring method according to an embodiment of the present invention.
[0047] Figure 3 This is a schematic diagram of a digestive endoscope disinfection compliance monitoring device according to an embodiment of the present invention. Detailed Implementation
[0048] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0049] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the meaning consistent with their meaning in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined.
[0050] Example 1
[0051] This invention provides a method for monitoring the compliance of digestive endoscope washing and disinfection, such as... Figure 1 As shown, the method for monitoring the compliance of digestive endoscope washing and disinfection proposed in this invention includes the following steps:
[0052] S11. When the digestive endoscope is detected to have entered a new disinfection step, acquire N consecutive frames of disinfection images of the current disinfection process, where N ≥ 1.
[0053] Specifically, each digestive endoscope is equipped with an electronic tag. Before entering each disinfection stage, an RFID reader automatically senses the electronic tag. Once the backend service detects that the RFID reader has read the electronic tag, it indicates that the digestive endoscope has entered a new disinfection stage. The specific disinfection stage the digestive endoscope has entered can be determined based on the location of the RFID reader. After detecting that the digestive endoscope has entered a new disinfection stage, the start time of the current disinfection process is recorded, and real-time disinfection footage of the current stage is captured. The backend service then retrieves this real-time disinfection footage, continuously capturing images at equal intervals, for example, N frames per second.
[0054] S12. Identify the water flow outline region from the faucet and the marker line outline region of the decontamination tank in each frame of the decontamination image.
[0055] The marking lines in the washing and disinfection tank are used to mark the minimum amount of water required to completely immerse the digestive endoscope.
[0056] S13. Extract the boundary line between the water flow contour area and the water level in the decontamination tank in each frame of the decontamination image, and determine whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the contour area of the marker line.
[0057] When the water volume in the decontamination tank reaches the preset decontamination water volume threshold, the water volume in the decontamination tank can completely immerse the endoscope.
[0058] Specifically, when the boundary line between the water flow contour area and the water level in the decontamination tank reaches or exceeds the outline area of the marked line, the water volume in the decontamination tank reaches a preset decontamination water volume threshold. In this embodiment, the water volume in the decontamination tank is determined by identifying the boundary line between the water flow contour area and the water level in the decontamination tank, and by the positional relationship between the boundary line and the marked line. Compared with the water volume determination method that directly identifies the water level line, the water volume determination method proposed in this invention can not only prove that the water volume in the decontamination tank has reached the preset decontamination water volume threshold, ensuring that water can penetrate the endoscope host to meet the immersion requirements, but also prove that the water is flowing and the endoscope is being cleaned by the water flow, meeting the cleaning requirements.
[0059] S14. If the water volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, the acquisition time of the current decontamination image is taken as the start time of the current decontamination step, and the actual operation time of the current decontamination step is calculated based on the start time.
[0060] Specifically, this invention identifies and analyzes N consecutively acquired disinfection images during the current disinfection process to determine whether the water volume in the disinfection tank reaches a preset disinfection water volume threshold when the images are acquired, i.e., whether the water volume in the disinfection tank can completely immerse the endoscope. If so, the acquisition time of the disinfection image is taken as the "start time" of the current disinfection process, and the time when the RFID reader of the next disinfection process stage reads the electronic tag of the digestive endoscope is taken as the end time of the current disinfection process, thereby accurately realizing the statistics of the actual operation time of the current disinfection process.
[0061] S15. Compare the actual operation time of the current disinfection process with the preset standard time of the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is deemed to be compliant.
[0062] The digestive endoscope disinfection compliance monitoring method provided in this invention does not require modification of existing disinfection equipment. It only requires the addition of a camera device to obtain disinfection image sequences of a single disinfection step. By analyzing the disinfection image sequences of each disinfection step, the boundary line between the water flow contour area and the water level in the disinfection tank is extracted from each frame of the disinfection image. Based on the positional relationship between the boundary line and the contour area of the marked line in the disinfection tank, it is determined whether the water volume in the disinfection tank reaches the preset disinfection water volume threshold when each disinfection image is collected. If the water volume in the disinfection tank reaches the disinfection water volume threshold for the first time, the acquisition time of the disinfection image is taken as the start time of the current disinfection step, and the actual operation time of the current disinfection step is calculated accordingly. This solves the problem that existing cleaning and disinfection traceability systems may record a time that meets the standard time, but the actual cleaning time does not meet the standard time when monitoring the operation time of the disinfection step. This makes the statistics of the actual operation time of each disinfection step more accurate, thereby ensuring the accuracy of digestive endoscope disinfection compliance monitoring.
[0063] In this embodiment of the invention, the specific implementation method of identifying the water flow contour region of the faucet in each frame of the decontamination image in step S12 is as follows: For each decontamination image, the maximum contour region of the water flow region is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image. If the set of coordinate points of the maximum contour regions of each extracted water flow region is inconsistent, it is determined that the water flow is in a flowing state, and the union of the set of coordinate points of the maximum contour regions of each water flow region is taken as the water flow contour region of the current decontamination image.
[0064] Furthermore, the union of the coordinates of the maximum contour regions of each water flow region is taken as the water flow contour region of the current decontamination image. Specifically, this includes: generating a full-black image with the same resolution as the decontamination image based on the resolution of each frame of the acquired decontamination image; for each decontamination image, extracting the maximum contour of the water flow region from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image; mapping the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image to the full-black image; filling the contour region coordinates corresponding to each maximum contour in the full-black image; extracting the maximum contour from the filled region in the full-black image; correcting the maximum contour of the water flow region in the current decontamination image based on the extracted maximum contour; and taking the coordinate region corresponding to the corrected maximum contour as the water flow contour region in the current decontamination image. The process of mapping the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image to the all-black image further includes: traversing the coordinate point set of the marked line contour region to obtain the minimum and maximum values of the ordinate Y-value in the coordinate point set; determining whether the coordinate point set of the maximum contour of the water flow region in each historical decontamination image contains coordinate points with ordinate Y-values within the range of the minimum and maximum values; using historical decontamination images whose coordinate point set of the maximum contour of the water flow region contains coordinate points with ordinate Y-values within the range of the minimum and maximum values as valid historical decontamination images; and mapping the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each valid historical decontamination image to the all-black image.
[0065] In this embodiment, the water flow contour region and the marker line contour region in each frame of the decontamination image are identified and labeled in advance. Specifically, a preset decontamination image special region detection model can be called to identify the water flow contour region and the marker line contour region in the image, or image segmentation technology can be used to identify the water flow contour region and the marker line contour region in the image. This invention does not specifically limit the method. Since the water flow contour changes when the water flows, if no water flow contour is detected in N consecutive frames of images, it is determined that the operator has not turned on the tap to perform the cleaning action. If the set of coordinate points of the water flow contour in N consecutive frames of images does not change, it means that the N consecutive frames of images are the same repeated images, and it is determined that there is an abnormality in the camera. If the set of coordinate points of the water flow contour in N consecutive frames of images is inconsistent, it is determined that the water is flowing and the set of coordinate points of the water flow contour identified in the currently acquired N frames of images is superimposed. Specifically, a completely black image of the same resolution is created. The maximum contour is extracted from the contour point set of the first frame image as the water flow contour of the current frame image. The accuracy of the water flow contour recognition is determined by the identified marker line contour. Specifically, the coordinate point set of the marker line contour is traversed, and the minimum and maximum values of the y-coordinate are obtained. It is then determined whether the coordinate point set of the water flow contour in the current frame decontamination image contains coordinate points within the range of the minimum and maximum y-coordinate values. If such coordinate points exist, the water flow contour is considered to include the decontamination pool area, indicating accurate recognition. The maximum contour of the water flow area in the current frame decontamination image is mapped onto the all-black image. A specified color (white is an option) is filled into the coordinates of the corresponding maximum contour area on the created all-black image. This process is repeated for N frames. Contour extraction is then performed on the new image, and the contour with the largest area is extracted as the water flow contour area. This invention, by superimposing the coordinate point sets of the water flow contours from N frames of images, avoids misidentification of the water flow contour on a single frame image and filters out noise, improving the accuracy of water flow contour area extraction.
[0066] In this embodiment of the invention, the specific implementation method of extracting the boundary line between the water flow contour region and the water storage surface in the decontamination tank in step S13 is as follows: extract the water flow contour sub-region containing the contact surface between the water flow and the water storage surface in the decontamination tank from the water flow contour region in each frame of the decontamination image; calculate the minimum bounding rectangle of each water flow contour sub-region, and divide the corresponding water flow contour sub-region into left and right regions based on the x-coordinate value of the center point of the minimum bounding rectangle; find the first coordinate point corresponding to the maximum y-coordinate value in the left region and the second coordinate point corresponding to the maximum y-coordinate value in the right region, calculate the first straight line equation based on the coordinate values of the first coordinate point and the second coordinate point, and use the first straight line equation as the straight line equation of the boundary line between the water flow contour region and the water storage surface in the decontamination tank in the current decontamination image. Specifically, extracting a water flow contour sub-region containing the contact surface between the water flow and the water stored in the decontamination tank from the water flow contour region in each frame of the decontamination image includes: traversing the coordinate point set of the marker line contour region in each frame of the decontamination image, obtaining the minimum value of the ordinate Y value in the coordinate point set; filtering the coordinate point set of the water flow contour region in the corresponding decontamination image according to the minimum value, so as to extract the water flow contour sub-region containing the contact surface between the water flow and the water stored in the decontamination tank in the current decontamination image.
[0067] Further, the specific implementation method of determining whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when acquiring the current decontamination image based on the positional relationship between the boundary line and the outline region of the marker line in step S13 is as follows: A least-squares line fitting algorithm is used to perform line fitting on the outline region of the marker line in each frame of the decontamination image to obtain the linear equation of the marker line; the intersection point of the marker line and the boundary line in each frame of the decontamination image is calculated based on the linear equation of the marker line and the linear equation of the boundary line; if the marker line and the boundary line have an intersection point and the coordinates of the intersection point are located within the outline region of the marker line, or if the marker line and the boundary line have an intersection point, the coordinates of the intersection point are not within the outline region of the marker line and the ordinate Y value of the intersection point is less than the Y value of any region within the outline region of the marker line, then it is determined that the water volume in the decontamination tank reaches the decontamination water volume threshold when acquiring the current decontamination image.
[0068] In this embodiment, as Figure 2As shown, by finding the point with the smallest Y-coordinate from the set of coordinate points in the marked outline region, and filtering the set of coordinate points in the water flow outline region using this Y-coordinate, the set of coordinate points with Y-coordinates greater than this Y-coordinate is retained. This process truncates the water flow outline region, retaining only the sub-region containing the contact surface between the water flow and the decontamination tank, thus eliminating more interfering factors. Further, the minimum bounding rectangle of the water flow outline sub-region is calculated, and the center point of the rectangle is obtained. The water flow outline sub-region is then divided into left and right regions based on the X-coordinate of the center point. That is, the left region is defined as the point in the set of coordinate points with an X-coordinate less than the center point's X-coordinate, and the right region is defined as the point in the set of coordinate points with an X-coordinate greater than the center point's X-coordinate. The coordinate points with the maximum Y-coordinate values in the left and right regions are calculated respectively, resulting in two coordinate points. The equation of the straight line at the water contact surface between the water flow and the decontamination tank is obtained using the principle that two points determine a straight line.
[0069] It should be noted that in this embodiment, the y-axis extends downwards, and the y-value increases as the image moves downwards.
[0070] Furthermore, this invention employs a least-squares fitting method to fit a straight line to the outline region of the marker line, obtaining the linear equation of the marker line. The intersection point is determined by finding the linear equation of the marker line and the linear equation of the contact surface between the water flow and the decontamination tank. If the coordinates of the intersection point are within the outline region of the marker line, it is determined that the water volume in the decontamination tank is sufficient to completely wet the endoscope. If there is no intersection point, or if the coordinates of the intersection point are not within the outline region of the marker line and the ordinate (Y-value) of the intersection point is greater than the Y-value of any region within the outline region of the marker line, it is determined that the water volume in the decontamination tank is insufficient to completely wet the endoscope.
[0071] In this embodiment of the invention, when a digestive endoscope is detected to have entered a new disinfection stage, the endoscope identification information is obtained by reading the electronic tag set on the digestive endoscope, and the personnel identification information of the personnel is obtained by reading the electronic tag worn by the personnel. The compliance test results of the current disinfection stage are uploaded to a preset database server for recording, and the actual operation time, disinfection image data and compliance test results of the current disinfection stage are fed back to the traceability management workstation.
[0072] Specifically, each personnel performing the disinfection process and each digestive endoscope is equipped with an electronic tag. The personnel number of the personnel and the endoscope number are obtained by reading the electronic tags. The disinfection process includes initial washing, enzyme washing, secondary washing, disinfection, and final washing. Before each disinfection step, an RFID reader reads the electronic tag information to obtain the personnel number of the personnel and the endoscope number of the digestive endoscope. The actual process time for each disinfection step is recorded using the method described in the above embodiment. Different disinfection steps have corresponding standard times. If the recorded actual process time does not meet the standard time, the disinfection is deemed unqualified, and an early warning is issued. The compliance monitoring status of each disinfection step is uploaded to the database server and the relevant information is fed back to the traceability management workstation, so that users can subsequently perform data queries and statistics, and manage disinfection traceability at the traceability management workstation.
[0073] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0074] Example 2
[0075] Another embodiment of the present invention provides a digestive endoscope disinfection compliance monitoring device, the device comprising a functional module for implementing the digestive endoscope disinfection compliance monitoring method as described in any of the preceding claims. Figure 3 This schematic diagram illustrates the structure of a digestive endoscope disinfection compliance monitoring device provided by an embodiment of the present invention. (Refer to...) Figure 3 An embodiment of the present invention provides a monitoring device for the compliance of digestive endoscope washing and disinfection, specifically comprising an acquisition module 301, an identification module 302, a judgment module 303, a timing module 304, and a comparison module 305, wherein:
[0076] The acquisition module 301 is used to acquire N consecutive frames of disinfection images of the current disinfection process when the digestive endoscope is detected to have entered a new disinfection step.
[0077] The recognition module 302 is used to recognize the water flow contour area from the faucet and the marker line contour area of the decontamination pool in each frame of the decontamination image.
[0078] The determination module 303 is used to extract the boundary line between the water flow contour area and the water storage level in the decontamination tank in each frame of the decontamination image, and determine whether the water storage in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the marker line contour area.
[0079] The timing module 304 is used to take the acquisition time of the current decontamination image as the start time of the current decontamination step if it is determined that the water storage in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, and to calculate the actual operation time of the current decontamination step based on the start time.
[0080] The comparison module 305 is used to compare the actual operation time of the current disinfection process with the preset standard time of the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is determined to be compliant.
[0081] In this embodiment of the invention, the identification module 302 is used to extract the maximum contour region of the water flow area from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image for each decontamination image. If the set of coordinate points of the maximum contour regions of each extracted water flow area is inconsistent, it is determined that the water flow is in a flowing state, and the union of the set of coordinate points of the maximum contour regions of each water flow area is taken as the water flow contour region of the current decontamination image.
[0082] Further, the recognition module 302 is specifically used to generate a completely black image with the same resolution as the decontamination image based on the resolution of each frame of the acquired decontamination image; for each decontamination image, the maximum contour of the water flow region is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image, the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image are mapped to the completely black image, the contour region coordinates corresponding to each maximum contour in the completely black image are filled, the maximum contour of the filled region in the completely black image is extracted, the maximum contour of the water flow region in the current decontamination image is corrected based on the extracted maximum contour, and the coordinate region corresponding to the corrected maximum contour is used as the water flow contour region in the current decontamination image.
[0083] Furthermore, the identification module 302 is specifically used to traverse the set of coordinate points of the outline region of the marked line, obtain the minimum and maximum values of the Y-coordinate in the set of coordinate points; determine whether the set of coordinate points in the maximum outline of the water flow region in each historical decontamination image contains coordinate points with Y-coordinate values within the range of the minimum and maximum values; take the historical decontamination image containing coordinate points with Y-coordinate values within the range of the minimum and maximum values in the maximum outline of the water flow region as a valid historical decontamination image; and map the maximum outline of the water flow region in the current decontamination image and the maximum outline of the water flow region in each valid historical decontamination image to the all-black image respectively.
[0084] In this embodiment of the invention, the determination module 303 is used to extract a water flow contour sub-region containing the contact surface between the water flow and the water stored in the decontamination tank from the water flow contour region in each frame of the decontamination image; calculate the minimum bounding rectangle of each water flow contour sub-region, and divide the corresponding water flow contour sub-region into left and right regions based on the x-coordinate value of the center point of the minimum bounding rectangle; find the first coordinate point corresponding to the maximum y-coordinate value in the left region and the second coordinate point corresponding to the maximum y-coordinate value in the right region, calculate the first straight line equation based on the coordinate values of the first coordinate point and the second coordinate point, and use the first straight line equation as the straight line equation of the boundary line between the water flow contour region in the current decontamination image and the horizontal surface of the water stored in the decontamination tank.
[0085] Furthermore, the determination module 303 is specifically used to traverse the coordinate point set of the marker line contour region in each frame of the decontamination image, obtain the minimum value of the ordinate Y value in the coordinate point set; and filter the coordinate point set of the water flow contour region in the corresponding decontamination image according to the minimum value, so as to extract the water flow contour sub-region containing the contact surface between the water flow and the water stored in the decontamination pool in the current decontamination image.
[0086] Furthermore, the determination module 303 is specifically used to perform linear fitting on the marker line contour region in each frame of the decontamination image using the least squares fitting linear algorithm to obtain the linear equation of the marker line; calculate the intersection point of the marker line and the boundary line in each frame of the decontamination image based on the linear equation of the marker line and the linear equation of the boundary line; if the marker line and the boundary line have an intersection point and the coordinates of the intersection point are located within the marker line contour region, or if the marker line and the boundary line have an intersection point, the coordinates of the intersection point are not within the marker line contour region and the ordinate Y value of the intersection point is less than the Y value of any region of the marker line contour region, then it is determined that the water storage volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is collected.
[0087] The digestive endoscope disinfection compliance monitoring device provided in this embodiment of the invention further includes a reading module and a communication module (not shown in the accompanying drawings), wherein:
[0088] The reading module is used to obtain the endoscope identification information by reading the electronic tag set on the endoscope when the endoscope enters a new disinfection step, and to obtain the personnel identification information by reading the electronic tag worn by the personnel performing the procedure.
[0089] The communication module is used to upload the compliance test results of the current disinfection process to a preset database server for recording, and to feed back the actual operation time, disinfection image data and compliance test results of the current disinfection process to the traceability management workstation.
[0090] In the specific implementation process of Embodiment 2, you can refer to Embodiment 1, and it has the corresponding technical effects.
[0091] Example 3
[0092] This invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps described in the embodiments of the digestive endoscope washing and disinfection compliance monitoring methods, for example... Figure 1 Steps S11-S15 are shown. Alternatively, when the processor executes the computer program, it implements the functions of each module in the above embodiments of the digestive endoscope washing and disinfection compliance monitoring device, for example... Figure 3 The module shown is the acquisition module 301, the identification module 302, the judgment module 303, the timing module 304, and the comparison module 305.
[0093] In its specific implementation, Example 3 can be referred to Example 1 and has the corresponding technical effects.
[0094] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, any of the claimed embodiments can be used in any combination.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for monitoring the compliance of disinfection of digestive endoscopes, characterized in that, The method includes: When the digestive endoscope is detected to have entered a new disinfection step, acquire N consecutive frames of disinfection images of the current disinfection process, where N≥1; Identify the water flow contour region from the faucet and the marker line contour region of the decontamination tank in each frame of the decontamination image. Extract the boundary line between the water flow contour area and the water level in the decontamination tank in each frame of the decontamination image, and determine whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the contour area of the marker line. If the water volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, the acquisition time of the current decontamination image is taken as the start time of the current decontamination step, and the actual operation time of the current decontamination step is calculated based on the start time. The actual operation time of the current disinfection process is compared with the preset standard time for the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is deemed to be compliant.
2. The method according to claim 1, characterized in that, The identification of the water flow contour region from the faucet in each frame of the decontamination image includes: For each decontamination image, the maximum contour region of the water flow area is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image. If the set of coordinate points of the maximum contour regions of the extracted water flow areas are inconsistent, it is determined that the water flow is in a flowing state, and the union of the set of coordinate points of the maximum contour regions of the water flow areas is taken as the water flow contour region of the current decontamination image.
3. The method according to claim 2, characterized in that, The step of taking the union of the coordinates of the largest contour regions of each water flow region as the water flow contour region of the current decontamination image includes: Generate a completely black image with the same resolution as the decontamination images based on the resolution of each frame of the acquired decontamination images; For each decontamination image, the maximum contour of the water flow region is extracted from the current decontamination image and each historical decontamination image acquired earlier than the current decontamination image. The maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image are mapped onto the all-black image. The contour region coordinates corresponding to each maximum contour in the all-black image are filled. The maximum contour of the filled region in the all-black image is extracted. The maximum contour of the water flow region in the current decontamination image is corrected based on the extracted maximum contour. The coordinate region corresponding to the corrected maximum contour is taken as the water flow contour region in the current decontamination image.
4. The method according to claim 3, characterized in that, Mapping the maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each historical decontamination image onto the completely black image, including: Traverse the set of coordinate points in the outline region of the marked line to obtain the minimum and maximum values of the y-coordinate in the set of coordinate points; Determine whether the set of coordinate points in the maximum contour of the water flow area in each historical decontamination image contains coordinate points whose ordinate Y value is within the range of the minimum and maximum values; The historical decontamination image containing the coordinate points of the maximum contour of the water flow region that are within the range of the minimum and maximum values of the ordinate Y-coordinate is used as the effective historical decontamination image. The maximum contour of the water flow region in the current decontamination image and the maximum contour of the water flow region in each valid historical decontamination image are respectively mapped onto the all-black image.
5. The method according to claim 1, characterized in that, Extract the boundary line between the water flow contour region and the water level in the decontamination tank in each frame of the decontamination image, including: Extract the water flow profile sub-region containing the contact surface between the water flow and the water stored in the decontamination tank from the water flow profile region in each frame of the decontamination image. Calculate the minimum bounding rectangle of each water flow profile sub-region, and divide the corresponding water flow profile sub-region into left and right regions based on the x-coordinate of the center point of the minimum bounding rectangle; Find the first coordinate point corresponding to the maximum value of the Y-coordinate in the left region and the second coordinate point corresponding to the maximum value of the Y-coordinate in the right region. Calculate the first straight line equation based on the coordinate values of the first and second coordinate points. Use the first straight line equation as the straight line equation of the boundary between the water flow contour region in the current decontamination image and the water level in the decontamination tank.
6. The method according to claim 5, characterized in that, Extracting a sub-region of water flow profile containing the contact surface between the water flow and the water stored in the decontamination tank from the water flow profile region in each frame of the decontamination image, including: Traverse the set of coordinate points of the outline region of the marker line in each frame of the de-duration image, and obtain the minimum value of the y-coordinate in the set of coordinate points; The coordinate point set of the water flow contour region in the corresponding decontamination image is filtered according to the minimum value to extract the water flow contour sub-region in the current decontamination image containing the contact surface between the water flow and the water stored in the decontamination tank.
7. The method according to claim 5, characterized in that, Determining whether the water volume in the decontamination tank reaches a preset decontamination water volume threshold when acquiring the current decontamination image based on the positional relationship between the boundary line and the outline region of the marked line includes: The least squares line fitting algorithm is used to fit the outline region of the marker line in each frame of the de-dust image to obtain the straight line equation of the marker line. Calculate the intersection points of the marker lines and the boundary lines in each frame of the de-dusting image based on the linear equations of the marker lines and the boundary lines. If the marker line intersects with the boundary line and the coordinates of the intersection point are within the outline area of the marker line, or if the marker line intersects with the boundary line, but the coordinates of the intersection point are not within the outline area of the marker line and the Y-value of the ordinate of the intersection point is less than the Y-value of any area within the outline area of the marker line, then it is determined that the water volume in the decontamination tank has reached the decontamination water volume threshold when the current decontamination image is collected.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: When a digestive endoscope is detected to be entering a new disinfection stage, the endoscope identification information is obtained by reading the electronic tag set on the digestive endoscope, and the personnel identification information of the personnel is obtained by reading the electronic tag worn by the personnel performing the procedure. The compliance test results of the current disinfection process are uploaded to the preset database server for recording, and the actual operation time, disinfection image data and compliance test results of the current disinfection process are fed back to the traceability management workstation.
9. A device for monitoring the compliance of digestive endoscope washing and disinfection, characterized in that, The device includes: The acquisition module is used to acquire N consecutive frames of disinfection images of the current disinfection process when the digestive endoscope is detected to have entered a new disinfection step. The recognition module is used to identify the water flow contour area from the faucet and the marker line contour area of the decontamination pool in each frame of the decontamination image. The determination module is used to extract the boundary line between the water flow contour area and the water level in the decontamination tank in each frame of the decontamination image, and determine whether the water volume in the decontamination tank reaches the preset decontamination water volume threshold when the current decontamination image is collected based on the positional relationship between the boundary line and the marker line contour area. The timing module is used to determine the start time of the current decontamination step if the water volume in the decontamination tank reaches the decontamination water volume threshold when the current decontamination image is acquired, and to calculate the actual operation time of the current decontamination step based on the start time. The comparison module is used to compare the actual operation time of the current disinfection process with the preset standard time of the current disinfection process. If the actual operation time is greater than or equal to the standard time, the current disinfection process is determined to be compliant.
10. A computer device, characterized in that, Includes a memory, a processor, and a computer program stored in the memory and executable on the processor; When the computer program is executed by the processor, it implements the steps of the method as described in any one of claims 1-8.
Citation Information
Patent Citations
Water tank cleaning and purifying control method and device based on image processing and water tank
CN115120117A
Medical protective article putting-on and taking-off disinfection video AI monitoring method and device
CN115187911A