Methods and apparatus for determining reaction parameters

By using an image detection module to identify the real-time color-changing reaction of the liquid medicine and reagents, the problem of the inability to monitor the reaction of the liquid medicine and reagents in existing technologies has been solved, thereby improving the accuracy and efficiency of liquid medicine preparation.

CN115096879BActive Publication Date: 2025-10-28GUANGDONG HAIKAIPU NEW PHARM PACKAGING MATERIALS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210601547.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2025-10-28
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Existing automated drug dispensing technology cannot monitor the reaction between the drug solution and reagents in real time, resulting in low accuracy and efficiency in drug dispensing.

Method used

An image detection module is used to identify the real-time color-changing reaction process of the drug solution and reagent. By comparing the real-time reaction results with the standard reaction results, the real-time reaction parameters of the drug solution and reagent, such as pH and osmotic pressure, are determined.

Benefits of technology

It enables real-time monitoring of the reaction process between the drug solution and reagents, improves the accuracy and efficiency of drug preparation, and enhances the reliability and manufacturing accuracy of the reaction parameter determination device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115096879B_ABST
    Figure CN115096879B_ABST
Patent Text Reader

Abstract

This invention discloses a method and apparatus for determining reaction parameters. When a reaction between a drug solution and a reagent is detected, the method uses an image detection module to identify the real-time color-changing reaction process of the drug solution and reagent, obtaining the color-changing curve of the reagent and / or the real-time color change value of the reagent. These values ​​are then compared with a determined standard reaction result to determine the real-time reaction parameters of the drug solution and reagent. These real-time reaction parameters include the pH and / or osmotic pressure of the drug solution. Therefore, this invention, by automatically identifying the real-time reaction process of the drug solution and reagent and comparing the identified real-time reaction result with the determined standard reaction result, can quickly detect accurate drug solution reaction parameters, such as pH and / or osmotic pressure. It also improves the manufacturing accuracy and reliability of the reaction parameter determination apparatus. Furthermore, when this solution is applied to training, it also improves the accuracy and efficiency of drug preparation training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pharmaceutical liquid detection technology, and in particular to a method and apparatus for determining reaction parameters. Background Technology

[0002] Since the advent of intravenous infusion therapy in humans, the method of drug preparation has remained fundamentally unchanged. The drugs are always dissolved in a solvent before being added to the basic infusion solution, such as glucose injection, sodium chloride injection, or glucose-sodium chloride injection, with the therapeutic drug added to obtain a complete infusion.

[0003] Furthermore, with the rapid development of intelligent technology, automated drug dispensing technology has emerged, which uses robotic arms to automatically dispense medications. The advent of robotic arms has significantly reduced the workload and improved the accuracy of clinical drug dispensing. However, in practice, it has been found that the problems solved by existing automated drug dispensing technology are still limited to replacing human hands with machines to perform repetitive tasks. That is, it only frees the hands of the dispensing operator to a certain extent, and still cannot know the reaction between the drug solution and reagents after the medication is prepared. Summary of the Invention

[0004] This invention provides a method and apparatus for determining reaction parameters, which can accurately know the reaction process between the drug solution and the reagent.

