Intelligent medicine management system and method based on use intentions

Through the combination of smart pill box and mobile APP, using infrared detection and network communication, combined with classification model and collaborative filtering model, personalized medication management for elderly patients with chronic diseases is realized, solving the problems of low medication compliance and poor system interaction, and improving the efficiency of medication management. Medication safety and management efficiency.

CN118553376APending Publication Date: 2024-08-27HEFEI INSTITUTE OF PHYSICAL SCIENCE CHINESE ACADEMY OF SCIENCES

Patent Information

Application Number
CN202410885202.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Elderly patients with chronic diseases have low medication compliance, which leads to an increased risk of adverse drug reactions and disease complications. The existing drug management system lacks real-time monitoring and feedback mechanisms, and the user experience is relatively traditional and interactive, making it difficult to achieve dynamic optimization.

Method used

Design an intelligent drug management system based on willingness to use, including a smart pill box, mobile APP, cloud backend service and drug management system WEB side. Through the doctor's input of prescriptions, the combination of smart pill box and APP, using infrared detection, network communication and Data analysis provides personalized medication reminders and records, and combines classification models and collaborative filtering models to optimize medication plans.

Benefits of technology

It improves the accuracy of medication management and user compliance, ensures that users take medications on time, optimizes medication plans through big data analysis, enhances medication safety and effectiveness, reduces data deviation, and provides personalized and detailed medication recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553376A
    Figure CN118553376A
Patent Text Reader

Abstract

The invention provides an intelligent medicine management system and method based on use willingness, the system comprises an intelligent medicine box, a mobile phone APP, a cloud background service, a medicine management system WEB terminal and a cloud database, a doctor inputs a medicine prescription in the system, and the intelligent medicine box is matched for use, so that the accuracy of medicine management and user compliance are improved. According to the invention, the medication safety and effectiveness can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of Internet of Things, machine learning and drug management, and specifically relates to an intelligent drug management system and method based on usage intention. Background Art

[0002] With the overall improvement of information technology, chronic disease management has entered a new stage of development. According to the survey, most elderly people suffer from at least one chronic disease, and elderly patients with chronic diseases need to take medication for a long time or even for life. The average number of medications taken by elderly patients with chronic diseases reached 9.1, and 60.2% of them took multiple medications. However, due to the decline in memory and cognition caused by aging, the medication compliance of elderly patients with chronic diseases is much lower than that of ordinary chronic disease patients, about 50%, which increases the risk of adverse drug reactions and disease complications.

[0003] Studies have shown that elderly patients with chronic diseases often ignore the medication guidance of professionals, change the dosage of drugs based on their own experience, or even stop taking the drugs without authorization. During hospitalization, it is difficult to ensure that oral medications are taken immediately due to the need for other examinations and treatments, as well as the special requirements for taking medications. Some nursing staff may miss or mis-administer medications due to busy clinical work or weak sense of responsibility. Therefore, the medication safety of elderly patients with chronic diseases is facing severe challenges.

[0004] Therefore, many medical institutions have begun to build Internet drug management platforms, which can not only effectively alleviate the medication problems of patients with chronic diseases, but also provide patients with high-quality services, enabling them to manage their drugs in a more efficient way. However, the general drug management system has the following main problems: it relies on the self-consciousness of users, the reminder method is single and easy to be ignored; it lacks real-time monitoring and feedback mechanisms, it is difficult to track the user's medication situation, and the feedback on drug effects and side effects is delayed; the data analysis ability is limited, it is difficult to achieve dynamic optimization, and it relies on regular doctor examinations and manual adjustment plans; the user experience is relatively traditional, the interactivity is poor, and the user participation is low; doctors mainly rely on face-to-face communication and regular examinations, and it is difficult to grasp the patient's medication situation and effect in a timely manner.

[0005] For example, Chinese patent application CN117711638A discloses an intelligent drug management system and management method, which can realize automatic management of drugs, remind patients to take medicine on time, and record the patient's medication situation. Under this method, users can only passively accept the medication plan issued by the doctor, and cannot provide feedback based on the user's medicine box usage and health data, so as to optimize the medication plan and reminder method. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides an intelligent drug management system and method based on usage intention.

[0007] In order to achieve the above object, the present invention adopts the following technical solution: An intelligent drug management system based on intention to use, in which a doctor inputs drug prescriptions into the system and uses it in conjunction with an intelligent medicine box to improve the accuracy of drug management and user compliance; the intelligent drug management system includes an intelligent medicine box, a mobile phone APP, a cloud background service, a drug management system WEB terminal and a cloud database; the intelligent medicine box is a drug management device that helps patients take drugs on time and in the right amount, and provides medication reminders and recording functions; the drug management system WEB terminal is used to set drugs, medication time and dosage, and push the medication plan to the smart medicine box bound to the corresponding user through the network; the mobile phone APP is used to provide a more personalized and effective drug management plan by collecting and analyzing the user's intention to use drugs; the cloud background service realizes comprehensive management of patient information, accurate push of drugs, statistical analysis of medication data and personalized analysis of health status through cloud services; the cloud database realizes centralized storage and management of patient information, system data, health knowledge and drug data.

[0008] Furthermore, the smart medicine box includes a power module, an information collection module, a network communication module, a data storage module, a control module, a display module, and a drug storage module; the smart medicine box receives relevant medication plans through the network communication module, and stores them in the data storage module through the control module; the power module provides power, and the control module monitors the data of the information collection module according to the medication plan to determine whether the medication time has arrived; if so, the control module will issue a reminder through the display module and open the corresponding grid of the drug storage module at the same time; after the user takes the medicine, the information collection module records the medication taking action and sends the data to the control module; the control module updates the medication records in the data storage module, and transmits the information to the external device or cloud server through the network communication module, so as to realize the full process tracking and reminder of medication management.

