An AI vision recognition-based home chemotherapy pump intelligent monitoring method and system
The AI-based intelligent monitoring system for chemotherapy pumps solves the problems of accuracy and data security in home chemotherapy pump dosage monitoring. It achieves accurate dosage identification and risk classification, improves the safety and management efficiency of home chemotherapy, and meets data privacy compliance requirements.
Patent Information
- Application Number
- CN202611301042.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-24
AI Technical Summary
Current methods for monitoring the dosage of home chemotherapy pumps rely on patients' subjective estimation, which is inaccurate, leads to low efficiency in medical follow-up, lacks data-driven management, and results in low accuracy and insufficient data security of existing AI solutions, making it impossible to achieve precise monitoring and timely intervention.
An AI-based visual recognition method is used to capture images of chemotherapy pumps from the patient's end. A lightweight YOLO model and a scale regression model are used, combined with pump type template parameters, to identify drug dosage and risk classification, and data is managed in a closed loop within the hospital's intranet architecture.
It achieves sub-millimeter-level precise identification of chemotherapy pump dosage, automated risk stratification assessment, improves the safety and management efficiency of home chemotherapy, ensures data privacy and compliance, and supports three-level linkage full-course management.
Smart Images

Figure CN123148485A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart healthcare and artificial intelligence, specifically to a method and system for intelligent monitoring of home chemotherapy pumps based on AI visual recognition. Background Technology
[0002] Portable chemotherapy pumps are devices that continuously infuse chemotherapy drugs through an elastic reservoir and are widely used in continuous chemotherapy for cancer patients. While patients are using the pump at home, they need to regularly report the remaining drug level in the pump to healthcare professionals so that they can assess whether the infusion progress is normal and whether the treatment plan needs to be changed or adjusted. However, current home chemotherapy monitoring methods have the following prominent problems.
[0003] On the patient side, the remaining amount of medication in the elastic reservoir of the chemotherapy pump needs to be estimated by observing the contraction state of the reservoir. Patients can usually only describe it subjectively, such as saying "about half left". The actual remaining amount of medication may deviate significantly, and medical staff cannot accurately judge the infusion progress based on this, which may lead to delays in treatment or inaccurate drug dosage.
[0004] On the healthcare side, nurses usually rely on making individual phone calls or checking WeChat chat history to follow up with patients at home. When faced with dozens or even hundreds of patients at home, it is impossible to quickly grasp the overall situation. High-risk patients are difficult to screen out in a timely manner and can only be passively learned about after an abnormality occurs, missing the best intervention window.
[0005] On the handling side, the process and conclusions of abnormal handling are scattered in chat logs and verbal communications, making it impossible to form a structured file. Quality control inspections lack a basis, and scientific research statistics lack a data foundation, which is not conducive to the continuous improvement of medical quality.
[0006] Regarding existing AI technology solutions, there are currently some general optical character recognition solutions or cloud-based AI recognition solutions on the market, but they all have the following shortcomings: general optical character recognition models are not specifically trained for the special morphology of the elastic reservoir of chemotherapy pumps (easily confused structures such as cylindrical filters, reflective areas, and transparent tails), resulting in low recognition accuracy; public cloud API calls transmit patient medical data out of hospitals, posing data security and privacy compliance risks; existing solutions only provide recognition results and lack structured business judgment capabilities such as correlation comparison with clinical treatment plans, risk stratification, and closed-loop management. Summary of the Invention
[0007] To address the shortcomings of the existing technology, this invention provides an AI-based intelligent monitoring method and system for home chemotherapy pumps. Under the premise of ensuring medical data security, it achieves accurate and automatic identification of the remaining drug volume in the elastic reservoir of the portable chemotherapy pump, automatic deviation comparison with the theoretical infusion volume, automatic stratification and determination of risk level, and connects the complete clinical decision-making process from patient photo reporting to medical staff review and treatment record keeping.
[0008] To address the aforementioned technical problems, this invention provides a smart home chemotherapy pump monitoring method based on AI visual recognition, comprising the following steps: Step S1: Take a side view of the elastic reservoir of the chemotherapy pump using a patient-side mobile device. The side view image includes at least the scale area of the elastic reservoir. Preprocess the side view image to obtain a standardized preprocessed image. Step S2: Input the standardized preprocessed image into the target detection model to locate and extract the scale region of the elastic reservoir as the region of interest, wherein the target detection model is trained to distinguish between the scale region of the elastic reservoir and the interference region; within the region of interest, the scale regression model is used to locate the scale line position corresponding to the lowest point of the elastic reservoir and output continuous scale values; according to the preset pump type template parameters corresponding to the chemotherapy pump, the continuous scale values are converted into the current actual remaining drug volume; Step S3: Calculate the current theoretical remaining drug volume based on the start time and rated flow rate in the patient's current treatment plan; compare the current actual remaining drug volume with the current theoretical remaining drug volume to calculate the deviation value; output the corresponding risk level based on the comparison result of the deviation value and the preset risk threshold. Step S4: Push the identification results and the risk level to the medical staff for review or treatment, and generate treatment records.
[0009] Furthermore, the preprocessing in step S1 includes: converting the side image to grayscale to reduce subsequent computation; smoothing and denoising the side image using Gaussian filtering; enhancing the contrast of the scale area in the side image through adaptive histogram equalization; and performing rotation correction on the side image based on edge detection and line detection so that the scale area is horizontal or vertical.
[0010] Furthermore, in step S2, the target detection model is a lightweight YOLO model, and its backbone network is MobileNet or ShuffleNet; the YOLO model adopts a disease-specific training strategy for the chemotherapy pump scale scenario, and its training sample set includes images of various pump models, various lighting conditions and various shooting angles.
[0011] Furthermore, the training sample set of the YOLO model is labeled with negative samples, which include the cylindrical filter area, reflective area, and transparent tail area on the chemotherapy pump. By learning from the negative samples, the YOLO model excludes the above-mentioned areas from the region of interest during the inference stage, so as to avoid the cylindrical filter, reflective or transparent structure from interfering with the positioning of the scale.
[0012] Furthermore, in step S2, the scale regression model is built on a convolutional neural network, and its training labels are precise scale values labeled by professionals. The loss function adopts Smooth L1 Loss to differentiate between small and large errors during training. The scale regression model outputs continuous scale values to achieve sub-millimeter-level interpolation positioning of the scale line position corresponding to the lowest point of the elastic reservoir.
[0013] Furthermore, in step S2, the preset pump type template parameters include at least the total capacity of the chemotherapy pump, the scale range, and the scale-capacity mapping relationship; different chemotherapy pump models correspond to different preset pump type template parameter sets, and the system automatically selects the corresponding template for the conversion based on the pump model bound to the patient's current treatment plan; when the scale-capacity mapping relationship is non-linear, the conversion is calculated using a lookup table interpolation method.
[0014] Furthermore, in step S3, the theoretical remaining amount is a percentage, calculated using the formula: Theoretical remaining amount = Initial drug dosage - Rated flow rate × Infusion time. The risk levels are divided into low risk, medium risk, and high risk, and the classification method is as follows: When the theoretical remaining amount is ≤ 10%, it is judged as low risk; When 10% < theoretical surplus ≤ 20%, it is classified as medium risk; When the theoretical remaining amount is >20%, or when the drug solution is detected to be exhausted or the infusion has stopped, it is considered a high-risk situation.
[0015] Furthermore, in step S4, after the identification results and risk levels are pushed to the medical staff, the identification results of high-risk patients are automatically highlighted in red and displayed at the top of the medical staff's pending list; after the medical staff manually confirms or corrects the identification results, the system automatically archives the timestamp of this treatment, the person who performed the treatment, the content of the treatment, and the result of the treatment in a structured way into the patient's monitoring file.
[0016] On the other hand, the present invention also provides a home-based intelligent monitoring system for chemotherapy pumps based on AI visual recognition, the system comprising: The patient-side image acquisition module, deployed on a mobile device, is used to remind the patient to take a side view of the elastic reservoir of the chemotherapy pump according to the monitoring plan, and to upload the compressed side view image. The AI image recognition module, deployed on the hospital's intranet server, includes: The image preprocessing submodule is used to perform preprocessing on the received side image and output a standardized preprocessed image; The target detection submodule has a built-in trained target detection model, which is used to extract the scale region of the elastic reservoir as the region of interest from the standardized preprocessed image. The scale regression submodule has a built-in scale regression model, which is used to predict the continuous scale value corresponding to the lowest point of the elastic reservoir in the region of interest. The capacity conversion submodule is used to convert the continuous scale value into the current actual remaining drug volume according to the preset pump type template parameters; The deviation analysis and risk assessment module is deployed on the hospital's intranet server. It is used to calculate the "current theoretical remaining drug volume" based on the start time and rated flow rate of the patient's treatment plan, compare it with the current actual remaining drug volume to calculate the deviation value, and then output the risk level according to the preset risk threshold. The medical staff monitoring and management module, deployed on a web backend, is used to display the identification results and risk levels, provide an interface for review and handling, and generate handling records.
[0017] The present invention has the following technical effects and advancements. 1. The "Disease-Specific AI Three-Step Recognition Method" differs from general OCR solutions. Through deep customized training (YOLO region localization + scale regression + template matching) specifically for the elastic reservoir of chemotherapy pumps, it can effectively distinguish easily confused structures such as cylindrical filters, reflective areas, and transparent tails, achieving sub-millimeter scale interpolation accuracy. Its technical effect is that even under non-standard conditions (different lighting, angles, and backgrounds) when photographed with a home mobile phone, it maintains high recognition accuracy and robustness, fundamentally solving the problem of large deviations in patients' estimation of remaining volume by visual inspection.
[0018] 2. The "bias risk stratification algorithm embedded in the clinical decision-making closed loop" automatically associates AI recognition results with treatment plan parameters, calculates theoretical value deviations, and outputs high / medium / low risk stratifications. Its technical effect is to transform raw image recognition data into structured business judgments that can guide clinical decision-making, achieving an automated leap from "recognition data" to "clinical decision-making."
[0019] 3. The "three-terminal collaborative in-hospital private deployment architecture" achieves closed-loop operation where all data remains within the hospital's intranet. Its technical advantages include: enabling CPU inference deployment without the need for expensive hardware such as GPUs, lowering the barrier to entry for hospital IT infrastructure; and simultaneously ensuring the security and privacy compliance of patient medical data at the architectural level, meeting the requirements of regulations such as the "Personal Information Protection Law" and the "Measures for the Management of Health and Medical Big Data Standards, Security and Services".
[0020] 4. The "parametric capacity conversion method based on pump type template" solves the technical problem of inconsistent calibration standards for different chemotherapy pump models. Its technical effect is that the system can be adapted to new pump models through configuration rather than redevelopment, significantly reducing the cost and time required for multi-pump expansion.
[0021] 5. For patients, the procedure is simplified to "taking a picture," requiring no professional medical knowledge, reducing anxiety and operational burden during home chemotherapy; through automatic risk warnings, abnormal situations can be detected and intervened as early as possible, improving the safety of home medication.
[0022] 6. For medical staff: The passive management model of making individual phone calls to follow up has been transformed into a proactive management model of "viewing the whole picture on one screen". High-risk patients are automatically highlighted in red and placed at the top, which significantly improves management efficiency and response speed; the structured treatment record meets the needs of quality control inspection and scientific research statistics, and provides a data foundation for continuous improvement of medical quality.
[0023] 7. For hospitals: It fills the information gap in the home monitoring of chemotherapy pumps, making it possible to achieve full-course management through a three-level linkage of "hospital-community-family", and promoting the accumulation of high-quality clinical data and scientific research output. Attached Figure Description
[0024] Figure 1 This is a flowchart of a home-based intelligent monitoring method for chemotherapy pumps based on AI visual recognition, according to the present invention.
[0025] Figure 2 This is a framework diagram of a home-based intelligent monitoring system for chemotherapy pumps based on AI visual recognition, according to the present invention. Detailed Implementation
[0026] The present invention will be further described in detail below with reference to specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the present invention.
[0027] like Figure 1 As shown, a smart monitoring method for home chemotherapy pumps based on AI visual recognition includes the following steps.
[0028] Step S1: Take a side image of the elastic reservoir of the chemotherapy pump using a patient-side mobile device. The side image includes at least the scale area on the chemotherapy pump bottle. The side image is then preprocessed to obtain a standardized preprocessed image.
[0029] Specifically, the patient-side H5 application is a lightweight web application based on a mobile browser. Patients open it via WeChat or a browser, receive photo reminders according to the system's preset monitoring plan, and use their phone's camera to take a photo of the side of the chemotherapy pump's elastic reservoir. The photo must include the scale area on the chemotherapy pump bottle. Patient operation only requires taking one photo; no application installation or professional medical knowledge is needed. The system automatically compresses the photo to a suitable size to ensure upload speed before uploading it to the AI server.
[0030] After receiving the JPEG format chemotherapy pump photo uploaded by the patient, the AI server performs image preprocessing. This preprocessing includes the following operations: converting the side image to grayscale, transforming the RGB three-channel color image into a single-channel grayscale image to reduce subsequent computation; smoothing and denoising the side image using Gaussian filtering, preferably with a 5×5 Gaussian kernel; enhancing the contrast of the scale area in the side image through adaptive histogram equalization to highlight the texture features of the scale area; and performing rotation correction on the side image based on edge detection and line detection. Specifically, it uses Canny edge detection and Hough line transform to detect the bottle edge, calculates the tilt angle, and performs affine transformation correction to make the scale area horizontal or vertical. After the above preprocessing, a standardized preprocessed image is obtained.
[0031] Step S2 involves inputting the standardized preprocessed image into the target detection model to locate and extract the scale region of the elastic reservoir as the region of interest. The target detection model is trained to distinguish between the scale region and interference regions of the elastic reservoir. Within this region of interest, a scale regression model is used to locate the scale line corresponding to the lowest point of the elastic reservoir and output continuous scale values. Based on the preset pump template parameters corresponding to the chemotherapy pump, these continuous scale values are converted into the current actual remaining drug volume.
[0032] Step S2 specifically includes the following sub-steps.
[0033] S2-1 Region Extraction. The preprocessed image is input into a lightweight object detection model to detect the bounding box of the scale region of the elastic reservoir, and the precise scale region of interest is output. Preferably, the object detection model is a lightweight YOLO model with MobileNet or ShuffleNet as its backbone network. This YOLO model is trained specifically for the chemotherapy pump scale scene, and its training sample set includes images of various pump models, under various lighting conditions, and at various shooting angles. This model can distinguish and exclude easily confused structures such as cylindrical filters, reflective areas, and transparent tails.
[0034] Specifically, the training sample set of the YOLO model includes labeled negative samples, which include the cylindrical filter region, reflective region, and transparent tail region on the chemotherapy pump. By learning from these negative samples, the YOLO model excludes these regions from the region of interest during the inference phase, thus avoiding interference from the cylindrical filter, reflective, or transparent structures on the positioning of the scale.
[0035] Preferably, the target detection model can also use other lightweight single-stage target detection models such as SSD, EfficientDet, RTMDet, or the DETR series models based on Transformer for key area localization.
[0036] S2-2 Feature Calculation. Within the extracted scale region of interest, the scale line position is precisely located using a scale regression model to predict the scale value corresponding to the lowest point of the elastic reservoir.
[0037] Preferably, the scale regression model is built on a convolutional neural network, with training labels consisting of precise scale values annotated by professionals. The loss function employs Smooth L1 Loss to smooth small errors and moderately penalize large errors during training. This scale regression model outputs continuous scale values rather than discrete classifications, thus supporting sub-millimeter-level interpolation accuracy between adjacent scale lines. Preferably, in addition to regression-based methods, classification plus interpolation methods, traditional image processing methods (edge detection combined with Hough transform to locate scale lines), or end-to-end deep learning methods can also be used to directly predict capacity values from the original image.
[0038] S2-3 Template Matching and Volume Conversion. Based on the system's preset pump type template parameters, the identified scale value is converted into the current actual remaining drug solution volume, in milliliters. The preset pump type template parameters include at least the total capacity of the chemotherapy pump, the scale range, and the scale-volume mapping relationship. Different chemotherapy pump models correspond to different preset pump type template parameter sets. The system automatically selects the corresponding template for conversion based on the pump model bound to the patient's current treatment plan. When the scale-volume mapping relationship is linear, a linear proportional conversion is used, i.e., the current volume equals the scale value multiplied by the total volume divided by the scale range. When the scale-volume mapping relationship is non-linear, the conversion uses a lookup table interpolation method.
[0039] Step S3: Calculate the current theoretical remaining drug volume based on the start time and rated flow rate in the patient's current treatment plan. Compare the current actual remaining drug volume with the current theoretical remaining drug volume to calculate the deviation value. Based on the comparison result of the deviation value and the preset risk threshold, output the corresponding risk level.
[0040] Specifically, based on parameters such as the patient's treatment plan start time, drug type, and pump rated flow rate, the theoretical remaining drug volume at the current time point is calculated. The theoretical remaining volume equals the initial drug volume minus the rated flow rate multiplied by the infusion time. The current actual remaining drug volume obtained in step S2 is compared with the current theoretical remaining drug volume to calculate the deviation percentage. The deviation percentage is calculated as follows: Deviation percentage equals current actual remaining drug volume minus current theoretical remaining drug volume, divided by current theoretical remaining drug volume, and then multiplied by 100%. The deviation percentage is compared with a preset risk rule template threshold. Risk levels are divided into low risk, medium risk, and high risk, as follows: when the absolute value of the deviation percentage is less than or equal to 10%, it is considered low risk, indicating normal; when 10% is less than the absolute value of the deviation percentage but less than or equal to 20%, it is considered medium risk, indicating attention; when the absolute value of the deviation percentage is greater than 20%, or when the drug volume is detected to be exhausted or the infusion has stopped, it is considered high risk, indicating emergency. Preferably, the preset risk threshold value is customized and adjusted by medical staff in the background.
[0041] Step S4: The identification results and risk level are pushed to the medical staff for review or treatment, and a treatment record is generated.
[0042] Specifically, the identification results (including current remaining medication dosage, deviation value, and risk level) are pushed to the monitoring dashboard on the healthcare provider's end. Identification results for high-risk patients are automatically highlighted in red and displayed at the top of the healthcare provider's pending list. Healthcare providers view the AI identification details in the background, which include the original photo, location frame, scale readings, and deviation calculation results, and then manually review and confirm or correct them. After the healthcare provider manually confirms or corrects the identification results, the system automatically archives the timestamp, the person administering the treatment, the treatment content, and the treatment result in a structured archive to the patient's monitoring file, forming a complete closed loop from photo reporting, AI identification, deviation analysis, risk stratification, healthcare provider treatment, to record archiving. Preferably, in addition to being pushed to the management backend, alert messages can also be delivered to healthcare providers via SMS, WeChat Work, DingTalk, or app push notifications.
[0043] like Figure 2 As shown, the present invention also provides a home-based intelligent monitoring system for chemotherapy pumps based on AI visual recognition. The system includes a patient-side image acquisition module, an AI image recognition module, a deviation analysis and risk assessment module, and a medical staff-side monitoring and management module.
[0044] The patient-side image acquisition module is deployed on a mobile device to remind patients to take and upload side images of the chemotherapy pump's elastic reservoir according to the monitoring plan. This module includes a camera access interface, an image compression module, and an upload queue management module, responsible for periodically reminding patients to take photos according to the monitoring plan and transmitting the compressed images to the AI server. Preferably, the patient-side image acquisition module is an H5 page, a WeChat mini-program, or a mobile app.
[0045] The AI image recognition module, deployed on a server, performs preprocessing, target detection, scale regression, and capacity conversion on the received side image, outputting the current actual remaining drug volume. This module includes image preprocessing, target detection, scale regression, and capacity conversion submodules. The image preprocessing submodule performs grayscale conversion, Gaussian filtering for noise reduction, adaptive histogram equalization for contrast enhancement, and edge detection-based rotation correction on the received side image, outputting a standardized preprocessed image. The target detection submodule incorporates a trained target detection model to extract the scale region of the elastic reservoir as the region of interest from the standardized preprocessed image. The scale regression submodule incorporates a scale regression model to predict the continuous scale values corresponding to the lowest point of the elastic reservoir within the region of interest. The capacity conversion submodule converts the continuous scale values into the current actual remaining drug volume based on preset pump template parameters.
[0046] The deviation analysis and risk assessment module, deployed on the server, calculates the current theoretical remaining drug volume based on the patient's treatment plan start time and rated flow rate, compares it with the current actual remaining drug volume to calculate the deviation value, and outputs the risk level based on a preset risk threshold. This module includes a theoretical value calculation submodule, a deviation calculation submodule, and a risk stratification submodule. The theoretical value calculation submodule calculates the current theoretical remaining volume based on the treatment plan start time and drug flow rate parameters. The deviation calculation submodule calculates the difference and percentage between the actual identified value and the theoretical value. The risk stratification submodule compares the actual value with a threshold based on a preset rule template and outputs a high-risk, medium-risk, or low-risk level.
[0047] The healthcare monitoring and management module displays identification results and risk levels, and provides an interface for review and treatment. Deployed in the backend, this module includes a real-time monitoring dashboard submodule, a risk grading list submodule, an identification result review submodule, a treatment record-keeping submodule, and a template management submodule. The real-time monitoring dashboard submodule displays the current status of all home-monitored patients in a card list format, sorted by risk level. The risk grading list submodule prioritizes and highlights patients with different risk levels, automatically placing high-risk patients at the top and highlighting them in red. The identification result review submodule allows healthcare personnel to confirm or manually correct the identification results output by the AI image recognition module. If correction is selected, the position of the positioning frame can be manually adjusted or the correct remaining medication value can be directly entered; the system records the correction trajectory. The treatment record-keeping submodule automatically records the treatment time, the person administering the treatment, the treatment content, and the treatment result. The template management submodule configures and manages various chemotherapy pump model template parameters and preset risk thresholds. Configurable parameters include total capacity, scale range, and scale-capacity mapping relationship. Data is transmitted between modules via HTTP or HTTPS protocols. The data links between the patient and AI servers, and between the AI server and medical staff, are completed entirely within the hospital's intranet environment, without passing through any external public cloud services.
[0048] Preferably, the system also includes an early warning rule configuration module for configuring personalized early warning rules for specific patients or patient groups. Configurable parameters include: photo frequency (e.g., every 4 hours, every 6 hours, every 8 hours), deviation risk threshold (low, medium, and high limits), early warning push method (in-system reminder, SMS, WeChat Work), whether to enable flow rate trend early warning (e.g., triggering an additional early warning if the flow rate drops by more than 15% after two consecutive photos), and the timeout reminder time for patients who fail to take photos on time. The system periodically checks the photo status and recognition results of all ongoing treatment tasks. When the recognition result meets any early warning rule trigger condition, an early warning event is automatically generated and pushed to the medical staff's pending list. The early warning event includes the early warning type (excessive deviation, abnormal medication dosage, failure to take photos on time, abnormal trend), trigger time, associated patient, and a summary of the latest recognition result. Medical staff process early warning events one by one according to priority and keep a record.
[0049] The following examples illustrate specific methods of using the present invention.
[0050] Typical usage flow of H5 applications for patients.
[0051] Step E1-1: Patients open the patient-side H5 page through WeChat or a browser. First-time users need to read and sign the electronic informed consent form / disclaimer.
[0052] Step E1-2: The system automatically generates a personalized monitoring plan based on the treatment plan configured by the doctor for the patient (including pump model, drug type, rated flow rate, expected infusion duration, and monitoring photo frequency).
[0053] Steps E1-3: The system sends photo reminders to patients via WeChat service notifications or SMS at preset frequencies (e.g., every 5 hours).
[0054] Steps E1-4: After receiving the reminder, the patient opens the H5 page, clicks the "Take Photo" button, and uses the phone's camera to take a photo of the side of the chemotherapy pump bottle (ensuring the scale is within the shooting range).
[0055] Steps E1-5: The H5 page automatically compresses the photo (keeping it within an appropriate size to ensure upload speed) and automatically uploads it to the AI recognition server. After the upload is complete, the page displays the message "Upload successful, recognition in progress...".
[0056] Steps E1-6: After a few seconds, the H5 page displays the AI recognition result (current remaining medication). Patients can choose to view their history, read the educational content pushed by the system, or fill out the follow-up questionnaire issued by medical staff.
[0057] AI identification and risk assessment process This embodiment describes the automatic processing process of patient-uploaded images by the AI recognition server.
[0058] Step E2-1 (Image Preprocessing): After receiving the JPEG format chemotherapy pump photo uploaded by the patient, the AI server performs the following steps in sequence: (a) Grayscale conversion—converting the RGB three-channel color image into a single-channel grayscale image to reduce computational load; (b) Gaussian filtering—using a 5×5 Gaussian kernel to smooth and denoise the image; (c) Adaptive Histogram Equalization (CLAHE)—enhancing image contrast and highlighting the texture features of the scale area; (d) Rotation correction—based on Canny edge detection and Hough line transform to detect the bottle edge, calculate the tilt angle and perform affine transformation correction to ensure that the scale is horizontal or vertical.
[0059] Step E2-2 (YOLO Object Detection - Region Extraction): Input the preprocessed image into a pre-trained lightweight YOLO model (backbone network is MobileNetV3-Small). The model outputs the bounding box coordinates (x, y, w, h) and confidence scores of the elastic reservoir scale region. The model training dataset contains no fewer than [N] professionally labeled photos of chemotherapy pumps, covering at least [M] different pump models, [K] different lighting conditions (natural light, indoor lighting, low light), and multiple shooting angles (front, side, tilt).
[0060] Step E2-3 (Scale Regression – Feature Calculation): Within the scale region ROI output in Step E2-2, a scale regression model (based on a ResNet-18 backbone network + fully connected regression head, outputting continuous scale values) is used to perform sub-pixel-level localization and numerical prediction of the scale line position corresponding to the lowest point of the elastic reservoir. The training labels for this model are precise scale values annotated by professionals, and the loss function uses Smooth L1 Loss to ensure insensitivity to small errors and avoid excessive penalty for large errors.
[0061] Step E2-4 (Template Matching – Volume Conversion): Assuming the current patient is using a chemotherapy pump of model X, the system queries the preset template parameters for this pump model (total volume = V_total mL, scale range = R_max mL, scale-volume mapping function is linear: current volume V_current = R_current × V_total / R_max). For pump models with non-linear mapping relationships, the system uses a lookup table interpolation method for calculation.
[0062] Step E2-5 (Bias Calculation and Risk Stratification): The system queries the start time T_start and rated flow rate F_rate (unit: mL / h) of the patient's current treatment regimen, and calculates the theoretical remaining drug dosage at the current time T_now: V_theory = V_initial - F_rate × (T_now - T_start). Calculate the deviation percentage: Dev% = (V_current - V_theory) / V_theory × 100%. Compare Dev% with the threshold of the preset risk rule template: - |Dev%| ≤ 10%: Low risk (marked in green); - 10% < |Dev%| ≤ 20%: Medium risk (marked in yellow); - |Dev%|>20% or abnormal conditions such as drug depletion / infusion cessation detected: High risk (red mark).
[0063] The thresholds in the risk rule template can be customized and adjusted by medical staff in the backend.
[0064] Example 3: Closed-loop medical and nursing care process Step E3-1: Healthcare workers log in to the PC backend. The homepage monitoring dashboard displays the current status of all home-monitored patients in a card list format, sorted by risk level (high → medium → low). High-risk patients are automatically pinned to the top and highlighted in red. The dashboard displays key information for each patient: name, pump model, current remaining medication dosage, deviation percentage, risk level, and last photo taken.
[0065] Step E3-2: Medical staff click on the high-risk patient card to enter the details page and view the AI recognition results, including: the original photo (with the YOLO detection positioning box overlaid), scale reading, volume conversion result, deviation calculation process, and historical photo record trend chart.
[0066] Step E3-3: Medical staff manually review the AI recognition results and can choose to "confirm acceptance" or "correct". If correction is selected, the position of the positioning box can be manually adjusted or the correct remaining medication value can be directly entered. The system records the correction trajectory.
[0067] Step E3-4: Based on the identification results, medical staff make clinical management decisions (such as contacting the patient by phone to adjust the treatment plan, arranging for the patient to return to the hospital to replace the chemotherapy pump, etc.), and fill in the management content and results in the "Management Record" column of the system.
[0068] Step E3-5: The system automatically archives the treatment record (timestamp, treatment person, treatment content, treatment result, associated original photos and AI recognition results) in a structured manner into the patient's monitoring file, supporting querying and export by time period.
[0069] Early warning rule configuration and triggering Step E4-1: Healthcare professionals configure personalized early warning rules for specific patients or patient groups in the "Rule Templates" module in the backend. Configurable parameters include: photo frequency (e.g., every 4h / 6h / 8h), deviation risk threshold (low, medium, and high limits), early warning push method (in-system reminder / SMS / WeChat Work), whether to enable flow rate trend early warning (e.g., triggering an additional early warning if the flow rate drops by more than 15% after two consecutive photos), and the timeout reminder period for patients who fail to take photos on time.
[0070] Step E4-2: The system periodically checks the photo status and recognition results of all ongoing treatment tasks. When the recognition result meets any of the warning rule trigger conditions, a warning event is automatically generated and pushed to the "pending" list on the medical staff's end.
[0071] Step E4-3: The warning event includes the warning type (excessive deviation / abnormal dosage / failure to take photos on time / abnormal trend), trigger time, associated patient, and a summary of the latest identification results. Healthcare staff process the warning events one by one according to priority and keep a record.
[0072] The specific embodiments described above are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should understand that various modifications and equivalent substitutions can be made without departing from the principles of the invention, and these modifications and equivalent substitutions should also be considered within the scope of protection of the invention.
Claims
1. A method for intelligent monitoring of home chemotherapy pumps based on AI visual recognition, characterized in that, Includes the following steps: Step S1: Take a side view of the elastic reservoir of the chemotherapy pump using a patient-side mobile device. The side view includes at least the scale area of the elastic reservoir. The side image is preprocessed to obtain a standardized preprocessed image; Step S2: Input the standardized preprocessed image into the target detection model to locate and extract the scale region of the elastic reservoir as the region of interest, wherein the target detection model is trained to distinguish between the scale region of the elastic reservoir and the interference region; within the region of interest, the scale regression model is used to locate the scale line position corresponding to the lowest point of the elastic reservoir and output continuous scale values; according to the preset pump type template parameters corresponding to the chemotherapy pump, the continuous scale values are converted into the current actual remaining drug volume; Step S3: Calculate the current theoretical remaining drug volume based on the start time and rated flow rate in the patient's current treatment plan; compare the current actual remaining drug volume with the current theoretical remaining drug volume to calculate the deviation value; output the corresponding risk level based on the comparison result of the deviation value and the preset risk threshold. Step S4: Push the identification results and the risk level to the medical staff for review or treatment, and generate treatment records.
2. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: The preprocessing in step S1 includes: converting the side image to grayscale to reduce subsequent computation; smoothing and denoising the side image using Gaussian filtering; enhancing the contrast of the scale area in the side image through adaptive histogram equalization; and performing rotation correction on the side image based on edge detection and line detection so that the scale area is horizontal or vertical.
3. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: In step S2, the target detection model is a lightweight YOLO model, and its backbone network is MobileNet or ShuffleNet. The YOLO model adopts a disease-specific training strategy for the chemotherapy pump scale scenario, and its training sample set includes images of various pump models, various lighting conditions, and various shooting angles.
4. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 3, characterized in that: The training sample set of the YOLO model is labeled with negative samples, which include the cylindrical filter area, reflective area and transparent tail area on the chemotherapy pump. By learning from the negative samples, the YOLO model excludes the above-mentioned areas from the region of interest during the inference stage, so as to avoid the cylindrical filter, reflective or transparent structure from interfering with the positioning of the scale.
5. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: In step S2, the scale regression model is built on a convolutional neural network. Its training labels are precise scale values annotated by professionals. The loss function adopts Smooth L1 Loss to differentiate between small and large errors during training. The scale regression model outputs continuous scale values to achieve sub-millimeter-level interpolation positioning of the scale line position corresponding to the lowest point of the elastic reservoir.
6. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: In step S2, the preset pump type template parameters include at least the total capacity of the chemotherapy pump, the scale range, and the scale-capacity mapping relationship. Different chemotherapy pump models correspond to different preset pump type template parameter sets. The system automatically selects the corresponding template for the conversion based on the pump model bound to the patient's current treatment plan. When the scale-capacity mapping relationship is non-linear, the conversion is performed using a lookup table interpolation method.
7. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: In step S3, the theoretical remaining amount is a percentage, calculated using the formula: Theoretical remaining amount = Initial drug dosage - Rated flow rate × Infusion time. The risk levels are divided into low risk, medium risk, and high risk, and the classification method is as follows: When the theoretical remaining amount is ≤ 10%, it is judged as low risk; When 10% < theoretical surplus ≤ 20%, it is classified as medium risk; When the theoretical remaining amount is >20%, or when the drug solution is detected to be exhausted or the infusion has stopped, it is considered a high-risk situation.
8. The intelligent monitoring method for home chemotherapy pumps based on AI visual recognition according to claim 1, characterized in that: In step S4, after the identification results and risk levels are pushed to the medical staff, the identification results of high-risk patients are automatically highlighted in red and displayed at the top of the medical staff's pending list. After the medical staff manually confirms or corrects the identification results, the system automatically archives the timestamp, the person in charge, the content of the treatment, and the result of the treatment in the patient's monitoring file in a structured manner.
9. A smart monitoring system for home chemotherapy pumps based on AI visual recognition, characterized in that, The system includes: The patient-side image acquisition module, deployed on a mobile device, is used to remind the patient to take a side view of the elastic reservoir of the chemotherapy pump according to the monitoring plan, and to upload the compressed side view image. The AI image recognition module, deployed on the hospital's intranet server, includes: The image preprocessing submodule is used to perform preprocessing on the received side image and output a standardized preprocessed image; The target detection submodule has a built-in trained target detection model, which is used to extract the scale region of the elastic reservoir as the region of interest from the standardized preprocessed image. The scale regression submodule has a built-in scale regression model, which is used to predict the continuous scale value corresponding to the lowest point of the elastic reservoir in the region of interest. The capacity conversion submodule is used to convert the continuous scale value into the current actual remaining drug volume according to the preset pump type template parameters; The deviation analysis and risk assessment module is deployed on the hospital's intranet server. It is used to calculate the "current theoretical remaining drug volume" based on the start time and rated flow rate of the patient's treatment plan, compare it with the current actual remaining drug volume to calculate the deviation value, and then output the risk level according to the preset risk threshold. The medical staff monitoring and management module, deployed on a web backend, is used to display the identification results and risk levels, provide an interface for review and handling, and generate handling records.