[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a method for determining reaction parameters, the method comprising:

[0006] When a reaction between the liquid medicine and the reagent is detected, the real-time color change reaction process of the liquid medicine and the reagent is identified based on the image detection module, and the real-time reaction result of the liquid medicine and the reagent is obtained. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent.

[0007] Based on the identified real-time reaction results and the determined standard reaction results, the real-time reaction parameters of the drug solution and the reagent are determined, including the pH and / or osmotic pressure of the drug solution.

[0008] As an optional implementation, in the first aspect of the present invention, the real-time reaction result further includes the real-time reaction temperature of the drug solution and the reagent;

[0009] The step of determining the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results includes:

[0010] The identified real-time reaction results are compared with the determined standard reaction results to obtain the real-time reaction parameters between the drug solution and the reagent; or,

[0011] The information corresponding to the drug solution is determined, and the real-time reaction result, the determined standard reaction result, and the information corresponding to the drug solution are input into a pre-determined reaction recognition model for analysis. The analysis result output by the reaction recognition model is obtained as the real-time reaction parameter between the drug solution and the reagent.

[0012] The information corresponding to the drug solution includes information about the drug solution and / or information about the reagent. The information about the drug solution includes the identification information of the drug solution and / or the volume of the drug solution. The information about the reagent includes the type of the reagent and / or the volume of the reagent. The type of the reagent includes test strip type or liquid type.

[0013] As an optional implementation, in the first aspect of the present invention, before the real-time color-changing reaction process of the drug solution and the reagent is identified based on the image detection module to obtain the real-time reaction result of the drug solution and the reagent, the method further includes:

[0014] Determine whether the current light source type of the image detection module matches the information corresponding to the liquid medicine;

[0015] When a mismatch is detected, a target light source that matches the information corresponding to the medicine is selected from all the light sources of the image detection module, and the current light source of the image detection module is switched to the target light source.

[0016] As an optional implementation, in the first aspect of the present invention, the method further includes:

[0017] Determine information about the container used to hold the reagent, the information about the container including at least one of the following: the shape of the container, the material of the container, the thickness of the container, the transparent surface area of ​​the container, and the airtightness of the container;

[0018] Ambient light information is collected within a preset area centered on the location of the image detection module. The ambient light information within the preset area includes the light intensity and light angle of the preset area.

[0019] Based on the information of the container and the ambient light information of the preset area, the target information formed by the ambient light of the preset area illuminating the liquid in the container is determined. The target information includes the irradiated area of ​​the liquid in the container, the relative angle formed by the ambient light of the preset area and the liquid surface in the container, and the light intensity of the liquid surface in the container.

[0020] Based on the target information, determine whether the working parameters of the image detection module need to be adjusted. When it is determined that the working parameters of the image detection module need to be adjusted, adjust the working parameters of the image detection module according to the target information, and trigger the execution of the real-time color change reaction process of the drug solution and the reagent based on the image detection module to obtain the real-time reaction result of the drug solution and the reagent.

[0021] As an optional implementation, in the first aspect of the present invention, before the real-time color-changing reaction process of the drug solution and the reagent is identified based on the image detection module to obtain the real-time reaction result of the drug solution and the reagent, the method further includes:

[0022] Determine whether the image detection module needs to be calibrated; if it is determined that the image detection module needs to be calibrated, determine the calibration information corresponding to the image detection module.

[0023] Based on the determined correction information corresponding to the image detection module, the correction type of the image detection module is determined. The correction type includes a position correction type and / or a visual correction type, wherein the position correction type is used to indicate the correction of the position of the image detection module, and the visual correction type is used to indicate the correction of the image detection module's color recognition.

[0024] A correction method matching the correction type is determined, and the image detection module is corrected based on the correction method until the image detection module is corrected to meet the determined detection conditions.

[0025] As an optional implementation, in the first aspect of the present invention, the correction information corresponding to the image detection module includes one or more of a first type of correction information, a second type of correction information, and a third type of correction information. The first type of correction information includes the phase position between the image detection module and the container for holding the reagent and / or the jitter information of the image detection module within a preset time period. The second type of correction information includes the light source type of the image detection module required for this detection and / or the reagent type required for this detection. The third type of correction information includes one or more of the following: the required detection accuracy of the drug solution, the ambient light information of the location of the image detection module, and the interval between the current time and the last time the image detection module ended. The jitter information of the image detection module includes the number of jitters of the image detection module and / or the jitter amplitude of the image detection module. The start time of the preset time period is the time when it is determined that the reaction parameters of the drug solution need to be detected.

[0026] As an optional implementation, in the first aspect of the present invention, determining whether the image detection module needs to be corrected includes:

[0027] Determine whether the image detection module has a corresponding corrected identifier. If it is determined that the corrected identifier does not exist, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type and the visual correction type.

[0028] When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined position detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type.

[0029] When it is determined that the corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined visual detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the visual correction type.

[0030] As an optional implementation, in the first aspect of the present invention, when it is determined that the corrected identifier does not exist, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes:

[0031] Based on the image detection module, the reaction process of each sample drug solution in multiple sample drug solutions and the corresponding sample reagent in that group of sample drug solutions is identified, and the reaction result of each sample drug solution and the corresponding sample reagent in that group of sample drug solutions is obtained. Each sample drug solution in a group consists of at least one sample drug solution, the reaction parameters of each sample drug solution in each group of sample drug solutions are known, and the pH values ​​of each sample drug solution are different. The reaction result of each sample drug solution includes the color corresponding to the pH value of that group of sample drug solutions and the image corresponding to the pH value of that sample drug solution.

[0032] Establish the correlation between the reaction parameters of each group of sample solutions, the corresponding reaction results of that group of sample solutions, and the corresponding sample reagents for that group of sample solutions, and correct the image detection module based on the correlation between each group of sample solutions; or,

[0033] When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes:

[0034] Based on the determined position detection conditions and correction information corresponding to the image detection module, the image detection module is corrected until it meets the position detection conditions; or...

[0035] When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes:

[0036] Based on the determined sample response parameters matching the image detection module, the visual detection conditions corresponding to the image detection module, and the correction information corresponding to the image detection module, the image detection module is corrected until it meets the visual detection conditions.

[0037] A second aspect of the present invention discloses an apparatus for determining reaction parameters, the apparatus comprising:

[0038] The identification module, when detecting a reaction between the liquid medicine and the reagent, identifies the real-time color change reaction process of the liquid medicine and the reagent based on the image detection module, and obtains the real-time reaction result of the liquid medicine and the reagent. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent.

[0039] The determination module is used to determine the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results. The real-time reaction parameters of the drug solution and the reagent include the pH and / or the osmotic pressure of the drug solution.

[0040] As an optional implementation, in a second aspect of the present invention, the real-time reaction result further includes the real-time reaction temperature of the drug solution and the reagent;

[0041] The method by which the determining module determines the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results specifically includes:

[0042] The identified real-time reaction results are compared with the determined standard reaction results to obtain the real-time reaction parameters between the drug solution and the reagent; or,

[0043] The information corresponding to the drug solution is determined, and the real-time reaction result, the determined standard reaction result, and the information corresponding to the drug solution are input into a pre-determined reaction recognition model for analysis. The analysis result output by the reaction recognition model is obtained as the real-time reaction parameter between the drug solution and the reagent.

[0044] The information corresponding to the drug solution includes information about the drug solution and / or information about the reagent. The information about the drug solution includes the identification information of the drug solution and / or the volume of the drug solution. The information about the reagent includes the type of the reagent and / or the volume of the reagent. The type of the reagent includes test strip type or liquid type.

[0045] As an optional implementation, in a second aspect of the invention, the apparatus further includes:

[0046] The first judgment module is used to determine whether the current light source type of the image detection module matches the information corresponding to the drug solution before the recognition module identifies the real-time color change reaction process of the drug solution and the reagent based on the image detection module and obtains the real-time reaction result of the drug solution and the reagent.

[0047] The filtering module is used to filter target light sources that match the information corresponding to the medicine from all light sources in the image detection module when the first judgment module determines that there is a mismatch;

[0048] The switching module is used to switch the current light source of the image detection module to the target light source.

[0049] As an optional implementation, in a second aspect of the invention, the apparatus further includes:

[0050] The determining module is further configured to determine information about the container used to hold the reagent, the information about the container including at least one of the following: the shape of the container, the material of the container, the thickness of the container, the transparent area of ​​the surface of the container, and the sealing performance of the container;

[0051] The acquisition module is used to acquire ambient light information within a preset area centered on the location of the image detection module. The ambient light information within the preset area includes the light intensity and light angle of the preset area.

[0052] The determining module is further configured to determine, based on the information of the container and the ambient light information of the preset area, the target information formed by the ambient light illuminating the liquid in the container within the preset area, wherein the target information includes the irradiated area of ​​the liquid in the container, the relative angle formed by the ambient light in the preset area and the liquid surface in the container, and the light intensity of the liquid surface in the container.

[0053] The second judgment module is used to determine whether the working parameters of the image detection module need to be adjusted based on the target information.

[0054] The adjustment module is used to adjust the working parameters of the image detection module according to the target information when the second judgment module determines that the working parameters of the image detection module need to be adjusted, and to trigger the recognition module to perform the operation of recognizing the real-time color change reaction process of the drug liquid and the reagent based on the image detection module, so as to obtain the real-time reaction result of the drug liquid and the reagent.

[0055] As an optional implementation, in a second aspect of the invention, the apparatus further includes:

[0056] The third judgment module is used to determine whether the image detection module needs to be corrected before the recognition module recognizes the real-time color change reaction process of the drug solution and the reagent based on the image detection module and obtains the real-time reaction result of the drug solution and the reagent.

[0057] The determining module is further configured to determine the correction information corresponding to the image detection module when the third determining module determines that the image detection module needs to be corrected;

[0058] The determining module is further configured to determine the correction type of the image detection module based on the determined correction information corresponding to the image detection module. The correction type includes a position correction type and / or a visual correction type, wherein the position correction type is used to indicate the correction of the position of the image detection module, and the visual correction type is used to indicate the correction of the color recognition of the image detection module.

[0059] A correction module is used to determine a correction method that matches the correction type, and to correct the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions.

[0060] As an optional implementation, in the second aspect of the present invention, the correction information corresponding to the image detection module includes one or more of a first type of correction information, a second type of correction information, and a third type of correction information. The first type of correction information includes the phase position between the image detection module and the container for holding the reagent and / or the jitter information of the image detection module within a preset time period. The second type of correction information includes the light source type of the image detection module required for this detection and / or the reagent type required for this detection. The third type of correction information includes one or more of the following: the required detection accuracy of the drug solution, the ambient light information of the location of the image detection module, and the interval between the current time and the last time the image detection module ended. The jitter information of the image detection module includes the number of jitters of the image detection module and / or the jitter amplitude of the image detection module. The start time of the preset time period is the time when it is determined that the reaction parameters of the drug solution need to be detected.

[0061] As an optional implementation, in the second aspect of the present invention, the method by which the third determining module determines whether the image detection module needs to be corrected specifically includes:

[0062] Determine whether the image detection module has a corresponding corrected identifier. If it is determined that the corrected identifier does not exist, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type and the visual correction type.

[0063] When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined position detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type.

[0064] When it is determined that the corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined visual detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the visual correction type.

[0065] As an optional implementation, in a second aspect of the present invention, when it is determined that the corrected identifier does not exist, the correction module determines a correction method matching the correction type, and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specifically, this includes:

[0066] Based on the image detection module, the reaction process of each sample drug solution in multiple sample drug solutions and the corresponding sample reagent in that group of sample drug solutions is identified, and the reaction result of each sample drug solution and the corresponding sample reagent in that group of sample drug solutions is obtained. Each sample drug solution in a group consists of at least one sample drug solution, the reaction parameters of each sample drug solution in each group of sample drug solutions are known, and the pH values ​​of each sample drug solution are different. The reaction result of each sample drug solution includes the color corresponding to the pH value of that group of sample drug solutions and the image corresponding to the pH value of that sample drug solution.

[0067] Establish the correlation between the reaction parameters of each group of sample solutions, the corresponding reaction results of that group of sample solutions, and the corresponding sample reagents for that group of sample solutions, and correct the image detection module based on the correlation between each group of sample solutions; or,

[0068] When it is determined that the corrected identifier exists and the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, the correction module determines a correction method that matches the correction type, and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specifically, the correction methods include:

[0069] Based on the determined position detection conditions and correction information corresponding to the image detection module, the image detection module is corrected until it meets the position detection conditions; or...

[0070] When it is determined that the corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, the correction module determines a correction method that matches the correction type, and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specifically, the correction methods include:

[0071] Based on the determined sample response parameters matching the image detection module, the visual detection conditions corresponding to the image detection module, and the correction information corresponding to the image detection module, the image detection module is corrected until it meets the visual detection conditions.

[0072] A third aspect of the present invention discloses another apparatus for determining reaction parameters, the apparatus comprising:

[0073] Memory containing executable program code;

[0074] A processor coupled to the memory;

[0075] The processor calls the executable program code stored in the memory to execute some or all of the steps in the method for determining any reaction parameter disclosed in the first aspect of the present invention.

[0076] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps in the method for determining any reaction parameter disclosed in the first aspect of the present invention.

[0077] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0078] In this embodiment of the invention, when a reaction between a drug solution and a reagent is detected, the real-time color-changing reaction process of the drug solution and reagent is identified based on an image detection module to obtain the real-time reaction result of the drug solution and reagent. This real-time reaction result includes the color-changing curve of the reagent and / or the real-time color change value of the reagent. Based on the identified real-time reaction result and the determined standard reaction result, the real-time reaction parameters of the drug solution and reagent are determined. These real-time reaction parameters include the pH and / or osmotic pressure corresponding to the drug solution. Therefore, this invention, by automatically identifying the real-time reaction process of the drug solution and reagent and comparing the identified real-time reaction result with the determined standard reaction result, can quickly detect accurate drug solution reaction parameters, such as pH and / or osmotic pressure. It also helps improve the manufacturing accuracy and reliability of the reaction parameter determination device. Furthermore, when this solution is applied to training, it also helps improve the accuracy and efficiency of drug preparation training. Attached Figure Description

