A system and method for monitoring the handwashing status of a medicine storage facility based on irreversible color-changing tracing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-22
- Publication Date
- 2026-08-14
AI Technical Summary
一种基于不可逆变色示踪的药仓盥洗状态监测系统及方法,以解决现有技术中药仓缺乏违规操作物理示踪、事后无法核验、易通过隐蔽盥洗手段窃取管制药品的缺陷
本发明通过不可逆变色标签实现了药仓违规盥洗操作的永久性标记,且标记不可恢复、不可篡改、不可复位,从物理层面杜绝了事后掩盖行为,为药仓提供有力的安全保障。
Smart Images

Figure CN122575006A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of drug monitoring technology, specifically a drug warehouse handwashing status monitoring system and method based on irreversible color change tracing. Background Technology
[0002] In controlled drug storage and administration equipment, the drug storage compartment serves as the core storage carrier for controlled drugs. Its security, compliance, and tamper-proof capabilities directly impact the effectiveness of the entire drug control process and the bottom line of public safety. Controlled drugs (such as narcotic drugs, psychotropic drugs, and radioactive drugs) have addictive, pathogenic, or potential abuse risks. Loss, theft, or misappropriation not only disrupts drug regulatory order but also causes social harm. However, current drug control designs still have some flaws, allowing for the exploitation of equipment design loopholes and covert methods such as specific washing, diversion, or replacement to illegally steal or misappropriate controlled drugs from the storage compartment without damaging the equipment's appearance or triggering conventional alarm mechanisms, resulting in drug loss.
[0003] Traditional pharmacy warehouse management methods are mostly limited to basic security measures such as mechanical locks and electronic access control (e.g., passwords, card swipes, fingerprint recognition). Relevant patent documents retrieved include: Chinese patent document, publication number CN120895195A, publication date November 4, 2025, entitled "A Comprehensive Collaborative Management System and Method for the Replenishment and Dispensing of Narcotic and Psychotropic Drugs," includes a safety storage monitoring unit for deploying a deformable magnetic fluid sealing mechanism on the narcotic and psychotropic drug box. This mechanism controls the shape change of the magnetic fluid via electromagnetic signals, triggering a topological deformation to automatically lock the box when unauthorized opening is detected. A dispensing operation unit provides path guidance via the box's AR interface, using a multi-band LED array to indicate the target storage compartment for dispensing. A drug data insight unit collects narcotic and psychotropic drug consumption data and medication order data from the storage terminal in the storage compartment, constructing a narcotic and psychotropic drug consumption map based on the consumption data. This system achieves comprehensive safety protection, intelligent operation, precise analysis, and optimization during drug management, significantly improving the efficiency, accuracy, safety, and intelligence of narcotic and psychotropic drug management.
[0004] Chinese patent document, publication number CN120297871A, publication date July 11, 2025, entitled "Intelligent Management System for Monitoring and Traceability of Controlled Drugs," describes a technical solution comprising a device-side module, a back-end management module, an intelligent medicine box module, and a functional collaboration module, as well as a drug expiration date management unit, an intelligent replenishment unit, an environmental monitoring unit, and a multi-terminal collaboration unit. Based on biometric identification and dual-person verification for access control, combined with encrypted storage of operation logs throughout the process, it can eliminate the risks of fraudulent claims and misuse, achieving "human-to-human" verification. medicine Operation "strong correlation traceability" The existing technologies, represented by the aforementioned patents, can only achieve access control for the "normal opening / closing" of the medicine storage compartment. They cannot provide objective and tamper-proof physical evidence of whether unauthorized operations such as drug-stealing washing, drainage, or replacement have been performed inside the compartment. These unauthorized operations are highly concealed: washing operations can be performed by connecting to the medicine storage compartment through tiny pipes, dissolving the drugs, and then draining them out; the pipes can be quickly sealed afterward, leaving no obvious trace. Drainage operations can exploit the inherent weaknesses in the medicine storage compartment's drug delivery tubing, using negative pressure or gravity to drain the drugs; afterward, simply restoring the tubing can cover up the traces. Replacement operations can substitute non-controlled drugs for controlled drugs within the storage compartment; these substitutions are not visually distinguishable and are difficult to detect through routine inspections. These operations often leave no traceable physical evidence afterward. Existing technologies (such as video surveillance and conventional access control records) can only record the external state of the equipment and cannot capture the unauthorized operations inside the medicine storage compartment, making it difficult to identify and prove violations, and lacking effective evidence for post-event verification.
[0005] Therefore, the current protective system for drug storage facilities is no longer sufficient to meet actual regulatory needs. On the one hand, existing control measures have significant shortcomings, failing to physically prevent violations or provide strong support for post-event verification. On the other hand, with the continuous expansion of controlled drug usage scenarios (such as medical institutions, drug rehabilitation centers, and special drug manufacturers), the frequency of drug storage facility use and operational complexity are constantly increasing, placing higher demands on their tamper-proof and traceability capabilities. Against this backdrop, there is an urgent need for a monitoring method that can irreversibly record whether drug storage facilities have been illegally cleaned, diverted, or opened, filling the existing technological gap. Summary of the Invention
[0006] The purpose of this invention is to provide: A system and method for monitoring the handwashing status of a medicine warehouse based on irreversible color-changing tracing is proposed to address the shortcomings of existing technologies, such as the lack of physical traceability for illegal operations in medicine warehouses, the inability to verify afterward, and the ease with which controlled drugs can be stolen through covert handwashing methods.
[0007] Terminology Explanation: Unless otherwise defined, all technical terms used herein have the same meanings as commonly understood by one of ordinary skill in the art to which this subject matter pertains. Unless otherwise stated, all patents, patent inventions, and disclosures cited throughout this document are incorporated herein by reference in their entirety. Where multiple definitions exist for terms herein, the definitions provided in this chapter shall prevail.
[0008] It should be understood that the above brief description and the following detailed description are exemplary and for illustrative purposes only, and do not limit the subject matter of the invention in any way. In this invention, the singular is used in conjunction with the plural unless otherwise specifically stated. It should also be noted that, unless otherwise stated, the use of “or” or “or” means “and / or”. Furthermore, the use of the term “comprising” and other forms such as “including,” “containing,” and “contains” are not limiting.
[0009] Unless specifically defined herein, the use of various commercially available products herein employs standard techniques. For example, they may be implemented using the manufacturer's instructions for use, or in accordance with methods known in the art or the description of this invention. The techniques and methods described herein can generally be implemented according to conventional methods well known in the art, based on the descriptions in the various general and more specific documents cited and discussed in this specification.
[0010] The terms “optional / arbitrary” or “optionally / arbitrarily” mean that the event or situation described below may or may not occur, including both the occurrence and non-occurrence of the event or situation.
[0011] In a first aspect, the present invention provides: A pharmacy handwashing status monitoring system based on irreversible color-changing tracing includes: An irreversible color-changing label is installed in a specific area inside the medicine storage chamber. The specific area satisfies the following conditions: when the medicine storage chamber is subjected to washing, infusion, or drainage operations, the medicine can come into contact with the irreversible color-changing label; and when the irreversible color-changing label comes into contact with the medicine, a permanent and irreversible color change occurs. The identification module is used to collect the color state of the irreversible color-changing label; The control module is used to calculate the total color deviation or grayscale deviation of the irreversible color-changing label based on its color state; based on the total color deviation or grayscale deviation, the control module determines whether the medicine compartment has been illegally washed, filled, or drained.
[0012] Based on further solutions to the technical problems of the present invention, or simultaneous solutions to multiple technical problems, the preferred solution in the technical solution provided in the first aspect of the present invention includes: First preferred option: The pharmacy handwashing status monitoring system also includes: The early warning module issues an early warning message when the control module determines that the medicine tank has been illegally washed, filled, or drained.
[0013] This technical solution can issue real-time alarms through early warning information to alert staff that the medicine warehouse has been stolen, so as to stop the theft in time and prevent the harm from escalating further.
[0014] Second preferred option: The pharmacy handwashing status monitoring system also includes: The communication module is used to upload records of unauthorized handwashing to the background monitoring platform, enabling full traceability of pharmacy operations.
[0015] Third preferred option: The irreversible color-changing label is a label that changes color when exposed to water, solvents, or washing liquids.
[0016] Fourth preferred option: The irreversible color-changing label is fixed inside the medicine compartment using a one-time anti-counterfeiting method, including dispensing, patching, coating, printing, and lamination.
[0017] Fifth preferred option: Specific areas include: the inner wall of the medicine compartment, the bottom of the medicine compartment, pipe interfaces, and areas that can be touched by the washing operation.
[0018] Secondly, the present invention provides: A method for monitoring the handwashing status of a medicine storage facility based on irreversible color-changing tracing, wherein the monitoring is performed using the aforementioned medicine storage facility handwashing status monitoring system, and the specific monitoring method includes: S1. After the medicine warehouse is activated, the recognition module collects multiple frames of initial images of the irreversible color-changing labels and generates a baseline grayscale value. S2. When the medicine warehouse is in use, the recognition module collects multiple frames of the current image of the irreversible color-changing label and generates multiple current color values. S3. Based on the reference color value and multiple current color values, calculate the total color deviation and grayscale deviation for each frame; S4. If the total color deviation is greater than or equal to the color deviation threshold, or the grayscale deviation is greater than or equal to the grayscale deviation threshold, then this frame is marked as a single frame suspected of color change; if the number of consecutive single frames suspected of color change exceeds 5 frames, it is determined that the irreversible color change label has changed color, and the medicine warehouse has been illegally washed, filled or drained.
[0019] First preferred option: The specific method for generating the baseline grayscale value includes: setting the initial color data of the irreversible color-changing label as the label image; continuously acquiring N frames of label images by the recognition module, where N ranges from 5 to 20; extracting the R, G, and B color components of the label region in each frame; and calculating the arithmetic mean of the color values of the same channel in the N frames to obtain the baseline red component. , baseline green component , baseline blue component :
[0020]
[0021]
[0022] At the same time, calculate the baseline gray value. :
[0023] in This represents the R channel color component of the i-th frame label region of the initial image. This represents the G channel color component of the i-th frame label region of the initial image. This represents the B channel color component of the i-th frame label region of the initial image.
[0024] Second preferred option: When calculating the total color deviation and grayscale deviation, the control module also determines the matching degree between the current outline and the initial outline of the irreversible color-changing label based on the outline information of the irreversible color-changing label in the initial image and the outline information of the irreversible color-changing label in the current image. If the matching degree is lower than the preset integrity threshold, it is determined that the irreversible label has been torn off, covered or replaced. The specific method for calculating the matching degree is as follows: Based on the initial image, the initial outline of the irreversible color-changing label is obtained, and the reference outline feature point set of the label is extracted based on the initial outline. Where n is the number of feature points. All represent the coordinates of the edge points of the initial contour; Based on the current image, obtain the current outline of the irreversible color-changing label and extract the real-time outline feature point set of the label. , Indicates the coordinates of the edge points of the current contour; Calculate the average Euclidean distance of the profile:
[0025] Calculate the contour matching degree:
[0026] in, For the maximum permissible profile deviation, The value range is from 0 to 1, when If the value is less than 0.7, it is determined that the label outline does not match, and the irreversible color-changing label has been torn off, replaced, or obscured.
[0027] Third preferred option: The specific method for calculating the total color deviation is as follows:
[0028] in, This represents the color components of the R channel of the current image. This represents the color components of the G channel of the current image. This represents the color components of the B channel of the current image;
[0029]
[0030]
[0031] The R channel color component of the label region in the i-th frame of the current image. This represents the G channel color component of the i-th frame label region of the current image. This represents the B channel color component of the i-th frame label region of the current image.
[0032] Fourth preferred option: The specific method for calculating grayscale deviation is as follows: First, calculate the current grayscale value:
[0033] Next, calculate the grayscale deviation: .
[0034] The present invention has at least the following beneficial effects: This invention achieves permanent marking of unauthorized handwashing operations in medicine storage areas through irreversible color-changing labels. The markings are unrecoverable, tamper-proof, and unresettable, physically preventing cover-ups and providing strong security for medicine storage areas.
[0035] This invention abandons electronic password verification methods, is unaffected by risks such as electronic log tampering and access control breaches, and boasts high reliability. It enables pre-emptive deterrence, in-process alarms, and post-event traceability, significantly enhancing the anti-theft capabilities of controlled drug warehouses. Furthermore, it eliminates the need for complex manual inspections, reducing regulatory costs and subjective misjudgments, and meeting the stringent compliance and traceability requirements of medical and pharmaceutical regulatory agencies. Attached Figure Description
[0036] Figure 1 This is a system block diagram of the present invention; Figure 2 This is a schematic diagram showing the relative positions of the irreversible color-changing label and the medicine compartment; Figure 3 This is a flowchart of the method of the present invention. Detailed Implementation
[0037] The following non-limiting embodiments are intended to enable those skilled in the art to gain a more comprehensive understanding of the present invention, but do not limit the invention in any way. The following content is merely an exemplary description of the scope of protection claimed by the present invention, and those skilled in the art can make various changes and modifications to the present invention based on the disclosed content, and such changes should also fall within the scope of protection claimed by the present invention.
[0038] The present invention will be further described below by way of specific embodiments. Unless otherwise specified, all instruments, devices, equipment and other items used in the embodiments of the present invention are obtained through conventional commercial means.
[0039] Example 1 This embodiment provides a medicine storage room handwashing status monitoring system based on irreversible color-changing tracing, such as... Figure 1 and Figure 2 As shown, it includes: An irreversible color-changing label 1 is disposed in a specific area inside the medicine chamber 2. The specific area satisfies the following conditions: when the medicine chamber 2 is subjected to washing, irrigation, or drainage operations, the medicine can come into contact with the irreversible color-changing label 1; and when the irreversible color-changing label 1 comes into contact with the medicine, a permanent and irreversible color change occurs. Identification module 3, the identification module 3 is used to collect the color state of the irreversible color-changing label 1; The control module is used to calculate the total color deviation or grayscale deviation of the irreversible color-changing label 1 based on its color state; and to determine whether the medicine chamber 2 has been illegally washed, filled, or drained based on the total color deviation or grayscale deviation.
[0040] Among them, medicine compartment 2 is an existing medicine compartment, and its structural form is not limited. Specific areas inside medicine compartment 2 include the inner wall of the medicine compartment, the bottom of the medicine compartment, the medicine compartment pipeline interface, or areas that are easily touched by unauthorized washing operations. For example, pipeline interfaces, the inside of valves, the inside of sealing plugs, medicine outlets, the inside of pump bodies, the medicine compartment seal, the sealing gasket, and hidden areas that are easily wetted by liquid.
[0041] The irreversible color-changing label 1 is a water-sensitive, solvent-sensitive, or wash-relevant color-changing label. Examples include irreversible materials that change color in response to specific solvents, medications, conductive liquids, or rinsing solutions; indicator coatings that permanently change color upon changes in humidity, osmotic pressure, or pH; anti-counterfeiting materials that irreversibly change color upon pressure, puncture, or tearing; and thermochromic materials that permanently change color upon sudden temperature changes. The label substrate can be any of the following: paper, PET, PI, aluminum foil anti-counterfeiting, fragile paper, or self-adhesive anti-counterfeiting materials, ensuring that removal results in damage and cannot be replaced without leaving a trace. The irreversible color-changing label 1 and the medicine compartment 2 can be fixed using methods such as dispensing, patching, coating, printing, or lamination.
[0042] In addition, the irreversible color-changing label 1 can be distributed in single-point, multi-point, circular, or strip-shaped patterns to increase the probability of being triggered.
[0043] Example 2 This embodiment provides a medicine storage room handwashing status monitoring system based on irreversible color-changing tracing, such as... Figure 1 As shown, it includes: An irreversible color-changing label 1 is disposed in a specific area inside the medicine chamber 2. The specific area satisfies the following conditions: when the medicine chamber 2 is subjected to washing, irrigation, or drainage operations, the medicine can come into contact with the irreversible color-changing label 1; and when the irreversible color-changing label 1 comes into contact with the medicine, a permanent and irreversible color change occurs. Identification module 3, the identification module 3 is used to collect the color state of the irreversible color-changing label 1; The control module is used to calculate the total color deviation or grayscale deviation of the irreversible color-changing label 1 based on its color state; and to determine whether the medicine chamber 2 has been illegally washed, filled, or drained based on the total color deviation or grayscale deviation. The early warning module issues an early warning message when the control module determines that the medicine tank 2 has been illegally washed, filled, or drained. The communication module is used to upload records of unauthorized handwashing to the background monitoring platform, enabling full traceability of operations in the pharmacy warehouse 2.
[0044] Among them, medicine compartment 2 is an existing medicine compartment, and its structural form is not limited. Specific areas inside medicine compartment 2 include the inner wall of the medicine compartment, the bottom of the medicine compartment, the medicine compartment pipeline interface, or areas that are easily touched by unauthorized washing operations. For example, pipeline interfaces, the inside of valves, the inside of sealing plugs, medicine outlets, the inside of pump bodies, the medicine compartment seal, the sealing gasket, and hidden areas that are easily wetted by liquid.
[0045] The irreversible color-changing label 1 is a water-sensitive, solvent-sensitive, or wash-relevant color-changing label. Examples include irreversible materials that change color in response to specific solvents, medications, conductive liquids, or rinsing solutions; indicator coatings that permanently change color upon changes in humidity, osmotic pressure, or pH; anti-counterfeiting materials that irreversibly change color upon pressure, puncture, or tearing; and thermochromic materials that permanently change color upon sudden temperature changes. The label substrate can be any of the following: paper, PET, PI, aluminum foil anti-counterfeiting, fragile paper, or self-adhesive anti-counterfeiting materials, ensuring that removal results in damage and cannot be replaced without leaving a trace. The irreversible color-changing label 1 and the medicine compartment 2 can be fixed using methods such as dispensing, patching, coating, printing, or lamination.
[0046] In addition, the irreversible color-changing label 1 can be distributed in single-point, multi-point, circular, or strip-shaped patterns to increase the probability of being triggered.
[0047] The recognition module 3 is a color sensor, but it can also be used with existing color recognition modules such as cameras, RGB recognition modules, etc. The acquisition range of the recognition module 3 covers the setting position of the irreversible color-changing label 1, and there is no obstruction in the middle.
[0048] The control module can be an MCU control unit, a microcontroller, an ARM processor, an FPGA, a PLC, or a module integrated into the device motherboard.
[0049] The alarm methods of the early warning module include auditory, visual, and tactile. For example, the early warning module can be a buzzer, or it can be an indicator light, a miniature vibration motor, a screen display, or a code reporting system. After an alarm is triggered, the control module can control the medicine compartment 2 to perform mandatory restraint actions such as locking the valve, locking the pump, locking the compartment, prohibiting drug administration, and forcibly shutting down the machine, thereby protecting the medicine from theft.
[0050] When an unauthorized handwashing operation is detected, the communication module uploads the record of the unauthorized handwashing to the back-end monitoring platform. The communication module can use communication methods such as 4G / 5G, WiFi, Bluetooth, NB-IoT, LoRa, RS485, CAN, and Ethernet. The uploaded content is not limited to the violation status, but can also include: device ID, location information, timestamp, operation log, and tag status. The uploaded content can support local storage and offline re-upload to ensure that the monitoring record cannot be deleted or tampered with.
[0051] Example 3 This embodiment provides a method for monitoring the handwashing status of a medicine storage facility based on irreversible color-changing tracing, such as... Figure 3 As shown, it includes: After S1 and medicine storage 2 are activated, the recognition module 3 acquires multiple frames of the initial image of the irreversible color-changing label 1 and generates a baseline grayscale value; the specific method is as follows: The recognition module 3 continuously acquires N initial images, where N ranges from 5 to 20; it extracts the R, G, and B color components of the label region in each frame, and calculates the arithmetic mean of the color values of the same channel for each of the N frames to obtain the baseline red component. , baseline green component , baseline blue component :
[0052]
[0053]
[0054] At the same time, calculate the baseline gray value. :
[0055] in This represents the R channel color component of the i-th frame label region of the initial image. This represents the G channel color component of the i-th frame label region of the initial image. This represents the B channel color component of the i-th frame label region of the initial image.
[0056] When S2 and medicine storage 2 are in use, the recognition module 3 collects multiple frames of the current image of the irreversible color-changing label 1 and generates multiple current color values; The number of current images is the same as the initial number of images, N. The R, G, and B color components of the label region are extracted from each frame of the current image. The arithmetic mean of the color values of the same channel in each of the N frames is then calculated to obtain the current red component. Current green component Current blue component :
[0057]
[0058]
[0059] The R channel color component of the label region in the i-th frame of the current image. This represents the G channel color component of the i-th frame label region of the current image. This represents the B channel color component of the i-th frame label region of the current image.
[0060] S3. Based on the reference color value and multiple current color values, calculate the total color deviation and grayscale deviation for each frame; The specific method for calculating the total color deviation is as follows:
[0061] in, This represents the color components of the R channel of the current image. This represents the color components of the G channel of the current image. This represents the color component of the B channel of the current image.
[0062] The specific method for calculating grayscale deviation is as follows: First, calculate the current grayscale value:
[0063] Next, calculate the grayscale deviation: .
[0064] S4. If the total color deviation is greater than or equal to the color deviation threshold, or the grayscale deviation is greater than or equal to the grayscale deviation threshold, then this frame is marked as a single frame suspected of color change; if the number of consecutive single frames suspected of color change exceeds 5 frames, it is determined that the irreversible color change label 1 has changed color, and the medicine tank 2 has been illegally washed, injected or drained.
[0065] The color deviation threshold ranges from 25 to 50, preferably 35; the grayscale deviation threshold ranges from 15 to 30, preferably 20.
[0066] When calculating the total color deviation and grayscale deviation, the control module also determines the matching degree between the current contour of the irreversible color-changing label 1 and the initial contour based on the contour information of the irreversible color-changing label 1 in the initial image and the current image. If the matching degree is lower than the preset integrity threshold, it is determined that the irreversible label has been torn off, covered, or replaced. When it is torn off, covered, or replaced, the control module also generates an early warning signal. When the early warning module receives the early warning signal, it issues an early warning. The control module uploads the record of the violation to the background monitoring platform through the communication module, realizing full traceability of the operation of the pharmacy warehouse 2.
[0067] The specific method for calculating the matching degree is as follows: Based on the initial image, the initial outline of the irreversible color-changing label is obtained, and the reference outline feature point set of the label is extracted based on the initial outline. Where n is the number of feature points. All represent the coordinates of the edge points of the initial contour; Based on the current image, obtain the current outline of the irreversible color-changing label and extract the real-time outline feature point set of the label. , Indicates the coordinates of the edge points of the current contour; Calculate the average Euclidean distance of the profile:
[0068] Calculate the contour matching degree:
[0069] in, For the maximum permissible profile deviation, The value range is from 0 to 1, when If the value is less than 0.7, it is determined that the label outline does not match, and the irreversible color-changing label has been torn off, replaced, or obscured.
[0070] The specific values of the edge point coordinates are determined according to the Cartesian coordinate system of the image pixels acquired by the recognition module, and are specifically defined as follows: Origin of coordinates: The top left pixel of the image acquired by the recognition module is taken as the origin of coordinates (0, 0); Coordinate axis directions: The horizontal direction to the right is the X-axis square, and the vertical direction downwards is the positive Y-axis direction; Coordinate units: The basic unit of coordinates is a single pixel in the image; Coordinate values: The feature point coordinates are the two-dimensional integer coordinates of the edge point in the image.
[0071] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, and is not intended to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions made by those skilled in the art to the technical solution of the present invention do not depart from the essence and scope of the technical solution of the present invention.
Claims
1. A medicine storage room handwashing status monitoring system based on irreversible color-changing tracing, characterized in that, include: An irreversible color-changing label is installed in a specific area inside the medicine storage chamber. The specific area satisfies the following conditions: when the medicine storage chamber is subjected to washing, infusion, or drainage operations, the medicine can come into contact with the irreversible color-changing label; and when the irreversible color-changing label comes into contact with the medicine, a permanent and irreversible color change occurs. The identification module is used to collect the color state of the irreversible color-changing label; The control module is used to calculate the total color deviation or grayscale deviation of the irreversible color-changing label based on the color state of the label. Based on the total color deviation or grayscale deviation, the control module determines whether the medicine tank has been illegally washed, filled, or drained.
2. The medicine storage and handwashing status monitoring system according to claim 1, characterized in that, The pharmacy handwashing status monitoring system also includes: The early warning module issues an early warning message when the control module determines that the medicine tank has been illegally washed, filled, or drained.
3. The medicine storage and handwashing status monitoring system according to claim 1, characterized in that, The pharmacy handwashing status monitoring system also includes: The communication module is used to upload records of unauthorized handwashing to the background monitoring platform, enabling full traceability of pharmacy operations.
4. The medicine storage and handwashing status monitoring system according to claim 1, characterized in that, The irreversible color-changing label is a water-sensitive label, a solvent-sensitive label, or a label that changes color when exposed to washing liquids; and the irreversible color-changing label is fixed inside the medicine compartment in a one-time anti-counterfeiting manner, and the fixing method includes dispensing, patching, coating, printing, and lamination.
5. The medicine storage and handwashing status monitoring system according to claim 1, characterized in that, Specific areas include: the inner wall of the medicine compartment, the bottom of the medicine compartment, the pipe interfaces, and areas that can be touched by the washing operation.
6. A method for monitoring the handwashing status of a medicine storage facility based on irreversible color-changing tracing, characterized in that, include: S1. Acquire initial images of multiple frames of irreversible color-changing labels and generate baseline grayscale values; S2. Acquire current images of multiple frames of irreversible color-changing labels and generate multiple current color values; S3. Based on the reference color value and multiple current color values, calculate the total color deviation and grayscale deviation for each frame; S4. If the total color deviation is greater than or equal to the color deviation threshold, or the grayscale deviation is greater than or equal to the grayscale deviation threshold, then this frame is marked as a single frame suspected of color change; if the number of consecutive single frames suspected of color change exceeds 5 frames, it is determined that the irreversible color change label has changed color, and the medicine warehouse has been illegally washed, filled or drained.
7. The method for monitoring the handwashing status of a medicine storage area according to claim 6, characterized in that, The specific method for generating the baseline grayscale value includes: setting the initial color data of the irreversible color-changing label as the initial image, continuously acquiring N frames of the initial image, where N ranges from 5 to 20; extracting the R, G, and B color components of the label region in each frame image, and calculating the arithmetic mean of the color values of the same channel in the N frames to obtain the baseline red component. , baseline green component , baseline blue component : At the same time, calculate the baseline gray value. : in This represents the R channel color component of the i-th frame label region of the initial image. This represents the G channel color component of the i-th frame label region of the initial image. This represents the B channel color component of the i-th frame label region of the initial image.
8. The method for monitoring the handwashing status of a medicine storage area according to claim 6, characterized in that, When calculating the total color deviation and grayscale deviation, the matching degree between the current contour of the irreversible color-changing label and the initial contour is determined based on the contour information of the irreversible color-changing label in the initial image and the contour information of the irreversible color-changing label in the current image. If the matching degree is lower than the preset integrity threshold, it is determined that the irreversible label has been torn off, covered or replaced. The specific method for calculating the matching degree is as follows: Based on the initial image, the initial outline of the irreversible color-changing label is obtained, and the reference outline feature point set of the label is extracted based on the initial outline. Where n is the number of feature points. All represent the coordinates of the edge points of the initial contour; Based on the current image, obtain the current outline of the irreversible color-changing label and extract the real-time outline feature point set of the label. , Indicates the coordinates of the edge points of the current contour; Calculate the average Euclidean distance of the profile: Calculate the contour matching degree: in, For the maximum permissible profile deviation, The value range is from 0 to 1, when If the value is less than 0.7, it is determined that the label outline does not match, and the irreversible color-changing label has been torn off, replaced, or obscured.
9. The method for monitoring the handwashing status of a medicine storage area according to claim 7, characterized in that, The specific method for calculating the total color deviation is as follows: in, This represents the color components of the R channel of the current image. This represents the color components of the G channel of the current image. This represents the color components of the B channel of the current image; The R channel color component of the label region in the i-th frame of the current image. This represents the G channel color component of the i-th frame label region of the current image. This represents the B channel color component of the i-th frame label region of the current image.
10. The method for monitoring the handwashing status of a medicine storage area according to claim 9, characterized in that, The specific method for calculating grayscale deviation is as follows: First, calculate the current grayscale value: Next, calculate the grayscale deviation: 。
Citation Information
Patent Citations
Monitoring and tracing intelligent management system for toxic and anesthetic drugs
CN120297871A
Comprehensive collaborative management system and method for taking and supplementing hemp essence medicine
CN120895195A