A method and system for detecting the dispensing of medicine in a smart medicine box

By combining pressure detection and radio frequency identification modules in the smart medicine box, and using time-division gating and impedance matching technology, the problems of low environmental adaptability and high false detection rate of existing smart medicine boxes have been solved, and high-precision medicine detection has been achieved.

CN123105075APending Publication Date: 2026-11-17EIGHTH AFFILIATED HOSPITAL SUN YAT SEN UNIV (SHENZHEN FUTIAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611060975.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-16
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing smart medicine boxes mainly use single-dimensional identification methods, such as visual recognition, RFID tag recognition, or gravity sensor recognition, for medicine dispensing and sensing. These methods suffer from low environmental adaptability and high false detection rates, making it difficult to meet the accuracy requirements for medicine dispensing behavior detection.

Method used

Multiple medicine slots are set inside the smart medicine box. Each medicine slot has a pressure detection module and an RF matching module at the bottom from bottom to top. The RF identification module identifies RF tags. By combining pressure detection and RF detection, time-division gating and impedance matching technology are used to suppress electromagnetic crosstalk and improve detection accuracy.

Benefits of technology

By combining pressure detection and radio frequency identification, the smart medicine box's adaptability to the environment is enhanced, misjudgments caused by a single detection method are avoided, the accuracy and reliability of medicine dispensing and detection are improved, and hardware costs and system complexity are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123105075A_ABST
    Figure CN123105075A_ABST
Patent Text Reader

Abstract

This application discloses a method and system for detecting medication dispensing in a smart medicine box, relating to the field of intelligent medical device control. Applied to a smart medicine box, the smart medicine box has multiple medicine slots arranged in a matrix, each slot capable of vertically holding a single medicine bottle for storing medication. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box also includes an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. The medication dispensing detection method includes: when the pressure output of the pressure detection module of any medicine slot is zero, and the RFID module loses the reading signal of the RFID tag of the corresponding medicine slot, outputting a medication dispensing trigger signal. By implementing this application, missed medication dispensing due to a single detection and identification method can be avoided, as well as misjudgments of medication dispensing from adjacent medicine slots can be avoided, thereby improving the accuracy of medication dispensing detection and meeting practical needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent medical device control, and in particular to a method and system for detecting the dispensing of medicine in an intelligent medicine box. Background Technology

[0002] In home medication scenarios, traditional medicine cabinets currently only provide physical storage and lack the ability to sense and record users' medication usage behavior, thus failing to record relevant data for home medication analysis. Therefore, it is necessary to study how medicine cabinets can sense and record users' medication usage to enable home medication analysis.

[0003] As an improvement over traditional medicine boxes, smart medicine boxes, through sensing and recording medication dispensing, can provide medication reminders, analyze user compliance, and record health data, thus enabling automatic early warnings and information pushes in emergencies, attracting widespread attention from academia and industry. However, existing smart medicine boxes mainly employ single-dimensional identification methods for medication dispensing and sensing, such as visual recognition, RFID tag identification, or gravity sensing. Visual recognition is significantly affected by lighting conditions and user status, posing a high probability of incorrect medication dispensing; RFID tag identification, when medicine compartments are closely arranged, can lead to overlapping radio frequency fields and cross-reading, resulting in incorrect medication dispensing; gravity sensing detects medication dispensing based on gravity, but is easily affected by environmental interference such as vibration or tilting. Clearly, existing smart medicine boxes suffer from low environmental adaptability and high false detection rates, failing to meet current accuracy requirements for medication dispensing detection. Therefore, improving the accuracy of medication dispensing detection in smart medicine boxes remains a pressing technical problem to be solved. Summary of the Invention

[0004] This application provides a method and system for detecting the dispensing of medicine in a smart medicine box, in order to solve the technical problem that the accuracy of the dispensing detection in existing smart medicine boxes cannot meet the actual needs.

[0005] According to a first aspect of the embodiments of this application, a method for detecting the dispensing of medicine in a smart medicine box is provided. The smart medicine box has multiple medicine slots arranged in a matrix inside, and each medicine slot can vertically hold a single medicine bottle for storing medicine. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box is also provided with an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. The drug detection method specifically includes: When the pressure output of the pressure detection module of any medicine tank is zero and the radio frequency identification module loses the reading signal of the RFID tag of the corresponding medicine tank, a medicine dispensing trigger signal is output.

[0006] This application utilizes a smart medicine box with multiple medicine slots arranged in a matrix, each capable of vertically holding a single medicine bottle. An RFID tag is affixed to the bottom of each bottle. From bottom to top, a pressure detection module and an RFID matching module are installed at the bottom of each medicine slot. Furthermore, an RFID module within the smart medicine box can identify and read the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. When the pressure output of the pressure detection module in any medicine slot is detected to be zero, and the RFID module loses the reading signal of the corresponding medicine slot's RFID tag, a medicine dispensing trigger signal is output. The cooperation between the pressure detection module and the RFID matching module in the smart medicine box avoids missed dispensing due to a single detection and identification method, enhancing environmental adaptability. Simultaneously, the separate settings for pressure detection and RFID detection for each medicine slot and corresponding medicine bottle allow for separate dispensing detection for each slot, avoiding misjudgments of dispensing from adjacent slots, thereby improving the accuracy of medicine dispensing detection and meeting practical needs.

[0007] In some embodiments of this application, the radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix; The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

[0008] This application incorporates an RFID module with an RFID switch matrix and an RFID reader electrically connected to the switch matrix. The RFID switch matrix performs time-division multiplexing of the RFID matching module for each medicine dispenser. This allows the selected RFID matching module to respond to the RFID reader's RFID read command by issuing an activation signal to activate the corresponding RFID tag. The corresponding RFID tag then sends a feedback signal from the activation signal to the RFID reader for parsing and identification. This time-division multiplexing mechanism, using the RFID switch matrix to select each RFID matching module, allows multiple medicine dispensers to share the RFID reader, reducing hardware costs and system complexity. Furthermore, time-division multiplexing avoids identification anomalies caused by the RFID reader parsing multiple activation signals, improving the stability and reliability of RFID and thus enhancing the accuracy of medicine dispensing detection, meeting practical needs.

[0009] In some embodiments of this application, the radio frequency matching module of each drug tank includes a loop antenna and an impedance matching circuit; The loop antenna is used to receive the radio frequency reading command from the radio frequency reader, send an activation signal to the corresponding radio frequency tag to activate the corresponding radio frequency tag, and send the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader to identify and read the corresponding radio frequency tag. The impedance matching circuit is used to adjust the impedance of the loop antenna so as to maintain maximum power transmission between the loop antenna and the radio frequency reader.

[0010] This application incorporates a loop antenna and impedance matching circuit in the RF matching module of each medicine dispenser. The loop antenna receives RF read commands from the RF reader, sends an activation signal to the corresponding RF tag to activate it, and sends the feedback signal from the RF tag in response to the activation signal back to the RF reader for identification and reading. The impedance matching circuit adjusts the impedance of the loop antenna to maintain maximum power transmission between the loop antenna and the RF reader. By using the loop antenna as an intermediate station between the RF reader and the RF tag to transmit relevant information, and by adjusting the impedance of the loop antenna to maintain maximum power transmission between the loop antenna and the RF reader, reflection loss during transmission of the activation and feedback signals is reduced, improving the energy coupling efficiency between the loop antenna and the RF reader. This increases the activation distance and identification sensitivity of the RF tag, meeting engineering requirements and improving the stability and reliability of RF identification, thereby enhancing the accuracy of medicine detection and fulfilling practical needs.

[0011] In some embodiments of this application, a metal sensing ring is also provided at the bottom of each medicine bottle; The metal sensing ring is used to sense the activation signal emitted by the ring antenna and generate a reverse magnetic field. Through the coupling of the reverse magnetic field and the positive magnetic field corresponding to the activation signal, the activation signal is focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle.

[0012] This application sets a metal induction ring at the bottom of each medicine bottle. The metal induction ring senses the activation signal emitted by the loop antenna and generates a reverse magnetic field. The reverse magnetic field couples with the positive magnetic field of the activation signal, focusing the activation signal on the area where the RFID tag is located at the bottom of the corresponding medicine bottle. This suppresses electromagnetic crosstalk between adjacent medicine slots, avoids misjudgment of medicine dispensing from adjacent slots, and improves the accuracy of medicine dispensing detection to meet practical needs.

[0013] In some embodiments of this application, a ferrite shielding sheet is also provided above the loop antenna of each drug tank; The ferrite shield is used to guide the activation signal emitted by the loop antenna into the ferrite shield, so as to focus the activation signal onto the area where the corresponding radio frequency tag is located at the bottom of the medicine bottle by reducing the magnetic loss of the activation signal entering the ferrite shield.

[0014] This application adds a ferrite shield above the loop antenna of each medicine dispenser. The activation signal emitted by the loop antenna is guided into the ferrite shield by the ferrite shield. By reducing the magnetic loss of the activation signal entering the ferrite shield, the activation signal can be focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle. This suppresses electromagnetic crosstalk between adjacent medicine dispensers, avoids misjudgment of medicine dispensing from adjacent medicine dispensers, and improves the accuracy of medicine dispensing detection, thus meeting practical needs.

[0015] In some embodiments of this application, the step of outputting a drug dispensing trigger signal when the pressure output of any drug tank pressure detection module is zero and the radio frequency identification module loses the read signal of the corresponding drug tank's RFID tag specifically includes: Each medicine tank is polled and detected at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the duration of the loss of the reading signal of the RFID tag of the corresponding medicine tank by the RFID module is longer than a preset second threshold, a medicine dispensing trigger signal is output.

[0016] This application performs polling detection on each medicine tank through a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the RFID module loses the read signal of the RFID tag of the corresponding medicine tank for a duration longer than a preset second threshold, a medicine dispensing trigger signal is output. By combining pressure detection and RFID detection, the misjudgment of medicine dispensing caused by a single detection and identification method is avoided. Combined with polling detection, the anti-interference ability and reliability of medicine dispensing detection can be further improved, the adaptability to the environment can be enhanced, and the accuracy of medicine dispensing detection can be improved to meet actual needs.

[0017] In some embodiments of this application, the step of outputting a drug dispensing trigger signal when the pressure output of any drug tank pressure detection module is zero and the radio frequency identification module loses the read signal of the corresponding drug tank's RFID tag specifically includes: When the pressure output of any medicine tank pressure detection module suddenly drops to zero, the current polling cycle is interrupted, the radio frequency identification module is driven to confirm the reading signal of the radio frequency tag of the medicine tank whose pressure output suddenly drops to zero, and when the reading signal is lost, a medicine dispensing trigger signal is output.

[0018] When the pressure output of any medicine tank's pressure detection module suddenly drops to zero, this application, during the current polling cycle, drives the RFID module to confirm the read signal of the RFID tag of the medicine tank whose pressure output suddenly dropped to zero. If the read signal is lost, a medicine retrieval trigger signal is output. Through the interrupt-type RFID trigger mechanism, the sensitivity to sudden situations can be improved. By combining pressure detection and RFID detection, the misjudgment of medicine retrieval caused by a single detection and identification method is avoided, the reliability of medicine retrieval detection is improved, the adaptability to the environment is enhanced, and the accuracy of medicine retrieval detection is improved to meet practical needs.

[0019] According to a second aspect of the embodiments of this application, a medication detection system for a smart medicine box is provided, applied to a smart medicine box. The smart medicine box has multiple medicine slots arranged in a matrix inside, and each medicine slot can vertically hold a single medicine bottle for storing medicines; each medicine bottle has an RFID tag at its bottom; each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom; the smart medicine box is also provided with an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot; The drug dispensing detection system includes a drug dispensing detection module; the drug dispensing detection module is used to output a drug dispensing trigger signal when the radio frequency identification module detects that the pressure output of the pressure detection module of any drug tank is zero and the radio frequency identification module of the corresponding drug tank loses the reading signal of the corresponding radio frequency tag.

[0020] In some embodiments of this application, the radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix; The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

[0021] In some embodiments of this application, the radio frequency matching module of each drug tank includes a loop antenna and an impedance matching circuit; The loop antenna is used to receive the radio frequency reading command from the radio frequency reader, send an activation signal to the corresponding radio frequency tag to activate the corresponding radio frequency tag, and send the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader to identify and read the corresponding radio frequency tag. The impedance matching circuit is used to adjust the impedance of the loop antenna so as to maintain maximum power transmission between the loop antenna and the radio frequency reader.

[0022] In some embodiments of this application, a metal sensing ring is also provided at the bottom of each medicine bottle; The metal sensing ring is used to sense the activation signal emitted by the ring antenna and generate a reverse magnetic field. Through the coupling of the reverse magnetic field and the positive magnetic field corresponding to the activation signal, the activation signal is focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle.

[0023] In some embodiments of this application, a ferrite shielding sheet is also provided above the loop antenna of each drug tank; The ferrite shield is used to guide the activation signal emitted by the loop antenna into the ferrite shield, so as to focus the activation signal onto the area where the corresponding radio frequency tag is located at the bottom of the medicine bottle by reducing the magnetic loss of the activation signal entering the ferrite shield.

[0024] In some embodiments of this application, the drug detection module includes a polling detection unit; The polling detection unit is used to poll and detect each medicine tank at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the radio frequency identification module loses the reading signal of the radio frequency tag of the corresponding medicine tank for a duration longer than a preset second threshold, the unit outputs a medicine dispensing trigger signal.

[0025] In some embodiments of this application, the drug dispensing detection module includes an interruption detection unit; The interruption detection unit is used to interrupt the current polling cycle when the pressure output of the pressure detection module of any medicine tank suddenly drops to zero, drive the radio frequency identification module to confirm the reading signal of the radio frequency tag of the medicine tank whose pressure output suddenly drops to zero, and output a medicine dispensing trigger signal when the reading signal is lost.

[0026] This application utilizes a smart medicine box with multiple medicine slots arranged in a matrix, each capable of vertically holding a single medicine bottle. An RFID tag is affixed to the bottom of each bottle. From bottom to top, a pressure detection module and an RFID matching module are installed at the bottom of each medicine slot. Furthermore, an RFID module within the smart medicine box can identify and read the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. When the pressure output of the pressure detection module in any medicine slot is detected to be zero, and the RFID module loses the reading signal of the corresponding medicine slot's RFID tag, a medicine dispensing trigger signal is output. The cooperation between the pressure detection module and the RFID matching module in the smart medicine box avoids missed dispensing due to a single detection and identification method, enhancing environmental adaptability. Simultaneously, the separate settings for pressure detection and RFID detection for each medicine slot and corresponding medicine bottle allow for separate dispensing detection for each slot, avoiding misjudgments of dispensing from adjacent slots, thereby improving the accuracy of medicine dispensing detection and meeting practical needs. Attached Figure Description

[0027] Figure 1 This is a flowchart illustrating a method for detecting the dispensing of medicine in a smart medicine box according to certain embodiments of this application. Figure 2 This is a top view schematic diagram of the overall internal structure of a smart medicine box according to certain embodiments of this application; Figure 3 This is a cross-sectional view of a stacked structure of a medicine tank and a medicine bottle as shown in some embodiments of this application; Figure 4 This is a schematic diagram illustrating the magnetic field emitted by the loop antenna under two different conditions in certain embodiments of this application. Figure 5 This is a modular structure diagram of a smart medicine box dispensing and detection system according to certain embodiments of this application. Detailed Implementation

[0028] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below in conjunction with the accompanying drawings are exemplary and are only used to explain some embodiments of this application, and should not be construed as limiting the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments shown in this application without inventive effort are within the protection scope of this application.

[0029] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, unless otherwise explicitly specified, "a plurality of" or "several" means two or more.

[0030] Existing smart medicine boxes primarily employ single-dimensional identification methods for medication dispensing and sensing, such as visual recognition, RFID tag identification, or gravity sensing. Visual recognition is significantly affected by lighting conditions and user status, posing a considerable risk of incorrect medication dispensing. RFID tag identification, when medicine compartments are closely spaced, can lead to overlapping radio frequency fields and cross-reading, resulting in incorrect medication dispensing. Gravity sensing detects medication dispensing based on gravity, but is susceptible to environmental interference such as vibration or tilting. Clearly, existing smart medicine boxes suffer from low environmental adaptability and high false detection rates, failing to meet current accuracy requirements for medication dispensing detection. Therefore, improving the accuracy of medication dispensing detection in smart medicine boxes remains a pressing technical challenge.

[0031] Based on the above technical background, please refer to Figure 1 This application provides a method for detecting medication dispensing in a smart medicine box. The smart medicine box has multiple medicine slots arranged in a matrix inside, and each medicine slot can vertically hold a single medicine bottle for storing medicine. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box also has an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot.

[0032] Preferably, the dimensions of the intelligent medicine box are 400mm × 300mm × 80mm, with the internal medicine compartments arranged in a matrix of 6 rows × 4 columns (a total of 24 compartments). The distance between the compartments (the distance between the center points of two compartments) is 60mm. For further details, please refer to [link to relevant documentation]. Figure 2 This is a top view of the overall internal structure of the smart medicine box under this preferred specification. The pressure detection module and the radio frequency matching module in each medicine tank are installed with the center point of the corresponding medicine tank as the installation center point to ensure that the pressure detection module and the radio frequency matching module can perform optimally.

[0033] Specifically, please see Figure 3 This is a cross-sectional view of the stacked structure of a single medicine tank and its corresponding medicine bottle, including the stacked structure of the medicine bottle: medicine bottle 31, RFID tag 32 located at the bottom of medicine bottle 31, and metal sensing ring 36 located below and in close contact with RFID tag 32; and the stacked structure of the medicine tank: tray base plate 33, in which the pressure detection module is embedded, with its height flush with the height of the tray base plate, hereinafter referred to as 33; loop antenna 34, the lower surface of which is bonded to the bearing surface of the pressure detection module 33; ferrite shielding sheet 35, the lower surface of which is attached to the upper surface of the loop antenna 34; wherein, the stacked structure of the medicine tank should be controlled within 6mm to ensure Figure 3The overall stacked structure does not exceed 80mm in height of the smart medicine box; the loop antenna 34 is also electrically connected to the corresponding impedance matching circuit (not shown in the diagram); the dashed gaps on both sides of the tray base 33 indicate the boundaries of the medicine trough. It is easy to understand that, in order to correctly, clearly, and unambiguously represent the stacked structure of the medicine trough and medicine bottle in the smart medicine box provided in this application, Figure 3 None of the parts are drawn according to the actual specifications or the scale corresponding to the actual specifications; all are based on the preferred specifications given in this application.

[0034] Specifically, the pressure detection module 33 can be a pressure sensor, preferably an HX711 weighing module with a range of 0-500g, an accuracy of 0.1g, and a sampling frequency of 10Hz.

[0035] In some embodiments of this application, the radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix; The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

[0036] Specifically, the RF switch matrix includes a multiplexer and at least one 1:8 RF switch chip for time-division multiplexing of the loop antenna 34 in the RF matching module of each medicine tank; the RF reader is connected to the output of the RF switch matrix and is used to send an activation signal to the loop antenna 34, receive the feedback signal of the RF tag fed back by the loop antenna, and parse it to identify and read the corresponding RF tag.

[0037] This application incorporates an RFID module with an RFID switch matrix and an RFID reader electrically connected to the switch matrix. The RFID switch matrix performs time-division multiplexing of the RFID matching module for each medicine dispenser. This allows the selected RFID matching module to respond to the RFID reader's RFID read command by issuing an activation signal to activate the corresponding RFID tag. The corresponding RFID tag then sends a feedback signal from the activation signal to the RFID reader for parsing and identification. This time-division multiplexing mechanism, using the RFID switch matrix to select each RFID matching module, allows multiple medicine dispensers to share the RFID reader, reducing hardware costs and system complexity. Furthermore, time-division multiplexing avoids identification anomalies caused by the RFID reader parsing multiple activation signals, improving the stability and reliability of RFID and thus enhancing the accuracy of medicine dispensing detection, meeting practical needs.

[0038] In some embodiments of this application, the radio frequency matching module of each drug tank includes a loop antenna and an impedance matching circuit; The loop antenna is used to receive the radio frequency reading command from the radio frequency reader, send an activation signal to the corresponding radio frequency tag to activate the corresponding radio frequency tag, and send the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader to identify and read the corresponding radio frequency tag. The impedance matching circuit is used to adjust the impedance of the loop antenna so as to maintain maximum power transmission between the loop antenna and the radio frequency reader.

[0039] Specifically, in the RF matching module, the loop antenna 34 has a double-layer spiral structure, with a preferred specification of 0.2mm line width, 8-12 turns, and a resonant frequency of 13.56Hz. It has reserved Pi-type matching network pads to adjust the antenna impedance to 50Ω. The corresponding impedance matching circuit is a Pi-type LC matching network, which is used to adjust the antenna impedance to 50Ω pure resistivity at 13.56Hz. Its function is to reduce reflected power, increase read / write distance, and ensure impedance consistency of the RF switch matrix during multi-channel switching.

[0040] This application incorporates a loop antenna and impedance matching circuit in the RF matching module of each medicine dispenser. The loop antenna receives RF read commands from the RF reader, sends an activation signal to the corresponding RF tag to activate it, and sends the feedback signal from the RF tag in response to the activation signal back to the RF reader for identification and reading. The impedance matching circuit adjusts the impedance of the loop antenna to maintain maximum power transmission between the loop antenna and the RF reader. By using the loop antenna as an intermediate station between the RF reader and the RF tag to transmit relevant information, and by adjusting the impedance of the loop antenna to maintain maximum power transmission between the loop antenna and the RF reader, reflection loss during transmission of the activation and feedback signals is reduced, improving the energy coupling efficiency between the loop antenna and the RF reader. This increases the activation distance and identification sensitivity of the RF tag, meeting engineering requirements and improving the stability and reliability of RF identification, thereby enhancing the accuracy of medicine detection and fulfilling practical needs.

[0041] In some embodiments of this application, a metal sensing ring is also provided at the bottom of each medicine bottle; The metal sensing ring is used to sense the activation signal emitted by the ring antenna and generate a reverse magnetic field. Through the coupling of the reverse magnetic field and the positive magnetic field corresponding to the activation signal, the activation signal is focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle.

[0042] Specifically, the metal sensing ring 36 is preferably a copper ring, and the difference between its outer diameter and the inner diameter of the loop antenna 34 is 0.5-2mm. When the medicine bottle is placed in the medicine tank, the metal sensing ring 36 senses the activation signal emitted by the loop antenna 34 and generates a corresponding reverse magnetic field, focusing the radio frequency energy on the area where the radio frequency tag is located, and preventing the magnetic field from spreading to adjacent medicine tanks.

[0043] This application sets a metal induction ring at the bottom of each medicine bottle. The metal induction ring senses the activation signal emitted by the loop antenna and generates a reverse magnetic field. The reverse magnetic field couples with the positive magnetic field of the activation signal, focusing the activation signal on the area where the RFID tag is located at the bottom of the corresponding medicine bottle. This suppresses electromagnetic crosstalk between adjacent medicine slots, avoids misjudgment of medicine dispensing from adjacent slots, and improves the accuracy of medicine dispensing detection to meet practical needs.

[0044] In some embodiments of this application, a ferrite shielding sheet is also provided above the loop antenna of each drug tank; The ferrite shield is used to guide the activation signal emitted by the loop antenna into the ferrite shield, so as to focus the activation signal onto the area where the corresponding radio frequency tag is located at the bottom of the medicine bottle by reducing the magnetic loss of the activation signal entering the ferrite shield.

[0045] Specifically, the preferred thickness of the ferrite shield 35 is 0.8-1.2 mm, and its planar dimensions should cover the entire bottom of the flask to absorb the leaked magnetic lines of force in the activation signal and further suppress electromagnetic crosstalk between adjacent flasks; furthermore, the ferrite shield 35 is made of manganese-zinc ferrite (Mn-Zn Ferrite) material.

[0046] This application adds a ferrite shield above the loop antenna of each medicine dispenser. The activation signal emitted by the loop antenna is guided into the ferrite shield by the ferrite shield. By reducing the magnetic loss of the activation signal entering the ferrite shield, the activation signal can be focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle. This suppresses electromagnetic crosstalk between adjacent medicine dispensers, avoids misjudgment of medicine dispensing from adjacent medicine dispensers, and improves the accuracy of medicine dispensing detection, thus meeting practical needs.

[0047] To illustrate the coupling principle of the loop antenna 34, the ferrite shield 35, and the metallic induction ring 36, please refer to [link to relevant documentation]. Figure 4 ;in, Figure 4 (a) shows a schematic diagram of the magnetic field emitted by the loop antenna 34 when the metal induction ring and ferrite shield are in place. Figure 4 (b) shows a schematic diagram of the magnetic field emitted by the loop antenna 34 when there is a metal induction ring and a ferrite shield; Figure 4 In (a) and (b), the blue and green arrows represent the magnetic field lines corresponding to the activation signal emitted by the antenna; Figure 4In (a) and (b), the black circles represent loop antennas; Figure 4 In (a) and (b), the yellow circles represent radio frequency tags; Figure 4 In (a), the red circles represent the RFID tags of medicine bottles in adjacent medicine dispensers that are causing crosstalk. Figure 4 (b) The green circles in the diagram represent the RFID tags of medicine bottles in adjacent medicine dispensers that do not generate crosstalk; Figure 4 (b) The brown circle represents the metal induction ring 36. Figure 4 (b) The ferrite shield is not shown. It is easy to see that without the metal induction ring and ferrite shield, the magnetic field corresponding to the activation signal emitted by the loop antenna 34 is divergent, causing the loop antenna 34 to not only read the RFID tags of the medicine bottles in its own tank but also those of adjacent tanks, thus causing electromagnetic crosstalk. With the metal induction ring and ferrite shield, the magnetic field corresponding to the activation signal emitted by the loop antenna 34 is convergent, and the alternating magnetic field generated by the activation signal first passes through the ferrite shield 3. 5. Due to the high permeability of ferrite, most of the magnetic flux is confined inside the ferrite, and the leaked magnetic lines of force are consumed by magnetic loss. When they reach the bottom of the medicine bottle, the metal induction ring 36 induces eddy currents and generates a reverse magnetic field, which is superimposed on the positive magnetic field corresponding to the activation signal. A strong coupling field is formed in the region from the loop antenna 34 to the metal induction ring 36, preventing the further diffusion of the magnetic field and forming a focus. Therefore, it will not read the radio frequency tags of medicine bottles in adjacent medicine slots, and will not cause electromagnetic crosstalk that could lead to misjudgment of medicine dispensing from adjacent medicine slots.

[0048] Please see Figure 1 The method for detecting the dispensing of medicine in a smart medicine box provided in this application includes step S101, the specific steps of which are as follows: Step S101: When the pressure output of the pressure detection module of any medicine tank is zero and the radio frequency identification module loses the reading signal of the radio frequency tag of the corresponding medicine tank, output a medicine dispensing trigger signal.

[0049] In some embodiments of this application, the step of outputting a drug dispensing trigger signal when the pressure output of any drug tank pressure detection module is zero and the radio frequency identification module loses the read signal of the corresponding drug tank's RFID tag specifically includes: Each medicine tank is polled and detected at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the duration of the loss of the reading signal of the RFID tag of the corresponding medicine tank by the RFID module is longer than a preset second threshold, a medicine dispensing trigger signal is output.

[0050] Specifically, the preset polling period is preferably 100ms; the preset first threshold is preferably 200ms, i.e., two polling periods; and the preset second threshold is preferably 100ms, i.e., one polling period.

[0051] This application performs polling detection on each medicine tank through a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the RFID module loses the read signal of the RFID tag of the corresponding medicine tank for a duration longer than a preset second threshold, a medicine dispensing trigger signal is output. By combining pressure detection and RFID detection, the misjudgment of medicine dispensing caused by a single detection and identification method is avoided. Combined with polling detection, the anti-interference ability and reliability of medicine dispensing detection can be further improved, the adaptability to the environment can be enhanced, and the accuracy of medicine dispensing detection can be improved to meet actual needs.

[0052] In some embodiments of this application, the step of outputting a drug dispensing trigger signal when the pressure output of any drug tank pressure detection module is zero and the radio frequency identification module loses the read signal of the corresponding drug tank's RFID tag specifically includes: When the pressure output of any medicine tank pressure detection module suddenly drops to zero, the current polling cycle is interrupted, the radio frequency identification module is driven to confirm the reading signal of the radio frequency tag of the medicine tank whose pressure output suddenly drops to zero, and when the reading signal is lost, a medicine dispensing trigger signal is output.

[0053] When the pressure output of any medicine tank's pressure detection module suddenly drops to zero, this application, during the current polling cycle, drives the RFID module to confirm the read signal of the RFID tag of the medicine tank whose pressure output suddenly dropped to zero. If the read signal is lost, a medicine retrieval trigger signal is output. Through the interrupt-type RFID trigger mechanism, the sensitivity to sudden situations can be improved. By combining pressure detection and RFID detection, the misjudgment of medicine retrieval caused by a single detection and identification method is avoided, the reliability of medicine retrieval detection is improved, the adaptability to the environment is enhanced, and the accuracy of medicine retrieval detection is improved to meet practical needs.

[0054] Compared to existing technologies, this application features a smart medicine box with multiple medicine slots arranged in a matrix, each capable of vertically holding a single medicine bottle. An RFID tag is placed at the bottom of each medicine bottle. A pressure detection module and an RFID matching module are installed at the bottom of each medicine slot from bottom to top. Furthermore, an RFID module is incorporated within the smart medicine box, capable of reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. When the pressure output of the pressure detection module in any medicine slot is detected to be zero, and the RFID module loses its signal to read the RFID tag of the corresponding medicine slot, a medicine dispensing trigger signal is output. This combination of pressure detection and RFID matching modules in the smart medicine box avoids missed dispensing due to a single detection method, enhancing environmental adaptability. Simultaneously, the separate pressure and RFID detection settings for each medicine slot and corresponding medicine bottle allow for separate dispensing detection for each slot, preventing misjudgments from adjacent slots and thus improving the accuracy of dispensing detection to meet practical needs.

[0055] For a method corresponding to the one described above, please refer to [link / reference]. Figure 5 This application provides a medication detection system for a smart medicine box, which is applied to a smart medicine box. The smart medicine box has multiple medicine slots arranged in a matrix inside, and each medicine slot can vertically hold a single medicine bottle for storing medicine. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box is also equipped with an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. The drug dispensing detection system includes a drug dispensing detection module 510; the drug dispensing detection module 510 is used to output a drug dispensing trigger signal when the radio frequency identification module detects that the pressure output of the pressure detection module of any drug tank is zero and the radio frequency identification module of the corresponding drug tank loses the reading signal of the corresponding radio frequency tag.

[0056] In some embodiments of this application, the radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix; The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

[0057] In some embodiments of this application, the radio frequency matching module of each drug tank includes a loop antenna and an impedance matching circuit; The loop antenna is used to receive the radio frequency reading command from the radio frequency reader, send an activation signal to the corresponding radio frequency tag to activate the corresponding radio frequency tag, and send the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader to identify and read the corresponding radio frequency tag. The impedance matching circuit is used to adjust the impedance of the loop antenna so as to maintain maximum power transmission between the loop antenna and the radio frequency reader.

[0058] In some embodiments of this application, a metal sensing ring is also provided at the bottom of each medicine bottle; The metal sensing ring is used to sense the activation signal emitted by the ring antenna and generate a reverse magnetic field. Through the coupling of the reverse magnetic field and the positive magnetic field corresponding to the activation signal, the activation signal is focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle.

[0059] In some embodiments of this application, a ferrite shielding sheet is also provided above the loop antenna of each drug tank; The ferrite shield is used to guide the activation signal emitted by the loop antenna into the ferrite shield, so as to focus the activation signal onto the area where the corresponding radio frequency tag is located at the bottom of the medicine bottle by reducing the magnetic loss of the activation signal entering the ferrite shield.

[0060] In some embodiments of this application, the drug detection module 510 includes a polling detection unit 511; The polling detection unit 511 is used to poll and detect each medicine tank at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the radio frequency identification module loses the reading signal of the radio frequency tag of the corresponding medicine tank for a duration longer than a preset second threshold, the unit outputs a medicine dispensing trigger signal.

[0061] In some embodiments of this application, the drug detection module 510 includes an interruption detection unit 512; The interruption detection unit 512 is used to interrupt the current polling cycle when the pressure output of the pressure detection module of any medicine tank suddenly drops to zero, drive the radio frequency identification module to confirm the reading signal of the radio frequency tag of the medicine tank whose pressure output suddenly drops to zero, and output a medicine retrieval trigger signal when the reading signal is lost.

[0062] This application utilizes a smart medicine box with multiple medicine slots arranged in a matrix, each capable of vertically holding a single medicine bottle. An RFID tag is affixed to the bottom of each bottle. From bottom to top, a pressure detection module and an RFID matching module are installed at the bottom of each medicine slot. Furthermore, an RFID module within the smart medicine box can identify and read the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. When the pressure output of the pressure detection module in any medicine slot is detected to be zero, and the RFID module loses the reading signal of the corresponding medicine slot's RFID tag, a medicine dispensing trigger signal is output. The cooperation between the pressure detection module and the RFID matching module in the smart medicine box avoids missed dispensing due to a single detection and identification method, enhancing environmental adaptability. Simultaneously, the separate settings for pressure detection and RFID detection for each medicine slot and corresponding medicine bottle allow for separate dispensing detection for each slot, avoiding misjudgments of dispensing from adjacent slots, thereby improving the accuracy of medicine dispensing detection and meeting practical needs.

[0063] It should be understood that the system provided in this application corresponds to the aforementioned method. The intelligent medicine box dispensing detection system provided in this application can realize the intelligent medicine box dispensing detection method provided in any of the embodiments of this application.

[0064] Adaptively, embodiments of this application also provide a computer device and a computer-readable storage medium.

[0065] The computer device includes: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; The processor executes the computer program to implement a method for detecting the dispensing of medicine in an intelligent medicine box, as described in this application.

[0066] The computer-readable storage medium stores multiple instructions, which are adapted for loading by a processor to execute a method for detecting the dispensing of medicine in a smart medicine box according to this application.

[0067] The above description represents some embodiments of this application, providing a further detailed explanation of the purpose, technical solution, and beneficial effects of this application. It should be understood that the above-described embodiments of this application should not be construed as limiting this application. In particular, any changes, modifications, equivalent substitutions, and variations made by those skilled in the art within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for detecting the dispensing of medicine in a smart medicine box, characterized in that, This invention is applied to a smart medicine box, which has multiple medicine slots arranged in a matrix inside. Each medicine slot can vertically hold a single medicine bottle for storing medicines. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box is also equipped with an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. The drug detection method specifically includes: When the pressure output of the pressure detection module of any medicine tank is zero and the radio frequency identification module loses the reading signal of the RFID tag of the corresponding medicine tank, a medicine dispensing trigger signal is output.

2. The method for detecting the dispensing of medicine in a smart medicine box according to claim 1, characterized in that, The radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix. The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

3. The method for detecting the dispensing of medicine in an intelligent medicine box according to claim 2, characterized in that, Each medicine tank's radio frequency matching module includes a loop antenna and impedance matching circuitry; The loop antenna is used to receive the radio frequency reading command from the radio frequency reader, send an activation signal to the corresponding radio frequency tag to activate the corresponding radio frequency tag, and send the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader to identify and read the corresponding radio frequency tag. The impedance matching circuit is used to adjust the impedance of the loop antenna so as to maintain maximum power transmission between the loop antenna and the radio frequency reader.

4. The method for detecting the dispensing of medicine in an intelligent medicine box according to claim 3, characterized in that, Each medicine bottle also has a metal sensor ring at the bottom; The metal sensing ring is used to sense the activation signal emitted by the ring antenna and generate a reverse magnetic field. Through the coupling of the reverse magnetic field and the positive magnetic field corresponding to the activation signal, the activation signal is focused on the area where the RFID tag is located at the bottom of the corresponding medicine bottle.

5. A method for detecting the dispensing of medicine in an intelligent medicine box according to claim 3 or 4, characterized in that, Each medicine tank also has a ferrite shielding plate above its loop antenna; The ferrite shield is used to guide the activation signal emitted by the loop antenna into the ferrite shield, so as to focus the activation signal onto the area where the corresponding radio frequency tag is located at the bottom of the medicine bottle by reducing the magnetic loss of the activation signal entering the ferrite shield.

6. The method for detecting the dispensing of medicine in a smart medicine box according to claim 1, characterized in that, When the pressure output of the pressure detection module of any medicine tank is zero and the radio frequency identification module loses the reading signal of the RFID tag of the corresponding medicine tank, a medicine dispensing trigger signal is output, specifically including: Each medicine tank is polled and detected at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the duration of the loss of the reading signal of the RFID tag of the corresponding medicine tank by the RFID module is longer than a preset second threshold, a medicine dispensing trigger signal is output.

7. The method for detecting the dispensing of medicine in an intelligent medicine box according to claim 6, characterized in that, When the pressure output of the pressure detection module of any medicine tank is zero and the radio frequency identification module loses the reading signal of the RFID tag of the corresponding medicine tank, a medicine dispensing trigger signal is output, specifically including: When the pressure output of any medicine tank pressure detection module suddenly drops to zero, the current polling cycle is interrupted, the radio frequency identification module is driven to confirm the reading signal of the radio frequency tag of the medicine tank whose pressure output suddenly drops to zero, and when the reading signal is lost, a medicine dispensing trigger signal is output.

8. A medication detection system for an intelligent medicine box, characterized in that, This invention is applied to a smart medicine box, which has multiple medicine slots arranged in a matrix inside. Each medicine slot can vertically hold a single medicine bottle for storing medicines. Each medicine bottle has an RFID tag at its bottom. Each medicine slot has a pressure detection module and an RFID matching module arranged from bottom to top at its bottom. The smart medicine box is also equipped with an RFID module for identifying and reading the RFID tag of the corresponding medicine bottle through the RFID matching module of each medicine slot. The drug dispensing detection system includes a drug dispensing detection module; the drug dispensing detection module is used to output a drug dispensing trigger signal when the radio frequency identification module detects that the pressure output of the pressure detection module of any drug tank is zero and the radio frequency identification module of the corresponding drug tank loses the reading signal of the corresponding radio frequency tag.

9. The intelligent medicine box dispensing and detection system according to claim 8, characterized in that, The radio frequency identification module includes a radio frequency switch matrix and a radio frequency reader / writer; the radio frequency reader / writer is electrically connected to the radio frequency switch matrix. The radio frequency switch matrix is ​​used to time-division select the radio frequency matching module of each medicine tank, so that the selected radio frequency matching module responds to the radio frequency reading command of the radio frequency reader and sends an activation signal to activate the corresponding radio frequency tag, and sends the feedback signal of the corresponding radio frequency tag in response to the activation signal to the radio frequency reader for parsing, so as to identify and read the corresponding radio frequency tag.

10. The intelligent medicine box dispensing and detection system according to claim 8, characterized in that, The drug detection module includes a polling detection unit; The polling detection unit is used to poll and detect each medicine tank at a preset polling cycle. When the pressure output of the pressure detection module of any medicine tank is zero for a duration longer than a preset first threshold, and the radio frequency identification module loses the reading signal of the radio frequency tag of the corresponding medicine tank for a duration longer than a preset second threshold, the unit outputs a medicine dispensing trigger signal.