[0079] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0080] Figure 1 This is a flowchart illustrating a method for determining reaction parameters disclosed in an embodiment of the present invention;

[0081] Figure 2 This is a flowchart illustrating another method for determining reaction parameters disclosed in an embodiment of the present invention;

[0082] Figure 3 This is a schematic diagram of the structure of a reaction parameter determination device disclosed in an embodiment of the present invention;

[0083] Figure 4 This is a schematic diagram of another reaction parameter determination device disclosed in an embodiment of the present invention;

[0084] Figure 5 This is a schematic diagram of the structure of another reaction parameter determination device disclosed in an embodiment of the present invention. Detailed Implementation

[0085] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0086] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0087] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0088] This invention discloses a method and apparatus for determining reaction parameters. It can automatically identify the real-time reaction process between a drug solution and a reagent, and compare the identified real-time reaction results with determined standard reaction results. This allows for the rapid and accurate detection of drug solution reaction parameters, such as pH and / or osmotic pressure. Furthermore, it improves the manufacturing accuracy and reliability of the reaction parameter determination apparatus. When applied to training, this method also enhances the accuracy and efficiency of drug preparation training. The method and apparatus for determining reaction parameters described in this invention will be described in detail below.

[0089] Example 1

[0090] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating a method for determining reaction parameters disclosed in an embodiment of the present invention. Wherein, Figure 1The described method can be applied to a device for determining reaction parameters, wherein the device includes either a detection device or a detection server, wherein the detection server includes a local server or a cloud server. Figure 1 As shown, the method for determining this reaction parameter may include the following operations:

[0091] 101. When a reaction between the liquid medicine and the reagent is detected, the real-time color change reaction process of the liquid medicine and the reagent is identified based on the image detection module, and the real-time reaction result of the liquid medicine and the reagent is obtained. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent.

[0092] In this embodiment of the invention, optionally, the drug solution can be any drug solution for which reaction parameters need to be detected. Optionally, the real-time reaction result also includes the real-time reaction temperature of the drug solution and reagent. The reagent type includes liquid and test strip types. When the reagent type is liquid, the real-time reaction result also includes one or more of the following: real-time reaction bubbles, real-time reaction mist, and real-time reaction odor. Furthermore, when the reagent type is test strip, the reaction information of the drug solution can also include real-time changes in the reagent's texture. The more content included in the real-time reaction result, the more beneficial it is to improving the accuracy and reliability of the drug solution's reaction parameter analysis.

[0093] 102. Based on the identified real-time reaction results and the determined standard reaction results, determine the real-time reaction parameters of the drug solution and the reagent. The real-time reaction parameters of the drug solution and the reagent include the pH and / or the osmotic pressure of the drug solution.

