Medicine mixing monitoring system and method for enema instrument
By designing a drug mixing monitoring system in the enema device, the stirring speed can be monitored and adjusted in real time, solving the problems of low drug mixing efficiency and insufficient accuracy in traditional enema operations, and realizing precise control of drug mixing and improved therapeutic effect.
Patent Information
- Application Number
- CN202510774881.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-11-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional enema procedures rely on manual experience for drug mixing, resulting in low efficiency and difficulty in ensuring accuracy and consistency.
Design a drug mixing monitoring system for enema instruments. By collecting and analyzing drug concentration data, image feature values, and operating environment data, the system can monitor and adjust the stirring speed in real time to achieve precise control of drug mixing.
It improves the accuracy and consistency of drug mixing, enhances the efficiency and effectiveness of enema treatment, and ensures the timeliness, uniformity, and stability of drug mixing.
Smart Images

Figure CN120895162A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of enema drug monitoring and control technology, and more specifically, to a drug mixing monitoring system and method for enema instruments. Background Technology
[0002] Enemas are a commonly used treatment in the medical field, playing a crucial role, particularly in bowel cleansing, drug therapy, and diagnostic examinations. In traditional enema procedures, healthcare professionals typically rely on their expertise and practical experience to mix and prepare the medications. However, this manual and experience-based method has significant limitations; it is not only relatively inefficient but also struggles to achieve the desired precision and consistency in drug mixing.
[0003] Therefore, it is necessary to design a drug mixing monitoring system and method for enema instruments to solve the problems existing in the current technology. Summary of the Invention
[0004] In view of this, the present invention proposes a drug mixing monitoring system and method for enema instruments, aiming to achieve real-time monitoring and precise control of the drug mixing process in enema instruments.
[0005] In one aspect, the present invention provides a drug mixing monitoring system for an enema instrument, comprising:
[0006] The first unit is configured to collect concentration data of the drug to be mixed, analyze the concentration data, and determine whether the drug to be mixed needs to be stirred based on the analysis results; if so, it collects basic parameter data of the drug to be mixed and determines the initial stirring speed of the drug to be mixed based on the basic parameter data.
[0007] The second unit is configured to acquire image data of the drug to be mixed, extract features from the image data to obtain image feature values, and determine whether to adjust the initial stirring speed based on the image feature values.
[0008] The third unit is configured to, when it is determined that the initial stirring speed needs to be adjusted, collect the operating environment data of the enema instrument, determine the environmental impact index based on the operating environment data, determine the adjustment coefficient of the initial stirring speed according to the environmental impact index, and obtain the final stirring speed.
[0009] The fourth unit is configured to store the environmental impact index.
[0010] Furthermore, when the first unit determines whether the drug to be mixed needs to be stirred based on the analysis results, it includes:
[0011] The concentration data is analyzed to obtain the maximum concentration difference of the drugs to be mixed;
[0012] The maximum concentration difference is compared with the maximum concentration difference threshold, and the result of the comparison determines whether the drug to be mixed needs to be stirred.
[0013] When the maximum concentration difference is greater than or equal to the maximum concentration difference threshold, it is determined that the drug to be mixed needs to be stirred.
[0014] When the maximum concentration difference is less than the maximum concentration difference threshold, it is determined that the drugs to be mixed do not need to be stirred.
[0015] Further, when the first unit determines the initial stirring speed of the drug to be mixed based on the basic parameter data, it includes:
[0016] The basic parameter data includes the viscosity, density, and temperature of the drug to be mixed;
[0017] The basic stirring speed of the drug to be mixed is determined based on the viscosity.
[0018] Determine whether to optimize the basic stirring speed based on the temperature.
[0019] If so, the optimization coefficient of the basic stirring speed is determined based on the temperature and density, and the initial stirring speed is obtained.
[0020] Further, when the first unit determines the basic stirring speed of the drug to be mixed based on the viscosity, it includes:
[0021] The viscosity is compared with a first viscosity and a second viscosity, and the basic stirring speed of the drug to be mixed is determined based on the comparison result; wherein, the first viscosity is less than the second viscosity;
[0022] When the viscosity is less than or equal to the first viscosity, the basic stirring speed is determined to be the first stirring speed;
[0023] When the viscosity is greater than the first viscosity and less than or equal to the second viscosity, the basic stirring speed is determined to be the second stirring speed, which is greater than the first stirring speed.
[0024] When the viscosity is greater than the second viscosity, the basic stirring speed is determined to be the third stirring speed, which is greater than the second stirring speed.
[0025] Furthermore, when the first unit determines whether to optimize the basic stirring speed based on the temperature, it includes:
[0026] Determine the target temperature corresponding to the stated temperature, and calculate the difference between the stated temperature and the target temperature, denoted as the temperature difference.
[0027] The temperature difference is compared with the temperature difference threshold, and the basic stirring speed is optimized based on the comparison result.
[0028] When the temperature difference is greater than or equal to the temperature difference threshold, it is determined that the basic stirring speed should be optimized.
[0029] When the temperature difference is less than the temperature difference threshold, it is determined that the basic stirring speed will not be optimized, and the basic stirring speed will be used as the initial stirring speed.
[0030] Further, when the first unit determines the optimization coefficient of the basic stirring speed based on the temperature and density, and obtains the initial stirring speed, it includes:
[0031] Obtain the standard density corresponding to the density, and calculate the difference between the density and the standard density, denoted as the density difference;
[0032] Calculate the speed optimization factor based on the temperature difference and density difference;
[0033] The speed optimization factor is compared with the first speed optimization factor and the second speed optimization factor, and the optimization coefficient of the basic stirring speed is determined based on the comparison result; wherein the first speed optimization factor is smaller than the second speed optimization factor.
[0034] When the speed optimization factor is less than or equal to the first speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the first optimization coefficient;
[0035] When the speed optimization factor is greater than the first speed optimization factor and less than or equal to the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined to be the second optimization coefficient, and the second optimization coefficient is greater than the first optimization coefficient.
[0036] When the speed optimization factor is greater than the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the third optimization coefficient, and the third optimization coefficient is greater than the second optimization coefficient;
[0037] The product of the optimization coefficient and the basic stirring speed is used as the initial stirring speed.
[0038] Further, when the second unit determines whether to adjust the initial stirring speed based on the image feature values, it includes:
[0039] The image feature values are analyzed to obtain the mixing uniformity of the drugs to be mixed;
[0040] The mixing uniformity is compared with the mixing uniformity threshold, and the initial stirring speed is adjusted based on the comparison result.
[0041] When the mixing uniformity is less than the mixing uniformity threshold, it is determined that the initial stirring speed needs to be adjusted.
[0042] When the mixing uniformity is greater than or equal to the mixing uniformity threshold, it is determined that there is no need to adjust the initial stirring speed, and the initial stirring speed is taken as the final stirring speed.
[0043] Further, when the third unit determines the environmental impact index based on the operating environment data, determines the adjustment coefficient of the initial stirring speed according to the environmental impact index, and obtains the final stirring speed, it includes:
[0044] The operating environment data is analyzed to obtain the ambient temperature, ambient humidity, and ambient pressure.
[0045] The environmental impact index is calculated based on the ambient temperature, ambient humidity, and ambient pressure.
[0046] The environmental impact index is compared with historical data, and an adjustment coefficient for the initial stirring speed is determined based on the comparison results. The product of the adjustment coefficient and the initial stirring speed is taken as the final stirring speed.
[0047] When there is a historical environmental impact index in the historical data that is the same as the environmental impact index, the historical adjustment coefficient corresponding to the historical environmental impact index shall be used as the adjustment coefficient.
[0048] When there is no historical environmental impact index in the historical data that is the same as the environmental impact index, the difference between the environmental impact index and the historical environmental impact index is calculated one by one and recorded as the index difference; the adjustment coefficient of the initial stirring speed is determined based on the index difference.
[0049] Furthermore, when the third unit determines the adjustment coefficient of the initial stirring speed based on the exponential difference, it includes:
[0050] Obtain the absolute value of each exponential difference, denoted as the absolute exponential difference, and extract the minimum value of the absolute exponential difference;
[0051] If the minimum value of the absolute index difference corresponds to a unique data point, then the historical environmental impact index corresponding to the minimum value of the absolute index difference is obtained, and the historical adjustment coefficient corresponding to the historical environmental impact index is used as the adjustment coefficient.
[0052] If the minimum value of the absolute index difference is not unique, then obtain the historical environmental impact index corresponding to the minimum value of multiple absolute index differences, and calculate the average of the historical adjustment coefficients corresponding to all the historical environmental impact indices, and use the average value as the adjustment coefficient.
[0053] Compared with existing technologies, the beneficial effects of this invention are as follows: The drug mixing monitoring system for enema instruments provided by this invention can achieve real-time monitoring and precise control of the drug mixing process in enema instruments, thereby improving the accuracy and consistency of drug mixing and enhancing the efficiency and effectiveness of enema treatment. Specifically, the first unit collects the concentration data of the drug to be mixed and determines whether stirring is necessary based on the analysis results, ensuring the timeliness and accuracy of drug mixing. Simultaneously, determining the initial stirring speed based on the basic parameter data of the drug further ensures the uniformity and stability of drug mixing. The second unit collects image data of the drug and adjusts the initial stirring speed based on image feature values, enabling refined control of the drug mixing process. The third unit determines the environmental impact index based on the operating environment data of the enema instrument and adjusts the stirring speed accordingly, ensuring the stability and reliability of drug mixing under different environments. Finally, the fourth unit stores the environmental impact index, providing a reference and basis for subsequent drug mixing.
[0054] In another aspect, the present invention also proposes a method for monitoring drug mixing in an enema device, comprising the following steps:
[0055] Concentration data of the drug to be mixed is collected, the concentration data is analyzed, and it is determined whether the drug to be mixed needs to be stirred based on the analysis results; if so, basic parameter data of the drug to be mixed is collected, and the initial stirring speed of the drug to be mixed is determined based on the basic parameter data.
[0056] Image data of the drug to be mixed is acquired, and feature extraction is performed on the image data to obtain image feature values; based on the image feature values, it is determined whether the initial stirring speed should be adjusted.
[0057] When it is determined that the initial stirring speed needs to be adjusted, the operating environment data of the enema instrument is collected, the environmental impact index is determined based on the operating environment data, the adjustment coefficient of the initial stirring speed is determined according to the environmental impact index, and the final stirring speed is obtained.
[0058] Store the environmental impact index.
[0059] It is understandable that the drug mixing monitoring system and method used in enema instruments described above have the same beneficial effects, and will not be elaborated further here. Attached Figure Description
[0060] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0061] Figure 1 This is a structural block diagram of a drug mixing monitoring system for an enema instrument provided in an embodiment of the present invention;
[0062] Figure 2 A flowchart of a drug mixing monitoring method for an enema instrument provided in an embodiment of the present invention. Detailed Implementation
[0063] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the disclosure to those skilled in the art. It should be noted that, unless otherwise specified, embodiments and features in the embodiments of the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0064] See Figure 1 As shown in some embodiments of this application, this embodiment provides a drug mixing monitoring system for an enema instrument, including:
[0065] The first unit is configured to collect the concentration data of the drug to be mixed, analyze the concentration data, and determine whether the drug to be mixed needs to be stirred based on the analysis results; if so, it collects the basic parameter data of the drug to be mixed and determines the initial stirring speed of the drug to be mixed based on the basic parameter data.
[0066] The second unit is configured to acquire image data of the drugs to be mixed, extract features from the image data, obtain image feature values, and determine whether to adjust the initial stirring speed based on the image feature values.
[0067] The third unit is configured to collect the operating environment data of the enema instrument when it is determined that the initial stirring speed needs to be adjusted, determine the environmental impact index based on the operating environment data, determine the adjustment coefficient of the initial stirring speed based on the environmental impact index, and obtain the final stirring speed.
[0068] The fourth unit is configured as the storage environment impact index.
[0069] It is understood that the drug mixing monitoring system for enema instruments provided in this embodiment can achieve real-time monitoring and precise control of the drug mixing process in the enema instrument, thereby improving the accuracy and consistency of drug mixing and enhancing the efficiency and effectiveness of enema treatment. Specifically, the first unit collects the concentration data of the drug to be mixed and determines whether stirring is necessary based on the analysis results, ensuring the timeliness and accuracy of drug mixing. Simultaneously, determining the initial stirring speed based on the basic parameter data of the drug further ensures the uniformity and stability of drug mixing. The second unit collects image data of the drug and adjusts the initial stirring speed based on image feature values, enabling refined control of the drug mixing process. The third unit determines the environmental impact index based on the operating environment data of the enema instrument and adjusts the stirring speed accordingly, ensuring the stability and reliability of drug mixing under different environments. Finally, the fourth unit stores the environmental impact index, providing a reference and basis for subsequent drug mixing.
[0070] Specifically, when the first unit determines whether the drugs to be mixed need to be stirred based on the analysis results, it includes:
[0071] The concentration data is analyzed to obtain the maximum concentration difference of the drugs to be mixed.
[0072] The maximum concentration difference is compared with the maximum concentration difference threshold, and the result of the comparison determines whether the drugs to be mixed need to be stirred.
[0073] When the maximum concentration difference is greater than or equal to the maximum concentration difference threshold, it is determined that the drugs to be mixed need to be stirred.
[0074] When the maximum concentration difference is less than the maximum concentration difference threshold, it is determined that there is no need to stir the drugs to be mixed.
[0075] In this embodiment, the maximum concentration difference is calculated by measuring the concentration of the drug to be mixed at different liquid points.
[0076] In this embodiment, the maximum concentration difference threshold is preset based on the drug characteristics and the needs of enema treatment.
[0077] Understandably, when the maximum concentration difference of the drugs to be mixed exceeds this threshold, it means that the drug concentration distribution is uneven, and stirring is required to ensure that the drugs are mixed evenly. This judgment process ensures the timeliness and accuracy of drug mixing, avoiding poor enema treatment effects due to uneven drug concentration.
[0078] Specifically, when the first unit determines the initial stirring speed of the drugs to be mixed based on the basic parameter data, it includes:
[0079] Basic parameter data include the viscosity, density, and temperature of the drugs to be mixed;
[0080] Determine the basic stirring speed of the drug to be mixed based on its viscosity;
[0081] Determine whether to optimize the basic stirring speed based on the temperature.
[0082] If so, the optimization coefficient of the basic stirring speed is determined based on temperature and density, and the initial stirring speed is obtained.
[0083] Understandably, the viscosity, density, and temperature of a drug are important factors affecting stirring speed. Drugs with higher viscosity require slower stirring speeds to avoid generating excessive heat and bubbles, while variations in density and temperature can affect the drug's flowability and mixing efficiency. Therefore, by comprehensively considering these factors, the initial stirring speed can be determined more accurately, ensuring the uniformity and stability of the drug mixture. Furthermore, optimizing the basic stirring speed based on temperature can further adapt to the mixing requirements of different drugs at different temperatures, improving the accuracy and consistency of drug mixing.
[0084] Specifically, when determining the basic stirring speed of the drug to be mixed based on viscosity in the first unit, it includes:
[0085] The viscosity is compared with a first viscosity and a second viscosity, and the basic stirring speed of the drug to be mixed is determined based on the comparison result; wherein, the first viscosity is less than the second viscosity;
[0086] When the viscosity is less than or equal to the first viscosity, the basic stirring speed is determined to be the first stirring speed;
[0087] When the viscosity is greater than the first viscosity and less than or equal to the second viscosity, the basic stirring speed is determined to be the second stirring speed, which is greater than the first stirring speed.
[0088] When the viscosity is greater than the second viscosity, the basic stirring speed is determined to be the third stirring speed, which is greater than the second stirring speed.
[0089] In this embodiment, the first viscosity and the second viscosity are preset according to the characteristics of drug mixing and are used to distinguish the basic stirring speed under different viscosity ranges.
[0090] Understandably, drugs with lower viscosity require a slower initial stirring speed to avoid splashing and overmixing; drugs with moderate viscosity require a moderate second stirring speed to ensure uniform mixing; and drugs with higher viscosity require a faster third stirring speed to improve mixing efficiency. This viscosity-based stirring speed setting method can more flexibly adapt to the mixing needs of different drugs, further improving the accuracy and stability of drug mixing.
[0091] Specifically, when the first unit determines whether to optimize the basic stirring speed based on temperature, it includes:
[0092] Determine the target temperature corresponding to the temperature, and calculate the difference between the temperature and the target temperature, denoted as the temperature difference.
[0093] The temperature difference is compared with the temperature difference threshold, and the basic stirring speed is optimized based on the comparison results.
[0094] When the temperature difference is greater than or equal to the temperature difference threshold, it is determined that the basic stirring speed should be optimized.
[0095] When the temperature difference is less than the temperature difference threshold, it is determined that the basic stirring speed will not be optimized, and the basic stirring speed will be used as the initial stirring speed.
[0096] Understandably, temperature is one of the key factors affecting drug flowability and mixing efficiency. When there is a significant deviation between the actual temperature and the target temperature, the mixing characteristics of the drug may change, thus requiring corresponding optimization of the basic stirring speed. By calculating the temperature difference and comparing it with a preset temperature difference threshold, it is possible to accurately determine whether the stirring speed needs optimization, thereby ensuring the accuracy and stability of drug mixing. If it is determined that the basic stirring speed needs optimization, an optimization coefficient is further determined based on temperature and density to obtain a more suitable initial stirring speed. This process fully considers the impact of temperature on drug mixing characteristics, improving the flexibility and adaptability of drug mixing.
[0097] Specifically, when determining the optimization coefficient of the basic stirring speed based on temperature and density, and obtaining the initial stirring speed, the first unit includes:
[0098] Obtain the standard density corresponding to the density, and calculate the difference between the density and the standard density, denoted as the density difference;
[0099] The speed optimization factor is calculated based on the temperature difference and density difference.
[0100] The speed optimization factor is compared with the first speed optimization factor and the second speed optimization factor, and the optimization coefficient of the basic stirring speed is determined based on the comparison results; wherein, the first speed optimization factor is smaller than the second speed optimization factor.
[0101] When the speed optimization factor is less than or equal to the first speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the first optimization coefficient;
[0102] When the speed optimization factor is greater than the first speed optimization factor and less than or equal to the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the second optimization coefficient, and the second optimization coefficient is greater than the first optimization coefficient.
[0103] When the speed optimization factor is greater than the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the third optimization coefficient, and the third optimization coefficient is greater than the second optimization coefficient.
[0104] In this embodiment, when calculating the speed optimization factor, the temperature difference and density difference are first normalized to obtain normalized temperature difference and density difference values. Then, the normalized temperature difference and density difference values are weighted and summed to obtain the speed optimization factor. The weighting coefficients can be preset according to the drug characteristics and enema treatment requirements to ensure the accuracy and rationality of the speed optimization factor.
[0105] Understandably, when the actual temperature deviates from the target temperature and the drug density deviates from the standard density, the mixing effect of the drug may be affected. By calculating the temperature difference and density difference, and introducing normalization and weighted summation methods to calculate the speed optimization factor, the influence of temperature and density on the stirring speed can be more accurately assessed. By comparing the speed optimization factor with the preset speed optimization factor, a suitable optimization coefficient can be determined, thereby adjusting the basic stirring speed. This temperature and density-based optimization method not only improves the accuracy and stability of drug mixing but also enhances the system's adaptability and flexibility to different drug mixing characteristics.
[0106] The product of the optimization coefficient and the basic stirring speed is used as the initial stirring speed.
[0107] Specifically, when the second unit determines whether to adjust the initial stirring speed based on image feature values, it includes:
[0108] The image feature values are analyzed to obtain the mixing uniformity of the drugs to be mixed;
[0109] The mixing uniformity is compared with the mixing uniformity threshold, and the initial stirring speed is adjusted based on the comparison results.
[0110] When the mixing uniformity is less than the mixing uniformity threshold, it is determined that the initial stirring speed needs to be adjusted.
[0111] When the mixing uniformity is greater than or equal to the mixing uniformity threshold, it is determined that no adjustment to the initial stirring speed is required, and the initial stirring speed is used as the final stirring speed.
[0112] In this embodiment, the calculation process of mixing uniformity is as follows: the image feature values are analyzed by image processing algorithm to extract the color distribution and texture features of the drug mixing area, the color distribution uniformity and texture feature uniformity are calculated based on the color distribution and texture features, and the average value of the color distribution uniformity and texture feature uniformity is taken as the mixing uniformity.
[0113] In this embodiment, the process of calculating the color distribution uniformity and texture feature uniformity based on color distribution and texture features is as follows: First, the color distribution is divided into several color intervals, the number of pixels in each color interval is counted, and the proportion of the number of pixels in each color interval to the total number of pixels is calculated. Then, the variance of the proportion values of all color intervals is used as the color distribution uniformity. Second, the texture features are analyzed in the frequency domain to extract the spectral features of the texture, and the energy distribution uniformity of the spectral features is calculated as the texture feature uniformity.
[0114] Understandably, the uniformity of color distribution and texture characteristics reflects the homogeneity of drug mixing. Low mixing uniformity indicates uneven drug mixing, potentially leading to localized excessively high or low concentrations, which can affect the effectiveness of enema treatment. Therefore, the initial stirring speed needs to be adjusted to improve the uniformity of drug mixing.
[0115] Specifically, the third unit determines the environmental impact index based on operating environment data, determines the adjustment coefficient for the initial stirring speed based on the environmental impact index, and obtains the final stirring speed, including:
[0116] The operating environment data is analyzed to obtain ambient temperature, ambient humidity, and ambient pressure.
[0117] The environmental impact index is calculated based on ambient temperature, ambient humidity, and ambient pressure.
[0118] The environmental impact index is compared with historical data, and the adjustment coefficient of the initial stirring speed is determined based on the comparison results. The product of the adjustment coefficient and the initial stirring speed is used as the final stirring speed.
[0119] When a historical environmental impact index with the same historical impact index exists in the historical data, the historical adjustment coefficient corresponding to the historical environmental impact index shall be used as the adjustment coefficient.
[0120] When there is no historical environmental impact index that is identical to the environmental impact index in the historical data, calculate the difference between the environmental impact index and the historical environmental impact index one by one, and record it as the index difference; determine the adjustment coefficient of the initial stirring speed based on the index difference.
[0121] In this embodiment, the environmental impact index is obtained by normalizing the ambient temperature, humidity, and pressure, assigning corresponding weighting coefficients, and then summing them up. The weighting coefficients are set based on a large amount of experimental data to ensure that the environmental impact index can accurately reflect the comprehensive impact of the enema instrument's operating environment.
[0122] Understandably, the operating environment of an enema device has a significant impact on the drug mixing process. Changes in ambient temperature, humidity, and pressure can affect drug flowability and mixing efficiency. Therefore, by collecting and analyzing this operating environment data, the impact of the environment on drug mixing can be more accurately assessed, thereby determining the appropriate stirring speed adjustment coefficient. When a historical environmental impact index exists that matches the existing one, the corresponding historical adjustment coefficient can be directly used. This not only saves calculation time but also ensures the accuracy and reliability of the adjustment coefficient. When no identical environmental impact index exists in the historical data, the adjustment coefficient is determined by calculating the index difference. Although this process is relatively complex, it ensures the stability and consistency of drug mixing under different environments. This adjustment method based on operating environment data not only improves the accuracy and stability of drug mixing but also enhances the system's adaptability and robustness to different environmental conditions.
[0123] Specifically, when determining the adjustment coefficient for the initial stirring speed based on the exponential difference in the third unit, it includes:
[0124] Obtain the absolute value of each exponential difference, denoted as the absolute exponential difference, and extract the minimum value of the absolute exponential difference;
[0125] If the minimum value of the absolute index difference corresponds to a unique data point, then obtain the historical environmental impact index corresponding to the minimum value of the absolute index difference, and use the historical adjustment coefficient corresponding to the historical environmental impact index as the adjustment coefficient.
[0126] If the minimum value of the absolute index difference is not unique, obtain the historical environmental impact index corresponding to the minimum value of multiple absolute index differences, and calculate the average of the historical adjustment coefficients corresponding to all historical environmental impact indices. Use the average value as the adjustment coefficient.
[0127] Understandably, determining the adjustment coefficient by finding the data closest to the historical environmental impact index ensures its accuracy and rationality. When multiple close historical environmental impact indices exist, calculating the average of these historical adjustment coefficients can further smooth data fluctuations and improve the stability and reliability of the adjustment coefficients. This method of determining adjustment coefficients based on historical data fully utilizes the information in historical data, not only improving the accuracy and stability of drug mixing but also enhancing the system's adaptability to different environmental conditions. After determining the adjustment coefficient, its product with the initial stirring speed is used as the final stirring speed, thereby achieving refined control of the drug mixing process.
[0128] See Figure 2 As shown in some embodiments of this application, this embodiment provides a method for monitoring drug mixing in an enema device, including the following steps:
[0129] S100: Collect the concentration data of the drug to be mixed, analyze the concentration data, and determine whether the drug to be mixed needs to be stirred based on the analysis results; if so, collect the basic parameter data of the drug to be mixed, and determine the initial stirring speed of the drug to be mixed based on the basic parameter data.
[0130] S200: Acquires image data of the drug to be mixed, extracts features from the image data, and obtains image feature values; determines whether to adjust the initial stirring speed based on the image feature values;
[0131] S300: When it is determined that the initial stirring speed needs to be adjusted, the operating environment data of the enema instrument is collected, the environmental impact index is determined based on the operating environment data, the adjustment coefficient of the initial stirring speed is determined according to the environmental impact index, and the final stirring speed is obtained.
[0132] S400: Storage Environment Impact Index.
[0133] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program goods. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program goods embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0134] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program goods according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0135] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0136] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A drug mixing monitoring system for an enema instrument, characterized in that, include: The first unit is configured to collect concentration data of the drug to be mixed, analyze the concentration data, and determine whether the drug to be mixed needs to be stirred based on the analysis results; if so, it collects basic parameter data of the drug to be mixed and determines the initial stirring speed of the drug to be mixed based on the basic parameter data. The second unit is configured to acquire image data of the drugs to be mixed and to extract features from the image data to obtain image feature values; Determine whether to adjust the initial stirring speed based on the image feature values; The third unit is configured to, when it is determined that the initial stirring speed needs to be adjusted, collect the operating environment data of the enema instrument, determine the environmental impact index based on the operating environment data, determine the adjustment coefficient of the initial stirring speed according to the environmental impact index, and obtain the final stirring speed. The fourth unit is configured to store the environmental impact index.
2. The drug mixing monitoring system for an enema instrument according to claim 1, characterized in that, When the first unit determines whether the drug to be mixed needs to be stirred based on the analysis results, it includes: The concentration data is analyzed to obtain the maximum concentration difference of the drugs to be mixed; The maximum concentration difference is compared with the maximum concentration difference threshold, and the result of the comparison determines whether the drug to be mixed needs to be stirred. When the maximum concentration difference is greater than or equal to the maximum concentration difference threshold, it is determined that the drug to be mixed needs to be stirred. When the maximum concentration difference is less than the maximum concentration difference threshold, it is determined that the drugs to be mixed do not need to be stirred.
3. The drug mixing monitoring system for an enema instrument according to claim 2, characterized in that, When the first unit determines the initial stirring speed of the drug to be mixed based on the basic parameter data, it includes: The basic parameter data includes the viscosity, density, and temperature of the drug to be mixed; The basic stirring speed of the drug to be mixed is determined based on the viscosity. Determine whether to optimize the basic stirring speed based on the temperature. If so, the optimization coefficient of the basic stirring speed is determined based on the temperature and density, and the initial stirring speed is obtained.
4. The drug mixing monitoring system for an enema instrument according to claim 3, characterized in that, When the first unit determines the basic stirring speed of the drug to be mixed based on the viscosity, it includes: The viscosity is compared with a first viscosity and a second viscosity, and the basic stirring speed of the drug to be mixed is determined based on the comparison result; wherein, the first viscosity is less than the second viscosity; When the viscosity is less than or equal to the first viscosity, the basic stirring speed is determined to be the first stirring speed; When the viscosity is greater than the first viscosity and less than or equal to the second viscosity, the basic stirring speed is determined to be the second stirring speed, which is greater than the first stirring speed. When the viscosity is greater than the second viscosity, the basic stirring speed is determined to be the third stirring speed, which is greater than the second stirring speed.
5. The drug mixing monitoring system for an enema instrument according to claim 4, characterized in that, When the first unit determines whether to optimize the basic stirring speed based on the temperature, it includes: Determine the target temperature corresponding to the stated temperature, and calculate the difference between the stated temperature and the target temperature, denoted as the temperature difference. The temperature difference is compared with the temperature difference threshold, and the basic stirring speed is optimized based on the comparison result. When the temperature difference is greater than or equal to the temperature difference threshold, it is determined that the basic stirring speed should be optimized. When the temperature difference is less than the temperature difference threshold, it is determined that the basic stirring speed will not be optimized, and the basic stirring speed will be used as the initial stirring speed.
6. The drug mixing monitoring system for an enema instrument according to claim 5, characterized in that, When the first unit determines the optimization coefficient of the basic stirring speed based on the temperature and density, and obtains the initial stirring speed, it includes: Obtain the standard density corresponding to the density, and calculate the difference between the density and the standard density, denoted as the density difference; Calculate the speed optimization factor based on the temperature difference and density difference; The speed optimization factor is compared with the first speed optimization factor and the second speed optimization factor, and the optimization coefficient of the basic stirring speed is determined based on the comparison result; wherein the first speed optimization factor is smaller than the second speed optimization factor. When the speed optimization factor is less than or equal to the first speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the first optimization coefficient; When the speed optimization factor is greater than the first speed optimization factor and less than or equal to the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined to be the second optimization coefficient, and the second optimization coefficient is greater than the first optimization coefficient. When the speed optimization factor is greater than the second speed optimization factor, the optimization coefficient of the basic stirring speed is determined as the third optimization coefficient, and the third optimization coefficient is greater than the second optimization coefficient; The product of the optimization coefficient and the basic stirring speed is used as the initial stirring speed.
7. The drug mixing monitoring system for an enema instrument according to claim 6, characterized in that, When the second unit determines whether to adjust the initial stirring speed based on the image feature values, it includes: The image feature values are analyzed to obtain the mixing uniformity of the drugs to be mixed; The mixing uniformity is compared with the mixing uniformity threshold, and the initial stirring speed is adjusted based on the comparison result. When the mixing uniformity is less than the mixing uniformity threshold, it is determined that the initial stirring speed needs to be adjusted. When the mixing uniformity is greater than or equal to the mixing uniformity threshold, it is determined that there is no need to adjust the initial stirring speed, and the initial stirring speed is taken as the final stirring speed.
8. The drug mixing monitoring system for an enema instrument according to claim 7, characterized in that, The third unit determines the environmental impact index based on the operating environment data, determines the adjustment coefficient of the initial stirring speed according to the environmental impact index, and obtains the final stirring speed, including: The operating environment data is analyzed to obtain the ambient temperature, ambient humidity, and ambient pressure. The environmental impact index is calculated based on the ambient temperature, ambient humidity, and ambient pressure. The environmental impact index is compared with historical data, and an adjustment coefficient for the initial stirring speed is determined based on the comparison results. The product of the adjustment coefficient and the initial stirring speed is taken as the final stirring speed. When there is a historical environmental impact index in the historical data that is the same as the environmental impact index, the historical adjustment coefficient corresponding to the historical environmental impact index shall be used as the adjustment coefficient. When there is no historical environmental impact index in the historical data that is the same as the environmental impact index, the difference between the environmental impact index and the historical environmental impact index is calculated one by one and recorded as the index difference; the adjustment coefficient of the initial stirring speed is determined based on the index difference.
9. The drug mixing monitoring system for an enema apparatus according to claim 8, characterized in that, When the third unit determines the adjustment coefficient of the initial stirring speed based on the exponential difference, it includes: Obtain the absolute value of each exponential difference, denoted as the absolute exponential difference, and extract the minimum value of the absolute exponential difference; If the minimum value of the absolute index difference corresponds to a unique data point, then the historical environmental impact index corresponding to the minimum value of the absolute index difference is obtained, and the historical adjustment coefficient corresponding to the historical environmental impact index is used as the adjustment coefficient. If the minimum value of the absolute index difference is not unique, then obtain the historical environmental impact index corresponding to the minimum value of multiple absolute index differences, and calculate the average of the historical adjustment coefficients corresponding to all the historical environmental impact indices, and use the average value as the adjustment coefficient.
10. A method for monitoring drug mixing in an enema apparatus, applied to the drug mixing monitoring system for an enema apparatus as described in any one of claims 1-9, characterized in that, include: Collect concentration data of the drugs to be mixed, analyze the concentration data, and determine whether the drugs to be mixed need to be stirred based on the analysis results; If so, the basic parameter data of the drug to be mixed is collected, and the initial stirring speed of the drug to be mixed is determined based on the basic parameter data; Image data of the drugs to be mixed is acquired, and feature extraction is performed on the image data to obtain image feature values; Determine whether to adjust the initial stirring speed based on the image feature values; When it is determined that the initial stirring speed needs to be adjusted, the operating environment data of the enema instrument is collected, the environmental impact index is determined based on the operating environment data, the adjustment coefficient of the initial stirring speed is determined according to the environmental impact index, and the final stirring speed is obtained. Store the environmental impact index.