[0009] Furthermore, the power module uses a USB interface to connect to an external power source for charging and power supply, and has a built-in power monitoring circuit that can detect the current battery power in real time. When the power is lower than a preset threshold, the power module will trigger a low-battery reminder function. When the battery power is lower than a preset threshold, the power module will send a signal to the control module, and the control module will trigger a corresponding reminder mechanism, and send a notification to the background service through the communication module to remind the user to charge or replace the battery in time.

[0010] Furthermore, the smart medicine box uses infrared detection technology to monitor the opening and closing status of the medicine box; when the user opens the medicine box, the infrared sensor detects this action and transmits a signal to the control module; the control module analyzes the signal, determines whether the user has taken the medicine, and updates the medication record; when the medicine box is opened, the sensor detects this change and transmits a signal to the information collection module; the information collection module records this event and compares it with the user's medication plan to confirm whether the user takes the medicine according to the plan; the information collection module collects the user's medication information and updates this data to the data storage module of the smart medicine box.

[0011] Furthermore, when the user uses the smart medicine box for the first time, the doctor binds the corresponding medicine box information through the WEB end of the drug management system. After the smart medicine box is turned on, the network communication module establishes a connection with the cloud service; when the smart medicine box needs to synchronize data to the cloud service, the network communication module packages the data into an appropriate format and sends it out through the established connection channel; at the same time, it monitors the response from the cloud service and receives the returned data or instructions; when the doctor sends instructions to the smart medicine box through the cloud service, the network communication module will receive these instructions and parse them; the parsed instructions will be passed to the control module of the smart medicine box, and the control module will perform corresponding operations according to the instructions.

[0012] Furthermore, the control module reads the user's medication plan in the data storage module periodically or in real time; the control module obtains the current time and compares it with the medication time in the medication plan; if the current time reaches or exceeds the medication time, the control module triggers the reminder function; the control module sends instructions to the display module; when the user confirms medication through the interactive interface of the smart medicine box, the control module will receive these operations; the control module updates the medication record in the data storage module according to the user's operation, including recording the medication time and the name of the medicine.

[0013] Furthermore, the drug storage module includes multiple independent storage units to ensure that different drugs will not interfere with or be confused with each other, and the storage unit is drawer-type, rotating or grid-type; the drug storage module is equipped with temperature and humidity sensors and adjustment equipment; the drug storage module adopts a moisture-proof and dust-proof design; the drug storage module is provided with slide rails or handles to facilitate users to easily open and close the storage unit.

[0014] Furthermore, the mobile phone APP includes a user information management module, a health information management module, a health information module, a family sharing module, a medication reminder module, and a user feedback module.

[0015] The present invention also provides a method for using an intelligent drug management system based on usage intention, comprising the following steps: Step 1.1 Collect historical medication data, user behavior data, health data, and user feedback data and process missing values ​​and outliers; Step 1.2 Normalize the numerical features. The normalization formula is as follows: ; in, is the original data, is the minimum value of the feature, is the maximum value of the feature, is the normalized data.

[0016] Step 1.3 Use Pearson correlation coefficient Select the most meaningful features, and the calculation formula is as follows: ; in, and is the observed value of the variable, and is the mean value of the variable; Step 1.4 A weighted hybrid model using the scores of the best classification and collaborative filtering models is used to predict and evaluate patients' willingness to use the drug and to recommend and optimize medication plans, including: Step 1.4.1 The classification model of logistic regression is used for prediction. Drug recommendation is expressed as a supervised multi-class multi-label classification problem, in which the patient's personal information, historical medication data, user behavior data, health data and user feedback data are inputs, and the willingness to use the medication plan, that is, the probability, is the output, so as to recommend the most appropriate drug combination; the medication hospital prediction formula using the classification model of logistic regression is: ; in, is the predicted patient's willingness to use the medication plan, are the relevant characteristics of the patient, including age, gender, weight, diagnosis, historical medication data, user behavior data, health data, and user feedback data behavior data, and m is the number of relevant characteristics; is the regression coefficient; The logistic regression model is optimized using the lbfgs optimizer and L2 regularization is applied. The regularization strength is controlled by the parameter C. Step 1.4.2 Use collaborative filtering algorithm for evaluation and prediction, including: Given a relation schema containing t entity types: , where the entity Entity Type and The interaction between them is represented as a The interaction matrix ,in, Is Entity The number of Is Entity The number of elements Entity specified and entities interaction between them; using low-order matrix decomposition, the interaction matrix Represented as the product of two low-dimensional matrices: ; Among them, the low-dimensional matrix , represents the set of real numbers, indicating that the matrix The elements of are all real numbers; Represents entity type If On behalf of the patient, then is the number of patients, Represents the dimension of the latent factor of the matrix or the dimension of the low-dimensional space. It is used in matrix decomposition to map the high-dimensional matrix into a lower-dimensional space to capture the potential relationship between entities. , Represents entity type If represents medicine, then is the amount of drug, and ; The superscript T indicates the transpose of the matrix; two low-dimensional matrices and Treated as separate entity types and entity types The latent factors are determined; the latent dimension k is the number of latent factors, is a nonlinear indicator function; if the entity type Involving multiple interactions, each interaction is modeled separately; latent factors and potential factors This can be done by using the observed interaction matrix The loss function is minimized to obtain: ; in, and yes and Deviation; The prediction of unknown values ​​is done through two latent factors and The product of is obtained by sorting the predicted values ​​in descending order to make recommendations; Collective matrix factorization extends low-rank matrix factorization by jointly decomposing the interaction matrix and its accompanying information while sharing latent factors; the collective matrix factorization model is based on two entity types: patient-related entity types and the entity type of the drug ; The collective matrix factorization model performs a joint decomposition of the interaction matrix indicating which drug is prescribed for which patient , and the patient attribute matrix , which represents the patient's personal information, historical medication data, user behavior data, health data, user feedback data, and the doctor's diagnosis for each patient, as well as the drug attribute matrix , which indicates the distribution of each diagnosis code for each drug; using low-rank matrix factorization, the additional attribute matrix is ​​expressed as and ,in, and are new latent factors for the patient and drug attribute matrices; the latent factor matrix for patients, the latent factor matrix for drugs, the latent factors for the patient attribute matrix, and the latent factors for the drug attribute matrix are obtained by minimizing the squared loss so that the error between the predicted values ​​and the observed values ​​of the interaction matrix and the attribute matrix is ​​minimized: ; in, and Shared in the decomposition, this nonconvex optimization is solved using alternating least squares to find the local minimum; Step 1.4.3 combines the prediction scores calculated from the classification model and the collaborative filtering model into a final prediction score as follows: ; in, is a weighting factor, is the final prediction score, is the prediction score calculated by the classification model, It is the prediction score calculated by the collaborative filtering model; the category labels with the top K scores or those exceeding the predefined threshold are recommended; Step 1.5: Optimize the medication plan based on the results of the intention to use assessment. If the intention to use result is higher than the set threshold, it is a high intention to use, and the existing medication reminder plan is maintained. If the intention to use result is lower than the set threshold, it is a low intention to use, and the reminder frequency is increased, additional support is provided, and the reminder time is adjusted.