[0094] In this embodiment of the invention, optionally, different drug solutions correspond to different standard reaction results. The standard reaction results for each drug solution include multiple standard reaction colors for that drug solution, as well as the pH and osmotic pressure corresponding to each standard reaction color. Furthermore, the higher the grade of the drug solution, the more standard reaction colors it has.

[0095] As can be seen, the method described in the embodiments of the present invention can quickly detect accurate drug reaction parameters, such as pH and / or osmotic pressure, by automatically identifying the real-time reaction process of the drug solution and reagents and comparing the identified real-time reaction results with the determined standard reaction results; it is also beneficial to improve the manufacturing accuracy and reliability of the reaction parameter determination device; and when this solution is applied to training, it is also beneficial to improve the accuracy and efficiency of drug preparation training.

[0096] In an optional embodiment, the real-time reaction parameters of the drug solution and reagent are determined based on the identified real-time reaction results and the determined standard reaction results, including:

[0097] The identified real-time reaction results are compared with the determined standard reaction results to obtain the real-time reaction parameters of the drug solution and reagent; or,

[0098] The information corresponding to the drug solution is determined, and the real-time reaction results, the determined standard reaction results, and the information corresponding to the drug solution are input into the pre-determined reaction recognition model for analysis. The analysis results output by the reaction recognition model are obtained as the real-time reaction parameters between the drug solution and the reagent.

[0099] In this optional embodiment, the information corresponding to the drug solution may include information about the drug solution and / or the reagent. The drug solution information includes the drug solution's identification information and / or the volume of the drug solution. The reagent information includes the reagent type and / or the reagent volume. The reagent type may include test strip type or liquid type. The more information the drug solution contains, the more beneficial it is to improving the accuracy and reliability of determining the real-time reaction parameters of the drug solution and reagent.

[0100] As can be seen, this optional embodiment can enrich the methods for determining the real-time reaction parameters of the drug solution and reagent by comparing the real-time reaction results of the drug solution and reagent with the standard reaction results, or by directly inputting the real-time reaction results of the drug solution and reagent with other information into the reaction recognition model for analysis.

[0101] In another optional embodiment, before obtaining the real-time reaction result of the drug solution and reagent by recognizing the real-time color-changing reaction process based on the image detection module, the method may further include the following steps:

[0102] Determine whether the current light source type of the image detection module matches the information corresponding to the liquid medicine;

[0103] When a mismatch is detected, a target light source that matches the information corresponding to the medicine is selected from all the light sources in the image detection module, and the current light source of the image detection module is switched to the target light source.

[0104] In this optional embodiment, all light sources of the image detection module include one of the following: visible light source, ultraviolet light source, infrared light source, and other light sources.

[0105] In this optional embodiment, if the current light source type of the image detection module is a visible light source and the reagent type is a liquid, it indicates that the current light source type of the image detection module does not match the information corresponding to the liquid. In this case, the visible light source of the image detection module needs to be switched to an ultraviolet light source.

[0106] In this optional embodiment, when a match is determined, the above-mentioned real-time color change reaction process of the drug solution and reagent based on the image detection module is directly triggered to obtain the real-time reaction result of the drug solution and reagent.

[0107] As can be seen, this optional embodiment improves the accuracy and reliability of the operation of identifying the real-time color change reaction process of the drug solution and reagent by first ensuring that the current light source type of the image detection module matches the reagent and / or liquid before performing subsequent operations such as identifying the real-time color change reaction process of the drug solution and reagent. This reduces the occurrence of situations where the reaction parameters of the drug solution and reagent cannot be accurately detected due to the mismatch of the light source type used.

[0108] In yet another optional embodiment, the method may further include the following steps:

[0109] Determine information about the container used to hold the reagent, including at least one of the following: container shape, container material, container thickness, container surface transparent area, and container airtightness.

[0110] The ambient light information of the preset area formed by the location of the image detection module is collected. The ambient light information of the preset area includes the light intensity and light angle of the preset area.

[0111] Based on the information of the container and the ambient light information of the preset area, the target information formed by the ambient light illuminating the liquid in the container within the preset area is determined. The target information includes the irradiation area of ​​the liquid in the container, the relative angle formed by the ambient light in the preset area and the liquid surface in the container, and the light intensity of the liquid surface in the container.

[0112] Based on the target information, determine whether the working parameters of the image detection module need to be adjusted. When it is determined that the working parameters of the image detection module need to be adjusted, adjust the working parameters of the image detection module according to the target information, and trigger the above-mentioned operation of recognizing the real-time color change reaction process of the drug liquid and reagent based on the image detection module to obtain the real-time reaction result of the drug liquid and reagent.

[0113] In this optional embodiment, the preset area range can be a circular area centered on the location of the image detection module with a preset radius (e.g., 0.5 meters) as the preset distance, or any other area centered on the location of the image detection module.

[0114] As can be seen, this optional embodiment, by combining the information of the container holding the reagent with the ambient light information of the location of the image detection module, can improve the accuracy and reliability of determining whether the working parameters of the image detection module need to be adjusted, thereby improving the accuracy and reliability of the operation of adjusting the working parameters of the image detection module; and by considering the information of multiple containers and multiple ambient light information of the location of the image detection module, it can further improve the accuracy and reliability of determining whether the working parameters of the image detection module need to be adjusted, and improve the accuracy and reliability of adjusting the working parameters of the image detection module when adjustment is required.

[0115] In this optional embodiment, optionally, the target information formed by the ambient light illuminating the liquid inside the container within the preset area is determined based on the container information and the ambient light information of the preset area, including:

[0116] Based on one or more of the following factors—the shape of the container, the material of the container, the transparent surface area of ​​the container, the horizontal plane of the liquid inside the container, and the angle of light within a preset area—calculate the relative angle formed by the ambient light within the preset area and the liquid surface inside the container. Then, based on the relative angle formed and the light path of the ambient light within the container, calculate the irradiated area of ​​the liquid inside the container.

[0117] The light intensity of the liquid surface inside the container is calculated based on one or more of the following factors: container shape, container material, container thickness, container sealing performance, container surface transparency area, the horizontal plane of the liquid inside the container, and the light angle of the preset area.

[0118] As can be seen, this optional embodiment can also determine the light intensity, illumination area, and relative angle of the ambient light on the liquid surface inside the container based on different relevant information. This can improve the accuracy and efficiency of determining the light intensity, illumination area, and relative angle of the liquid surface inside the container, thereby improving the accuracy and efficiency of adjusting the working parameters of the image detection module, and further improving the accuracy and efficiency of identifying the color change reaction process of the drug solution and reagent.

[0119] Example 2

[0120] Please see Figure 2 , Figure 2 This is a schematic flowchart illustrating another method for determining reaction parameters disclosed in an embodiment of the present invention. Wherein, Figure 2 The described method can be applied to a device for determining reaction parameters, wherein the device includes either a detection device or a detection server, wherein the detection server includes a local server or a cloud server. Figure 2 As shown, the method for determining this reaction parameter may include the following operations:

[0121] 201. Determine whether the image detection module needs to be calibrated. If it is determined that the image detection module needs to be calibrated, step 202 can be triggered. If it is determined that the image detection module does not need to be calibrated, step 205 can be triggered.

[0122] 202. Determine the correction information corresponding to the image detection module.

[0123] In this embodiment of the invention, optionally, the correction information corresponding to the image detection module includes one or more of the following: a first type of correction information, a second type of correction information, and a third type of correction information. The first type of correction information includes the phase position between the image detection module and the container for holding the reagent and / or the jitter information of the image detection module within a preset time period. The second type of correction information includes the light source type of the image detection module required for this detection and / or the reagent type required for this detection. The third type of correction information includes one or more of the following: the required detection accuracy of the drug solution, the ambient light information of the location of the image detection module, and the interval between the current time and the last time the image detection module ended. The jitter information of the image detection module includes the number of jitters of the image detection module and / or the jitter amplitude of the image detection module. The start time of the preset time period is the time when the reaction parameters of the drug solution to be detected are determined.

[0124] 203. Based on the correction information corresponding to the determined image detection module, determine the correction type of the image detection module. The correction type includes position correction type and / or visual correction type.

[0125] In this embodiment of the invention, optionally, the position correction type is used to indicate the position of the image detection module, and the visual correction type is used to indicate the color recognition of the image detection module.

[0126] 204. Determine the correction method that matches the correction type, and correct the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions.

[0127] 205. When a reaction between the liquid medicine and the reagent is detected, the real-time color change reaction process of the liquid medicine and the reagent is identified based on the image detection module, and the real-time reaction result of the liquid medicine and the reagent is obtained. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent.

[0128] In this embodiment of the invention, optionally, the real-time reaction result also includes the real-time reaction temperature of the drug solution and reagent.

[0129] 206. Based on the identified real-time reaction results and the determined standard reaction results, determine the real-time reaction parameters of the drug solution and the reagent. The real-time reaction parameters of the drug solution and the reagent include the pH and / or the osmotic pressure of the drug solution.

[0130] In this embodiment of the invention, for the relevant descriptions of steps 205 and 206, please refer to the detailed description of steps 101-102 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.

[0131] As can be seen, the embodiments of the present invention can quickly detect accurate drug reaction parameters, such as pH and / or osmotic pressure, by automatically identifying the real-time reaction process of the drug solution and reagents and comparing the identified real-time reaction results with the determined standard reaction results. This also helps improve the manufacturing accuracy and reliability of the reaction parameter determination device. Furthermore, when this solution is applied to training, it also helps improve the accuracy and efficiency of drug preparation training. Before using the image detection module, it automatically determines whether positional and / or visual correction of the image detection module is needed. When this is determined, the image detection module is corrected based on the corresponding correction method, which can reduce the occurrence of situations where the real-time reaction process of the drug solution and reagents cannot be accurately identified due to positional and / or visual deviations in the image detection module.

[0132] In an optional embodiment, determining whether the image detection module needs to be calibrated includes:

[0133] Determine whether the image detection module has a corresponding corrected identifier. If it is determined that no corrected identifier exists, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type and the visual correction type.

[0134] When it is determined that there is a corrected identifier and the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined position detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes position correction type.

[0135] When it is determined that a corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined visual detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes visual correction type.

[0136] As can be seen, this optional embodiment provides a way to determine that the image detection module needs adjustment when it is determined that the image detection module has a calibration mark, or even if the calibration mark exists, but the relative position between the image detection module and the container holding the reagent has changed significantly and / or the image detection module is shaking significantly or violently, or the required detection accuracy of the liquid is high, or the type of reagent and / or the type of light source required by the image detection module has changed from the last time. This enriches the ways to determine that the image detection module needs adjustment, increases the probability of determining that the image detection module needs adjustment, and thus helps to improve the accuracy and efficiency of adjusting the image detection module.

[0137] In this optional embodiment, optionally, when it is determined that no calibrated identifier exists, a calibration method matching the calibration type is determined, and the image detection module is calibrated based on the calibration method until the image detection module is calibrated to meet the determined detection conditions, including:

[0138] Based on the image detection module, the reaction process of each sample drug solution in multiple sample drug solutions with the corresponding sample reagent is identified, and the reaction result of each sample drug solution with the corresponding sample reagent is obtained;

[0139] Establish the correlation between the reaction parameters of each group of sample solutions, the corresponding reaction results of the sample solutions, and the corresponding sample reagents for each group of sample solutions, and correct the image detection module based on the correlation between each group of sample solutions.

[0140] In this optional embodiment, each sample solution group may consist of at least one sample solution. The reaction parameters of each sample solution in each group are known, and the pH levels of each group of sample solutions are different. The reaction results for each group of sample solutions include the color corresponding to the pH level of that group of sample solutions and the image corresponding to the pH level of that sample solution. Further optionally, sample solutions of the same type, concentration, and temperature may correspond to reagents of different types and / or the same type but different concentrations and / or different temperatures. By calibrating the image detection module based on sample solutions and reagents under different conditions, the comprehensiveness and accuracy of the image detection module's calibration can be improved, making the image detection module suitable for detecting different solutions.

[0141] In this optional embodiment, optionally, when it is determined that a corrected identifier exists and when the correction information corresponding to the image detection module includes first-type correction information and / or third-type correction information, a correction method matching the correction type is determined, and the image detection module is corrected based on the correction method until the image detection module is corrected to meet the determined detection conditions, including:

[0142] Based on the determined position detection conditions and correction information of the image detection module, the image detection module is corrected until it meets the position detection conditions.

[0143] In this optional embodiment, optionally, when it is determined that a corrected identifier exists and when the correction information corresponding to the image detection module includes second-type correction information and / or third-type correction information, a correction method matching the correction type is determined, and the image detection module is corrected based on the correction method until the image detection module is corrected to meet the determined detection conditions, including:

[0144] Based on the determined sample response parameters that match the image detection module, the visual detection conditions corresponding to the image detection module, and the correction information corresponding to the image detection module, the image detection module is corrected until it meets the visual detection conditions.

[0145] As can be seen, this optional embodiment combines different situations of the image detection module with the environmental conditions of the current environment in which the image detection module is located, selects the corresponding correction method, and performs position correction and / or visual correction on the image detection module. This can improve the correction accuracy and comprehensiveness of the image detection module, thereby helping to further improve the recognition accuracy and reliability of the real-time reaction between the drug solution and the reagent, and further improve the determination accuracy and reliability of the reaction parameters.

[0146] Example 3