[0017] Furthermore, the types of user behavior data include: 1. Medication time data, including: Medication time interval: the time interval between two consecutive medications, calculate the time difference between each medication record, and generate a time interval sequence; Medication time deviation: the deviation between the actual medication time and the scheduled medication time, and the difference between the actual medication time and the scheduled time is calculated; 2. Reminder of relevant data, including: Number of reminders: the number of reminders received by the user, counting the number of reminders sent by the system within a specific time period; Reminder response time: How long does it take for the user to take action after receiving a reminder? Record the time of each reminder and the corresponding user action time, and calculate the time difference between the two; 3. Medication behavior data, including: Medicine box opening frequency: the frequency at which the medicine box is opened, counting the number of times the medicine box is opened within a certain period of time; Medicine box opening time: the specific time when the medicine box is opened each time, and the timestamp of each time the medicine box is opened; Missed doses: The number of times a user missed a dose, counting the number of times a user did not open the medicine box within the scheduled medication time period; 4. Health data, including: Health indicators: user's health indicators, such as blood pressure, blood sugar level, etc., obtain relevant data from the user's health monitoring device or manual input; Exercise data: user's exercise data, such as exercise frequency, duration, and exercise heart rate, obtained from the user's health monitoring device or manual input; 5. User feedback data, including: User feedback rating: user feedback rating on the system, user feedback rating record in the system; Feedback type: The specific feedback content of the user, including "too many reminders" or "not enough reminders", is extracted and categorized from the user's feedback text or selection items.

[0018] Beneficial effects: 1. Doctors directly input and manage drug prescriptions to ensure the scientificity and accuracy of medication.

[0019] 2. The system provides personalized medication plans and reminders based on the doctor's prescription and the user's usage intention.

[0020] 3. Through smart medicine boxes and various reminder methods, ensure that users take medications on time and improve medication compliance.

[0021] 4. The smart medicine box automatically records medication usage, and the system uses big data analysis to optimize medication plans.

[0022] 5. Feedback from users and doctors helps the system continuously optimize medication management and improve medication safety and effectiveness.

[0023] 6. Any single model will be affected by data bias. By combining the classification model and the collaborative filtering model, this bias can be reduced and the robustness of the model can be improved. The classification model and the collaborative filtering model process noisy data in different ways. Combining them can enhance the noise resistance of the overall system.

[0024] 7. The hybrid model of classification model and collaborative filtering model can use a variety of different data sources, including health data, drug data, medication behavior data, patient feedback, etc. This combination has good scalability and can continuously improve the quality of recommendations as the amount of data increases.

[0025] 8. The classification model can make personalized recommendations based on explicit features, while the collaborative filtering model can make personalized recommendations based on implicit behavior patterns. The combination of the two can make up for each other's shortcomings and improve the accuracy of the overall recommendation, thereby providing more comprehensive and detailed personalized recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a system architecture diagram of an intelligent drug management system based on usage intention of the present invention; Figure 2 Flowchart for training the user willingness evaluation model; Figure 3 Illustration of the types of user data collected for the system. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0028] like Figure 1 As shown, the present invention relates to an intelligent drug management system based on usage intention, in particular, by a doctor inputting drug prescriptions into the system and using it in conjunction with a smart medicine box to improve the accuracy of drug management and user compliance.

[0029] The intelligent medicine management system based on usage intention of the present invention comprises a smart medicine box, a mobile phone APP, a cloud background service, a medicine management system WEB terminal and a cloud database.

[0030] The smart medicine box is a drug management device that integrates modern technology, aims to help patients take medicines on time and in the right amount, and provides medication reminder and recording functions. It includes a power module, an information acquisition module, a network communication module, a data storage module, a control module, a display module, and a drug storage module.

[0031] Doctors and nurses set the medication, medication time and dosage through the WEB terminal, and push the medication plan to the smart medicine box bound to the corresponding user through the network. The smart medicine box receives the relevant medication plan through the network communication module and stores it in the data storage module through the control module. The power module provides power, and the control module monitors the data of the information collection module according to the medication plan to determine whether the medication time has arrived. If so, the control module will issue a reminder through the display module and open the corresponding grid of the drug storage module. After the user takes the medicine, the information collection module records the medication action and sends the data to the control module. The control module updates the medication record in the data storage module, and transmits the information to the external device or cloud server through the network communication module to achieve full-process tracking and reminders of medication management.