[0147] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a reaction parameter determination device disclosed in an embodiment of the present invention. Wherein, Figure 3 The described apparatus may include any one of a detection device or a detection server, wherein the detection server may be a local server or a cloud server. Figure 3 As shown, the apparatus for determining the reaction parameters may include:

[0148] The recognition module 301, when detecting a reaction between the liquid medicine and the reagent, identifies the real-time color change reaction process of the liquid medicine and the reagent based on the image detection module, and obtains the real-time reaction result of the liquid medicine and the reagent, which includes the color change curve of the reagent and / or the real-time color change value of the reagent.

[0149] The determination module 302 is used to determine the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results. The real-time reaction parameters of the drug solution and the reagent include the pH and / or the osmotic pressure of the drug solution.

[0150] In this embodiment of the invention, optionally, the above-mentioned real-time reaction result also includes the real-time reaction temperature of the drug solution and reagent; the method by which the determining module 302 determines the real-time reaction parameters of the drug solution and reagent based on the identified real-time reaction result and the determined standard reaction result specifically includes:

[0151] The identified real-time reaction results are compared with the determined standard reaction results to obtain the real-time reaction parameters of the drug solution and reagent; or,

[0152] The information corresponding to the drug solution is determined, and the real-time reaction results, the determined standard reaction results, and the information corresponding to the drug solution are input into the pre-determined reaction recognition model for analysis. The analysis results output by the reaction recognition model are obtained as the real-time reaction parameters between the drug solution and the reagent.

[0153] In this optional embodiment, the information corresponding to the drug solution may include information about the drug solution and / or reagent information. The information about the drug solution may include the identification information of the drug solution and / or the volume of the drug solution. The information about the reagent may include the type of reagent and / or the volume of the reagent. The type of reagent may include test strip type or liquid type.

[0154] It is evident that implementation Figure 3 The described device automatically identifies the real-time reaction process of the drug solution and reagent, and compares the identified real-time reaction results with the determined standard reaction results. This enables rapid and accurate detection of drug solution reaction parameters, such as pH and / or osmotic pressure. It also improves the manufacturing accuracy and reliability of the reaction parameter determination device. Furthermore, when applied to training, this solution enhances the accuracy and efficiency of drug preparation training. In addition, by comparing the real-time reaction results of the drug solution and reagent with the standard reaction results, or by directly inputting the real-time reaction results of the drug solution and reagent along with other information into the reaction identification model for analysis, the methods for determining the real-time reaction parameters of the drug solution and reagent can be enriched.

[0155] In an optional embodiment, such as Figure 4 As shown, the device may further include:

[0156] The first judgment module 303 is used to determine whether the current light source type of the image detection module matches the information corresponding to the liquid medicine before the recognition module 301 recognizes the real-time color change reaction process of the liquid medicine and reagent based on the image detection module and obtains the real-time reaction result of the liquid medicine and reagent.

[0157] The filtering module 304 is used to filter the target light source that matches the information corresponding to the medicine from all the light sources of the image detection module when the first judgment module 303 determines that there is a mismatch;

[0158] The switching module 305 is used to switch the current light source of the image detection module to the target light source.

[0159] In this optional embodiment, after the switching module 305 completes the function of switching the current light source of the image detection module to the target light source, the recognition module 301 can be triggered to perform the function of recognizing the real-time color change reaction process of the liquid medicine and reagent based on the image detection module, and obtain the real-time reaction result of the liquid medicine and reagent.

[0160] It is evident that implementation Figure 4 The described device can improve the accuracy and reliability of the operation of identifying the real-time color-changing reaction process of the drug and reagent by first ensuring that the current light source type of the image detection module matches the reagent and / or liquid before performing subsequent operations such as identifying the real-time color-changing reaction process of the drug and reagent. This reduces the occurrence of situations where the reaction parameters of the drug and reagent cannot be accurately detected due to the mismatch of the light source type used.

[0161] In yet another alternative embodiment, such as Figure 4 As shown, the device also includes:

[0162] The determining module 302 is also used to determine information about the container used to hold the reagent, the information of which includes at least one of the following: the shape of the container, the material of the container, the thickness of the container, the transparent surface area of ​​the container, and the sealing performance of the container.

[0163] The acquisition module 306 is used to acquire ambient light information within a preset area centered on the location of the image detection module. The ambient light information within the preset area includes the light intensity and light angle of the preset area.

[0164] The determining module 302 is also used to determine the target information formed by the ambient light irradiating the liquid in the container within the preset area range based on the information of the container and the ambient light information of the preset area range. The target information includes the irradiation area of ​​the liquid in the container, the relative angle formed by the ambient light in the preset area range and the liquid surface in the container, and the light intensity of the liquid surface in the container.

[0165] The second judgment module 307 is used to determine whether the working parameters of the image detection module need to be adjusted based on the target information.

[0166] The adjustment module 308 is used to adjust the working parameters of the image detection module according to the target information when the second judgment module 307 determines that the working parameters of the image detection module need to be adjusted, and to trigger the recognition module 301 to perform the above-mentioned operation of recognizing the real-time color change reaction process of the liquid medicine and reagent based on the image detection module, so as to obtain the real-time reaction result of the liquid medicine and reagent.

[0167] It is evident that implementation Figure 4 The described apparatus can also improve the accuracy and reliability of determining whether the operating parameters of the image detection module need to be adjusted by combining information about the container holding the reagent with ambient light information about the location of the image detection module, thereby improving the accuracy and reliability of adjusting the operating parameters of the image detection module; and by considering information about multiple containers and multiple ambient light information about the location of the image detection module, it can further improve the accuracy and reliability of determining whether the operating parameters of the image detection module need to be adjusted, and improve the accuracy and reliability of adjusting the operating parameters of the image detection module when adjustment is required.

[0168] In yet another alternative embodiment, such as Figure 4 As shown, the device also includes:

[0169] The third judgment module 309 is used to determine whether the image detection module needs to be corrected before the recognition module 301 recognizes the real-time color change reaction process of the liquid medicine and reagent based on the image detection module and obtains the real-time reaction result of the liquid medicine and reagent.

[0170] The determining module 302 is also used to determine the correction information corresponding to the image detection module when the third determining module 309 determines that the image detection module needs to be corrected;

[0171] The determining module 302 is further configured to determine the correction type of the image detection module based on the determined correction information corresponding to the image detection module. The correction type includes position correction type and / or visual correction type.

[0172] The calibration module 310 is used to determine a calibration method that matches the calibration type, and to calibrate the image detection module based on the calibration method until the image detection module is calibrated to meet the determined detection conditions.

[0173] In this optional embodiment, the correction information corresponding to the image detection module includes one or more of the following: a first type of correction information, a second type of correction information, and a third type of correction information. The first type of correction information includes the phase position between the image detection module and the container for holding the reagent and / or the jitter information of the image detection module within a preset time period. The second type of correction information includes the light source type of the image detection module required for this detection and / or the reagent type required for this detection. The third type of correction information includes one or more of the following: the required detection accuracy of the drug solution, the ambient light information of the location of the image detection module, and the interval between the current time and the last time the image detection module ended. The jitter information of the image detection module includes the number of jitters of the image detection module and / or the jitter amplitude of the image detection module. The start time of the preset time period is the time when the reaction parameters of the drug solution to be detected are determined.

[0174] It is evident that implementation Figure 4 The described device can also automatically determine whether positional and / or visual correction of the image detection module is required before using it. When it is determined that it is required, the image detection module is corrected based on the corresponding correction method. This can reduce the occurrence of situations where the real-time reaction process of the drug and reagent cannot be accurately identified due to positional and / or visual deviations of the image detection module.

[0175] In yet another optional embodiment, the third determination module 309 determines whether the image detection module needs correction in the following ways:

[0176] Determine whether the image detection module has a corresponding corrected identifier. If it is determined that no corrected identifier exists, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type and the visual correction type.

[0177] When it is determined that there is a corrected identifier and the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined position detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes position correction type.

[0178] When it is determined that a corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined visual detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes visual correction type.

[0179] It is evident that implementation Figure 4 The described device can also determine that the image detection module needs adjustment when it is determined that a calibration mark exists on the image detection module, or even if a calibration mark exists, but the relative position between the image detection module and the container holding the reagent has changed significantly and / or the image detection module is shaking significantly or violently, the required detection accuracy of the reagent is high, or the type of reagent and / or the type of light source required by the image detection module has changed from the last time. This enriches the ways to determine that the image detection module needs adjustment, increases the probability of determining that the image detection module needs adjustment, and thus helps to improve the accuracy and efficiency of adjusting the image detection module.

[0180] In another optional embodiment, when it is determined that there is no corrected identifier, the correction module 310 determines a correction method that matches the correction type, and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specifically, the correction method includes:

[0181] The image detection module identifies the reaction process of each sample drug solution in multiple sample drug solutions with its corresponding reagent, obtaining the reaction result of each sample drug solution with its corresponding reagent. Each sample drug solution consists of at least one sample drug solution, and the reaction parameters of each sample drug solution in each sample drug solution are known. Furthermore, the pH levels of each sample drug solution are different. The reaction result for each sample drug solution includes the color corresponding to the pH level of that sample drug solution and the corresponding image. Optionally, sample drug solutions of the same type, concentration, and temperature can correspond to reagents of different types and / or the same type but different concentrations and / or different temperatures. By calibrating the image detection module based on sample drug solutions and reagents under different conditions, the comprehensiveness and accuracy of the calibration can be improved, making the image detection module suitable for detecting different drug solutions.

[0182] Establish the correlation between the reaction parameters of each group of sample solutions, the corresponding reaction results of that group of sample solutions, and the corresponding sample reagents for that group of sample solutions, and correct the image detection module based on the correlation between each group of sample solutions; or,

[0183] When a corrected identifier is detected and the correction information corresponding to the image detection module includes first-type correction information and / or third-type correction information, the correction module 310 determines a correction method that matches the correction type and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specific methods include:

[0184] Based on the determined position detection conditions and correction information corresponding to the image detection module, the image detection module is corrected until it meets the position detection conditions; or...

[0185] When a corrected identifier is detected and the correction information corresponding to the image detection module includes second-type correction information and / or third-type correction information, the correction module 310 determines a correction method that matches the correction type, and corrects the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions. Specific methods include:

[0186] Based on the determined sample response parameters that match the image detection module, the visual detection conditions corresponding to the image detection module, and the correction information corresponding to the image detection module, the image detection module is corrected until it meets the visual detection conditions.

[0187] It is evident that implementation Figure 4The described device can also combine different situations of the image detection module with the environmental conditions of the current environment in which the image detection module is located, select the corresponding correction method, and perform position correction and / or visual correction on the image detection module. This can improve the accuracy and comprehensiveness of the correction of the image detection module, thereby helping to further improve the recognition accuracy and reliability of the real-time reaction between the drug solution and the reagent, and further improve the accuracy and reliability of the determination of the reaction parameters.

[0188] Example 4

[0189] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of another reaction parameter determination device disclosed in an embodiment of the present invention. Wherein, Figure 5 The described apparatus may include any one of a detection device or a detection server, wherein the detection server may be a local server or a cloud server. Figure 5 As shown, the apparatus for determining the reaction parameters may include:

[0190] Memory 401 storing executable program code;

[0191] Processor 402 coupled to memory 401;

[0192] Furthermore, it may also include an input interface 403 and an output interface 404 coupled to the processor 402;

[0193] The processor 402 calls the executable program code stored in the memory 402 to execute some or all of the steps in the method for determining reaction parameters disclosed in Embodiment 1 or Embodiment 2 of the present invention.

[0194] Example 5

[0195] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute some or all of the steps in the method for determining reaction parameters disclosed in Embodiment 1 or Embodiment 2 of this invention.

[0196] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0197] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0198] Finally, it should be noted that the method and apparatus for determining reaction parameters disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for determining reaction parameters, characterized in that, The method includes: When a reaction between the liquid medicine and the reagent is detected, the real-time color change reaction process of the liquid medicine and the reagent is identified based on the image detection module, and the real-time reaction result of the liquid medicine and the reagent is obtained. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent. Based on the identified real-time reaction results and the determined standard reaction results, the real-time reaction parameters of the drug solution and the reagent are determined, including the pH and / or the osmotic pressure of the drug solution. The method further includes: Determine information about the container used to hold the reagent, the information about the container including at least one of the following: the shape of the container, the material of the container, the thickness of the container, the transparent surface area of ​​the container, and the airtightness of the container; Ambient light information is collected within a preset area centered on the location of the image detection module. The ambient light information within the preset area includes the light intensity and light angle of the preset area. Based on the information of the container and the ambient light information of the preset area, the target information formed by the ambient light of the preset area illuminating the liquid in the container is determined. The target information includes the irradiated area of ​​the liquid in the container, the relative angle formed by the ambient light of the preset area and the liquid surface in the container, and the light intensity of the liquid surface in the container. Based on the target information, determine whether the working parameters of the image detection module need to be adjusted. When it is determined that the working parameters of the image detection module need to be adjusted, adjust the working parameters of the image detection module according to the target information, and trigger the execution of the real-time color change reaction process of the drug solution and the reagent based on the image detection module to obtain the real-time reaction result of the drug solution and the reagent.