[0032] The power module uses a USB interface to connect to an external power source for charging and power supply, and has a built-in power monitoring circuit that can detect the current battery power in real time. When the power is lower than a preset threshold, the power module will trigger a low-battery reminder function. When the battery power is lower than a preset threshold, the power module will send a signal to the control module, and the control module will trigger a corresponding reminder mechanism, and send a notification to the background service through the communication module to remind the user to charge or replace the battery in time.

[0033] The information collection module is used to collect information. The smart medicine box uses infrared detection technology to monitor the opening and closing status of the medicine box. When the user opens the medicine box, the infrared sensor detects this action and transmits a signal to the control module. The control module analyzes this signal to determine whether the user has taken the medicine and updates the medication record. When the medicine box is opened, the sensor detects this change and transmits a signal to the information collection module. The information collection module records this event and compares it with the user's medication plan to confirm whether the user takes the medicine according to the plan. The information collection module collects the information of the user taking the medicine, and it will update this data to the data storage module of the smart medicine box.

[0034] When the user uses the smart medicine box for the first time, the doctor binds the corresponding medicine box information through the WEB terminal. After the smart medicine box is turned on, the network communication module will try to establish a connection with the cloud service. When the smart medicine box needs to synchronize data to the cloud service, the network communication module will package the data into an appropriate format and send it out through the established connection channel. At the same time, it will also listen to the response from the cloud service and receive the returned data or instructions. When the doctor sends instructions to the smart medicine box through the cloud service, the network communication module will receive these instructions and parse them. The parsed instructions will be passed to the control module of the smart medicine box, and the control module will perform the corresponding operations according to the instructions. The network communication module will continue to monitor the status of the connection channel to ensure that the smart medicine box can communicate with the cloud service in real time. When it is necessary to send medication reminders or other real-time data, the network communication module will send the data immediately and ensure that the data can be received and processed in time.

[0035] After receiving various types of data, the data storage module will store them in the internal storage medium according to the predefined format and structure. When other modules need to read, write or modify the stored data (such as user requests to view historical medication records, modify medication plans, etc.), they will send requests through the data access interface provided by the data storage module.

[0036] The control module reads the user's medication plan in the data storage module regularly or in real time. The control module obtains the current time and compares it with the medication time in the medication plan. If the current time reaches or exceeds the medication time, the control module will prepare to trigger the reminder function. The control module will send instructions to the display module. When the user confirms medication through the interactive interface of the smart medicine box (such as a button), the control module will receive these operations. The control module will update the medication record in the data storage module according to the user's operation, such as recording the medication time, drug name, etc.

[0037] When the smart medicine box is started, the display module will be initialized and ready to display the interface. The initial interface may include basic information such as welcome information, current time, device model, etc. This information will be displayed on the display screen in the form of text, icons or indicator lights so that users can understand the working status of the smart medicine box at any time. When the user needs to view the medication record, he can enter the corresponding operation interface through specific buttons or touch screen operations. The display module will display the corresponding interface content according to the user's operation, such as the medication plan list, medication record list, etc. The user can set, modify or view the operation through the options on the interface, and the display module will update the interface content in real time to reflect the user's operation results.

[0038] Users put different kinds of drugs into the drug storage module as needed. The drug storage module adopts a partition structure to ensure that each drug has its fixed storage location to prevent confusion. When it is time to take the medicine, the control module controls the drug storage module to open the medicine box, and the user can also take out the medicine by opening the medicine box or pressing the button in the corresponding area. The design of the drug storage module should ensure that users can easily identify and take out the required drugs. The sensors equipped in the drug storage module will monitor the removal of drugs in real time. When the user takes out the medicine, the sensor will detect this action and trigger the information acquisition module to collect information.

[0039] The power module includes the following specific components and functions to ensure that the device can be reliably powered and charged: provide a stable power supply, usually with high energy density and long life; support multiple charging cycles, suitable for long-term use; contain charging control circuits to ensure the safety and efficiency of the battery during the charging process, including overcharge protection, over-discharge protection and temperature monitoring; monitor the battery's charge status in real time and prompt the user of the current charge level through the display; support an external power adapter to continue powering when there is no charging device; prevent excessive current from causing damage to the battery and device.

[0040] The information collection module is responsible for collecting and recording the user's medication status, as well as related information such as medication inventory, including: a medication removal sensor: detects the removal of medication from the medicine box, and records the time and amount of each medication removal; a medicine box closing sensor: detects the closing state of the medicine box to ensure that the medicine box is properly closed when not in use; a medicine box weight sensor: a weight sensor is installed at the bottom or inside of the medicine box to monitor the weight change of the medication, thereby determining the removal and remaining amount of the medication.

[0041] The network communication module has a built-in Wi-Fi module for connecting to the Wi-Fi network of the home or office. Through the Wi-Fi connection, the smart medicine box can synchronize data with the remote background system, upload medicine box operation records, update software and remotely control. The network communication module is responsible for transmitting the data inside the smart medicine box (such as drug information, medication records, remaining medication, etc.) to the remote server or the user's mobile device. At the same time, it can also receive instructions or data from the server or mobile device, such as updating drug information, setting medication reminders, etc.

[0042] The data storage module is one of the core parts of the system. It is responsible for storing and managing various data related to drug management. The following are the main functions of the smart medicine box data storage module: store drug information, including drug name, specifications, dosage, usage, manufacturer, expiration date, etc.; store medication records, record the user's medication time, dosage, medication status and other information. Use embedded database to store and manage data; use storage media such as SD card to improve storage capacity and reliability.

[0043] The control module is one of the cores of the smart medicine box, which is responsible for receiving user instructions, processing data, and controlling various functional units of the medicine box. It manages the distribution, reminders and records of medicines according to the user's personalized needs and usage intentions.