2. The method for determining reaction parameters according to claim 1, characterized in that, The real-time reaction results also include the real-time reaction temperature between the drug solution and the reagent; The step of determining the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results includes: The identified real-time reaction results are compared with the determined standard reaction results to obtain the real-time reaction parameters between the drug solution and the reagent; or, The information corresponding to the drug solution is determined, and the real-time reaction result, the determined standard reaction result, and the information corresponding to the drug solution are input into a pre-determined reaction recognition model for analysis. The analysis result output by the reaction recognition model is obtained as the real-time reaction parameter between the drug solution and the reagent. The information corresponding to the drug solution includes information about the drug solution and / or information about the reagent. The information about the drug solution includes the identification information of the drug solution and / or the volume of the drug solution. The information about the reagent includes the type of the reagent and / or the volume of the reagent. The type of the reagent includes test strip type or liquid type.

3. The method for determining reaction parameters according to claim 2, characterized in that, Before obtaining the real-time reaction result of the drug solution and the reagent by recognizing the real-time color-changing reaction process of the drug solution and the reagent based on the image detection module, the method further includes: Determine whether the current light source type of the image detection module matches the information corresponding to the liquid medicine; When a mismatch is detected, a target light source that matches the information corresponding to the medicine is selected from all the light sources of the image detection module, and the current light source of the image detection module is switched to the target light source.

4. The method for determining reaction parameters according to any one of claims 1-3, characterized in that, Before obtaining the real-time reaction result of the drug solution and the reagent by recognizing the real-time color-changing reaction process of the drug solution and the reagent based on the image detection module, the method further includes: Determine whether the image detection module needs to be calibrated; if it is determined that the image detection module needs to be calibrated, determine the calibration information corresponding to the image detection module. Based on the determined correction information corresponding to the image detection module, the correction type of the image detection module is determined. The correction type includes a position correction type and / or a visual correction type, wherein the position correction type is used to indicate the correction of the position of the image detection module, and the visual correction type is used to indicate the correction of the image detection module's color recognition. A correction method matching the correction type is determined, and the image detection module is corrected based on the correction method until the image detection module is corrected to meet the determined detection conditions.

5. The method for determining reaction parameters according to claim 4, characterized in that, The correction information corresponding to the image detection module includes one or more of the following: a first type of correction information, a second type of correction information, and a third type of correction information. The first type of correction information includes the phase position between the image detection module and the container for holding the reagent and / or the jitter information of the image detection module within a preset time period. The second type of correction information includes the light source type of the image detection module required for this detection and / or the reagent type required for this detection. The third type of correction information includes one or more of the following: the required detection accuracy of the drug solution, the ambient light information of the location of the image detection module, and the interval between the current time and the last time the image detection module was used. The jitter information of the image detection module includes the number of jitters of the image detection module and / or the jitter amplitude of the image detection module. The start time of the preset time period is the time when it is determined that the reaction parameters of the drug solution need to be detected.

6. The method for determining reaction parameters according to claim 5, characterized in that, The determination of whether the image detection module needs to be corrected includes: Determine whether the image detection module has a corresponding corrected identifier. If it is determined that the corrected identifier does not exist, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type and the visual correction type. When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined position detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the position correction type. When it is determined that the corrected identifier exists and the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, it is determined whether the correction information corresponding to the image detection module meets the determined visual detection conditions. When the result is no, it is determined that the image detection module needs to be corrected. The correction type includes the visual correction type.

7. The method for determining reaction parameters according to claim 6, characterized in that, When it is determined that the corrected identifier does not exist, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes: Based on the image detection module, the reaction process of each sample drug solution in multiple sample drug solutions and the corresponding sample reagent in that group of sample drug solutions is identified, and the reaction result of each sample drug solution and the corresponding sample reagent in that group of sample drug solutions is obtained. Each sample drug solution in a group consists of at least one sample drug solution, the reaction parameters of each sample drug solution in each group of sample drug solutions are known, and the pH values ​​of each sample drug solution are different. The reaction result of each sample drug solution includes the color corresponding to the pH value of that group of sample drug solutions and the image corresponding to the pH value of that sample drug solution. Establish the correlation between the reaction parameters of each group of sample solutions, the corresponding reaction results of that group of sample solutions, and the corresponding sample reagents for that group of sample solutions, and correct the image detection module based on the correlation between each group of sample solutions; or, When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the first type of correction information and / or the third type of correction information, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes: Based on the determined position detection conditions and correction information corresponding to the image detection module, the image detection module is corrected until it meets the position detection conditions; or... When it is determined that the corrected identifier exists and when the correction information corresponding to the image detection module includes the second type of correction information and / or the third type of correction information, the step of determining a correction method matching the correction type and correcting the image detection module based on the correction method until the image detection module is corrected to meet the determined detection conditions includes: Based on the determined sample response parameters matching the image detection module, the visual detection conditions corresponding to the image detection module, and the correction information corresponding to the image detection module, the image detection module is corrected until it meets the visual detection conditions.

8. A device for determining reaction parameters, characterized in that, The device includes: The identification module, when detecting a reaction between the liquid medicine and the reagent, identifies the real-time color change reaction process of the liquid medicine and the reagent based on the image detection module, and obtains the real-time reaction result of the liquid medicine and the reagent. The real-time reaction result includes the color change curve of the reagent and / or the real-time color change value of the reagent. The determination module is used to determine the real-time reaction parameters of the drug solution and the reagent based on the identified real-time reaction results and the determined standard reaction results. The real-time reaction parameters of the drug solution and the reagent include the pH and / or the osmotic pressure of the drug solution. The determining module is further configured to determine information about the container used to hold the reagent, the information about the container including at least one of the following: the shape of the container, the material of the container, the thickness of the container, the transparent area of ​​the surface of the container, and the sealing performance of the container; The device further includes: The acquisition module is used to acquire ambient light information within a preset area centered on the location of the image detection module. The ambient light information within the preset area includes the light intensity and light angle of the preset area. The determining module is further configured to determine, based on the information of the container and the ambient light information of the preset area, the target information formed by the ambient light illuminating the liquid in the container within the preset area, wherein the target information includes the irradiated area of ​​the liquid in the container, the relative angle formed by the ambient light in the preset area and the liquid surface in the container, and the light intensity of the liquid surface in the container. The second judgment module is used to determine whether the working parameters of the image detection module need to be adjusted based on the target information. The adjustment module is used to adjust the working parameters of the image detection module according to the target information when the second judgment module determines that the working parameters of the image detection module need to be adjusted, and to trigger the recognition module to perform the operation of recognizing the real-time color change reaction process of the drug liquid and the reagent based on the image detection module, so as to obtain the real-time reaction result of the drug liquid and the reagent.

9. A device for determining reaction parameters, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for determining reaction parameters as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Water quality on-line monitoring method and device

    CN103335955A

  • Water quality measuring instrument

    JP2006308420A