[0044] The display module is responsible for intuitively displaying the relevant information of the smart medicine box. The medication plan display clearly displays the user's medication plan on the screen, including medication time, drug type, dosage and other information. In this way, users can check their medication plan at any time to ensure that they take the medicine on time; the drug inventory display displays the inventory status of various drugs in the medicine box in real time. When the drug is insufficient, a warning message can be displayed on the screen to remind the user to replenish the drug in time; the reminder information display, when the medication time arrives or the system detects other situations that need to be reminded, a reminder message can be displayed on the screen, such as "Please take the medicine", "Insufficient drug inventory", etc. This information can be reminded in a variety of ways such as sound and vibration to ensure that the user does not miss any important information.

[0045] The drug storage module is a key part to ensure orderly storage, convenient access and drug quality. Each drug should have an independent storage unit to ensure that different drugs do not interfere with or confuse each other. These storage units can be designed as drawer-type, rotary or grid-type, etc., so that users can easily find the required drugs; in order to maintain the quality of the drugs, the storage module should be equipped with temperature and humidity sensors and adjustment devices. When the ambient temperature and humidity exceed the set range, the system will automatically start the adjustment equipment, such as heaters, refrigerators, humidifiers or dehumidifiers, etc., to ensure that the drug storage environment is in a suitable state; the drug storage module should adopt a moisture-proof and dust-proof design, such as using sealing materials, setting dust-proof nets, etc., to prevent moisture and dust from damaging the drugs; the drug storage module should be designed to be easy to access and replenish, and auxiliary equipment such as slide rails and handles should be set to facilitate users to easily open and close the storage unit; the smart medicine box should be able to record the inventory of each drug in real time and issue a reminder when the drug is about to run out.

[0046] The core function of the mobile APP is to provide a more personalized and effective drug management solution by collecting and analyzing the user's willingness to use drugs. As the key interface for users to interact with the system, the mobile APP plays a vital role, including the following functional modules: 1. User information management module: When a user uses the APP for the first time, he / she needs to complete the registration process, including entering basic information such as user name, password, mobile phone number, and verification; after successful registration, the user can log in to the APP with the user name and password; the user can edit and complete personal information, such as name, gender, age, contact information, and bind family members, etc.

[0047] 2. Health information management module: allows users to add and manage drug information, including drug name, dosage, frequency of use, purchase date, etc.; provides drug use record and reminder functions to ensure that users take drugs on time and in the right amount; supports health data recording and analysis, including recording and analysis of blood pressure, blood sugar, weight and other data, and uploads it to the cloud service for analysis to help users understand their health status.

[0048] 3. Health information module: provides the latest health information and drug knowledge to help users understand the correct use of drugs and health common sense; the information content can cover aspects such as drug side effects, drug interactions, and drug storage methods; allows users to subscribe to specific health information based on their interests and achieve personalized push.

[0049] 4. Family Sharing Module: allows users to invite family members to join and set sharing permissions; family members can view shared health information, such as medication usage records, health reminders, etc.; supports internal family medication sharing management to ensure that every family member can obtain the required medications in a timely manner.

[0050] 5. Medication reminder module: According to the medication time set by medical staff, the APP will send a reminder notification at the exact time to ensure that the user will not miss the medication time; if the user does not take the medicine on time after receiving the reminder, the system will send a reminder again after a certain period of time, and will also notify family sharing members to ensure that the user does not forget to take the medicine; users can set the number of repeated reminders and the interval time as needed.

[0051] 6. User feedback module: The mobile APP will regularly or irregularly push willingness questionnaires to users to understand their satisfaction with the current drug management plan, their preferences and expectations for drug use, etc. These questionnaires will be presented in a simple and easy-to-understand way, so that users can complete them quickly; in addition to regular questionnaires, the mobile APP will also provide a real-time feedback mechanism, allowing users to express their wishes and needs at any time during use; the collected willingness data will be transmitted to the system's back-end server for analysis.

[0052] The cloud backend service can realize comprehensive management of patient information, accurate push of drugs, statistical analysis of medication data and personalized analysis of health status through cloud services, including: 1. User registration and login: Provide user registration and login functions to ensure the security of user information and system access control; users need to fill in basic information such as name, contact information, age, etc. when registering.

[0053] 2. Patient information management module: Centrally manage the patient's personal information, including basic information, medication history, medical history, allergy history, family medical history, etc.; provide patient information query, editing and update functions to ensure the accuracy and timeliness of the information; based on patient information, provide data support for the medication push module and health analysis module.

[0054] 3. Drug management module: The module supports the rapid entry and update of drug information, including the generic name, trade name, specifications, approval number, manufacturer and other basic information of the drug; the module provides powerful query and retrieval functions, and users can conduct precise queries based on drug name, specifications, manufacturer and other conditions, or perform fuzzy queries to obtain more relevant information.

[0055] 4. Medication push module: Generate personalized medication reminder plan based on the patient's medication plan and willingness; regularly send medication reminder plan to the patient's mobile phone APP and bound smart medicine box to ensure that the patient takes the medicine on time and in the right amount; provide repeated reminder function to prevent patients from forgetting to take medicine; allow patients to record medication status and generate medication record report.

[0056] 5. Health analysis module: Integrate patients' personal information, medication data, health data (such as blood pressure, blood sugar, etc.) and behavioral data; use big data analysis and machine learning algorithms to conduct a comprehensive analysis of patients' health status; provide patients with personalized health advice and guidance based on the analysis results; predict potential health risks, warn patients and doctors in advance, and provide reference for subsequent treatment adjustments.

[0057] 6. Statistical reporting module: collect and analyze patients' medication data and generate various statistical reports; the report content includes patients' medication status, medication effects, adverse reactions, etc.; provide medication decision support for doctors, pharmacists and patients, and optimize treatment plans.

[0058] The cloud database realizes the centralized storage and management of patient information, system data, health knowledge and drug data.

[0059] Authorized users such as doctors and pharmacists access the management system through the WEB terminal of the drug management system to implement the above series of operations.

[0060] like Figure 2 As shown, the method of using the present invention comprises the following steps: Step 1.1 Collect historical medication data, user behavior data, health data, and user feedback data, and process missing values ​​and outliers.

[0061] Step 1.2 Normalize the numerical features. The normalization formula is as follows: ; in, is the original data, is the minimum value of the feature, is the maximum value of the feature, is the normalized data.

[0062] Step 1.3 Use Pearson correlation coefficient Select the most meaningful features, and the calculation formula is as follows: ; in, and is the observed value of the variable, and is the mean value of the variable.

[0063] Step 1.4 A weighted hybrid model using the scores of the best classification and collaborative filtering models is used to predict and evaluate patients' willingness to use the drug and to recommend and optimize medication plans, including: Step 1.4.1 Use a logistic regression classification model for prediction. The model uses a training data set containing many input and output examples to learn to map input data to category labels. Drug recommendation can be formulated as a supervised multi-class multi-label classification problem, where the patient's personal information, historical medication data, user behavior data, health data, and user feedback data are inputs, and the willingness (probability) of the medication plan is the output, thereby recommending the most appropriate drug combination. The medication hospital prediction formula using a logistic regression classification model is: ; in, is the predicted patient's willingness to use the medication plan. are the relevant characteristics of the patient, including age, gender, weight, diagnosis, historical medication data, user behavior data, health data, and user feedback data behavior data, etc., and m is the number of relevant characteristics. is the regression coefficient.

[0064] The present invention uses the lbfgs (Limited Memory Broyden-Fletcher-Goldfarb-Shanno) optimizer to optimize the logistic regression model. In addition, L2 regularization is applied. Regularization prevents overfitting by penalizing larger coefficients. The L2 regularization term adds a penalty term equal to the square of the coefficient to the loss function. This penalty term helps shrink the coefficients to close to zero, but not completely zero, which helps manage multicollinearity and enhances the generalization ability of the model. The regularization strength is controlled by the parameter C. A C parameter of 1 is used, indicating moderate regularization.

[0065] Step 1.4.2 Use collaborative filtering algorithms for evaluation and prediction. In many relational domains, the number of entity types and interactions is usually fixed. They may contain only one or two entity types, such as patients and drugs. Given a relational schema containing t entity types: , where the entity Entity Type and The interaction between them is represented as a The interaction matrix ,in, Is Entity The number of Is Entity The number of elements Entity specified and entities Using low-order matrix decomposition, the interaction matrix Represented as the product of two low-dimensional matrices: ; Among them, the low-dimensional matrix , a low-dimensional matrix ,and The superscript T indicates the transpose of the matrix. These two low-dimensional matrices and can be considered as entity types and entity types The latent factors are determined. The latent dimension k is the number of latent factors, is a nonlinear indicator function. If the entity type There are multiple interactions involved, each of which can be modeled separately. and potential factors This can be done by using the observed interaction matrix The loss function is minimized to obtain: ; in, and yes and deviation. The prediction of unknown values ​​can be done through two latent factors and Recommendations can be made by sorting the predicted values ​​in descending order.

[0066] Finally, collective matrix factorization extends low-rank matrix factorization by jointly factorizing the interaction matrix and its accompanying information while sharing latent factors. The collective matrix factorization model is based on two entity types: patient-related entity types and the entity type of the drug The collective matrix factorization model performs a joint decomposition of the interaction matrix indicating which drug is prescribed for which patient , and the patient attribute matrix , which represents the patient's personal information, historical medication data, user behavior data, health data, user feedback data, and the doctor's diagnosis for each patient, as well as the drug attribute matrix , which indicates the distribution of each diagnosis code for each drug. Using low-rank matrix factorization, the additional attribute matrix can be expressed as and ,in, and are new latent factors of the patient and drug attribute matrices. Each latent factor can be obtained by minimizing the squared loss: ; in, and shared in the decomposition. This non-convex optimization can be solved using alternating least squares to find the local minimum.

[0067] Step 1.4.3 The prediction scores calculated from the classification model and the collaborative filtering model can be combined into a final prediction score as follows: ; in, is a weighting factor, is the final prediction score, is the prediction score calculated by the classification model, is the prediction score calculated by the collaborative filtering model. The category labels with the top K scores, or those exceeding the predefined threshold, will be recommended.

[0068] Step 1.5: Optimize the medication plan based on the results of the assessment of willingness to use. High willingness to use: maintain the existing medication reminder plan; low willingness to use: increase the reminder frequency, provide additional support, adjust the reminder time, etc.

[0069] like Figure 3 As shown, the types of user behavior data uploaded include: 1. Medication time data, including: Medication time interval: the time interval between two consecutive medications, calculate the time difference between each medication record, and generate a time interval sequence.

[0070] Medication time deviation: the deviation between the actual medication time and the scheduled medication time, calculate the difference between the actual medication time and the scheduled time.

[0071] 2. Remind relevant data, including: Number of reminders: The number of reminders received by the user, counting the number of reminders sent by the system within a specific time period.

[0072] Reminder response time: How long does it take for the user to take action after receiving the reminder? Record the time of each reminder and the corresponding user action time, and calculate the time difference between the two.

[0073] 3. Medication behavior data, including: Medicine box opening frequency: The frequency with which the medicine box is opened. This counts the number of times the medicine box is opened within a certain period of time.

[0074] Medicine box opening time: the specific time each time the medicine box is opened, and the timestamp of each time the medicine box is opened.

[0075] Missed doses: The number of times a user missed a dose, counting the number of times a user did not open the medicine box within the scheduled medication time period.

[0076] 4. Health data, including: Health indicators: The user's health indicators, such as blood pressure, blood sugar level, etc., obtain relevant data from the user's health monitoring device or manual input.

[0077] Exercise data: User exercise data, such as exercise frequency, duration, exercise heart rate, etc., obtained from the user's health monitoring device or manual input.

[0078] 5. User feedback data, including: User feedback rating: user feedback rating on the system, user feedback rating record in the system.

[0079] Feedback type: The specific feedback content of the user, such as "too many reminders" or "not enough reminders", is extracted and classified from the user's feedback text or selection items.

Claims

1. An intelligent drug management system based on usage intention, characterized in that: Doctors input drug prescriptions into the system and use them in conjunction with smart medicine boxes to improve the accuracy of drug management and user compliance; the intelligent drug management system includes a smart medicine box, a mobile phone APP, a cloud-based backend service, a drug management system WEB terminal and a cloud database; the smart medicine box is a drug management device that helps patients take drugs on time and in the right amount, and provides medication reminders and recording functions; the drug management system WEB terminal is used to set drugs, medication time and dosage, and push the medication plan to the smart medicine box bound to the corresponding user through the network; the mobile phone APP is used to provide a more personalized and effective drug management plan by collecting and analyzing the user's willingness to use drugs; the cloud-based backend service realizes comprehensive management of patient information, accurate push of drugs, statistical analysis of medication data and personalized analysis of health status through cloud services; the cloud database realizes centralized storage and management of patient information, system data, health knowledge and drug data.

2. The intelligent drug management system based on usage intention according to claim 1, characterized in that: The smart medicine box includes a power module, an information collection module, a network communication module, a data storage module, a control module, a display module, and a medicine storage module; the smart medicine box receives the relevant medication plan through the network communication module and stores it in the data storage module through the control module; the power module provides power, and the control module monitors the data of the information collection module according to the medication plan to determine whether the medication time has arrived; If so, the control module will issue a reminder through the display module and open the corresponding grid of the drug storage module at the same time; after the user takes the medicine, the information collection module records the medicine taking action and sends the data to the control module; the control module updates the medication record in the data storage module and transmits the information to the external device or cloud server through the network communication module, realizing the full process tracking and reminder of medication management.

3. The intelligent drug management system based on usage intention according to claim 2 is characterized in that: The power module uses a USB interface to connect to an external power source for charging and power supply. It has a built-in power monitoring circuit that can detect the current battery power in real time. When the power is lower than a preset threshold, the power module will trigger a low-battery reminder function. When the battery power is lower than the preset threshold, the power module will send a signal to the control module, and the control module will trigger a corresponding reminder mechanism, and send a notification to the background service through the communication module to remind the user to charge or replace the battery in time.

4. The intelligent drug management system based on usage intention according to claim 2 is characterized in that: The smart medicine box uses infrared detection technology to monitor the opening and closing status of the medicine box; when the user opens the medicine box, the infrared sensor detects this action and transmits a signal to the control module; the control module analyzes this signal to determine whether the user has taken the medicine and updates the medication record; when the medicine box is opened, the sensor detects this change and transmits a signal to the information collection module; The information collection module will record this event and compare it with the user's medication plan to confirm whether the user takes the medicine according to the plan; the information collection module collects the user's medication information and updates this data to the data storage module of the smart medicine box.

5. The intelligent drug management system based on usage intention according to claim 2 is characterized in that: When a user uses the smart medicine box for the first time, the doctor binds the corresponding medicine box information through the WEB end of the drug management system. After the smart medicine box is turned on, the network communication module establishes a connection with the cloud service; when the smart medicine box needs to synchronize data to the cloud service, the network communication module packages the data into an appropriate format and sends it out through the established connection channel; at the same time, it listens for responses from the cloud service and receives returned data or instructions; when the doctor sends instructions to the smart medicine box through the cloud service, the network communication module will receive these instructions and parse them; the parsed instructions will be passed to the control module of the smart medicine box, and the control module will perform corresponding operations according to the instructions.

6. The intelligent drug management system based on usage intention according to claim 2 is characterized in that: The control module reads the user's medication plan in the data storage module regularly or in real time; the control module obtains the current time and compares it with the medication time in the medication plan; if the current time reaches or exceeds the medication time, the control module triggers the reminder function; the control module sends instructions to the display module; when the user confirms medication through the interactive interface of the smart medicine box, the control module will receive these operations; the control module updates the medication record in the data storage module according to the user's operation, including recording the medication time and the name of the medicine.

7. The intelligent drug management system based on usage intention according to claim 2, characterized in that: The drug storage module includes multiple independent storage units to ensure that different drugs will not interfere with or be confused with each other. The storage unit is drawer-type, rotating or grid-type; the drug storage module is equipped with temperature and humidity sensors and adjustment equipment; the drug storage module adopts a moisture-proof and dust-proof design; the drug storage module is provided with slide rails or handles to facilitate users to easily open and close the storage unit.

8. The intelligent drug management system based on usage intention according to claim 1, characterized in that: The mobile phone APP includes a user information management module, a health information management module, a health information module, a family sharing module, a medication reminder module, and a user feedback module.

9. A method for using an intelligent drug management system based on usage intention, characterized in that: The steps include: Step 1.1 Collect historical medication data, user behavior data, health data, and user feedback data and process missing values ​​and outliers; Step 1.2 Normalize the numerical features. The normalization formula is as follows: ; in, is the original data, is the minimum value of the feature, is the maximum value of the feature, is the normalized data; Step 1.3 Use Pearson correlation coefficient Select the most meaningful features, and the calculation formula is as follows: ; in, and is the observed value of the variable, and is the mean value of the variable; Step 1.4 A weighted hybrid model using the scores of the best classification and collaborative filtering models is used to predict and evaluate patients' willingness to use the drug and to recommend and optimize medication plans, including: Step 1.4.1 The classification model of logistic regression is used for prediction. Drug recommendation is expressed as a supervised multi-class multi-label classification problem, in which the patient's personal information, historical medication data, user behavior data, health data and user feedback data are inputs, and the willingness to use the medication plan, that is, the probability, is the output, so as to recommend the most appropriate drug combination; the medication hospital prediction formula using the classification model of logistic regression is: ; in, is the predicted patient's willingness to use the medication plan, are the relevant characteristics of the patient, including age, gender, weight, diagnosis, historical medication data, user behavior data, health data, and user feedback data behavior data, and m is the number of relevant characteristics; is the regression coefficient; The logistic regression model is optimized using the lbfgs optimizer and L2 regularization is applied. The regularization strength is controlled by the parameter C. Step 1.4.2 Use collaborative filtering algorithm for evaluation and prediction, including: Given a relation schema containing t entity types: , where the entity Entity Type and The interaction between them is represented as a The interaction matrix ,in, Is Entity The number of Is Entity The number of elements Entity specified and entities interaction between them; using low-order matrix decomposition, the interaction matrix Represented as the product of two low-dimensional matrices: ; Among them, the low-dimensional matrix , represents the set of real numbers, indicating that the matrix The elements of are all real numbers; Represents entity type If On behalf of the patient, then is the number of patients, Represents the dimension of the latent factor of the matrix or the dimension of the low-dimensional space. It is used in matrix decomposition to map the high-dimensional matrix into a lower-dimensional space to capture the potential relationship between entities. , Represents entity type If represents medicine, then is the amount of drug, and ; The superscript T indicates the transpose of the matrix; two low-dimensional matrices and Treated as separate entity types and entity types The latent factors are determined; the latent dimension k is the number of latent factors, is a nonlinear indicator function; if the entity type Involving multiple interactions, each interaction is modeled separately; latent factors and potential factors This can be done by using the observed interaction matrix The loss function is minimized to obtain: ; in, and yes and Deviation; The prediction of unknown values ​​is done through two latent factors and The product of is obtained by sorting the predicted values ​​in descending order to make recommendations; Collective matrix factorization extends low-rank matrix factorization by jointly decomposing the interaction matrix and its accompanying information while sharing latent factors; the collective matrix factorization model is based on two entity types: patient-related entity types and the entity type of the drug ; The collective matrix factorization model performs a joint decomposition of the interaction matrix indicating which drug is prescribed for which patient , and the patient attribute matrix , which represents the patient's personal information, historical medication data, user behavior data, health data, user feedback data, and the doctor's diagnosis for each patient, as well as the drug attribute matrix , which indicates the distribution of each diagnosis code for each drug; using low-rank matrix factorization, the additional attribute matrix is ​​expressed as and ,in, and are new latent factors for the patient and drug attribute matrices; the latent factor matrix for patients, the latent factor matrix for drugs, the latent factors for the patient attribute matrix, and the latent factors for the drug attribute matrix are obtained by minimizing the squared loss so that the error between the predicted values ​​and the observed values ​​of the interaction matrix and the attribute matrix is ​​minimized: ; in, and Shared in the decomposition, this nonconvex optimization is solved using alternating least squares to find the local minimum; Step 1.4.3 combines the prediction scores calculated from the classification model and the collaborative filtering model into a final prediction score as follows: ; in, is a weighting factor, is the final prediction score, is the prediction score calculated by the classification model, It is the prediction score calculated by the collaborative filtering model; the category labels with the top K scores or those exceeding the predefined threshold are recommended; Step 1.5: Optimize the medication plan based on the results of the intention to use assessment. If the intention to use result is higher than the set threshold, it is a high intention to use, and the existing medication reminder plan is maintained. If the intention to use result is lower than the set threshold, it is a low intention to use, and the reminder frequency is increased, additional support is provided, and the reminder time is adjusted.

10. The method of use according to claim 9, characterized in that: The types of user behavior data include:

1. Medication time data, including: Medication time interval: the time interval between two consecutive medications, calculate the time difference between each medication record, and generate a time interval sequence; Medication time deviation: the deviation between the actual medication time and the scheduled medication time, and the difference between the actual medication time and the scheduled time is calculated; 2. Remind relevant data, including: Number of reminders: the number of reminders received by the user, counting the number of reminders sent by the system within a specific time period; Reminder response time: How long does it take for the user to take action after receiving a reminder? Record the time of each reminder and the corresponding user action time, and calculate the time difference between the two; 3. Medication behavior data, including: Medicine box opening frequency: the frequency at which the medicine box is opened, counting the number of times the medicine box is opened within a certain period of time; Medicine box opening time: the specific time when the medicine box is opened each time, and the timestamp of each time the medicine box is opened; Number of missed doses: the number of times a user missed a dose, counting the number of times a user did not open the medicine box within the scheduled medication time period; 4. Health data, including: Health indicators: user's health indicators, such as blood pressure, blood sugar level, etc., obtain relevant data from the user's health monitoring device or manual input; Exercise data: user's exercise data, such as exercise frequency, duration, and exercise heart rate, obtained from the user's health monitoring device or manual input; 5. User feedback data, including: User feedback rating: user feedback rating on the system, user feedback rating record in the system; Feedback type: The specific feedback content of the user, including "too many reminders" or "not enough reminders", is extracted and categorized from the user's feedback text or selection items.

Citation Information

Patent Citations

  • Intelligent medicine management system and management method

    CN117711638A

Cited By

  • Grading and classifying management system based on cardiology department coronary heart disease drug library

    CN120388762A

  • Intelligent medicine management method and system based on cloud computing

    CN120954759A