Method, system, equipment and medium for measuring drug administration dosage based on laser ranging

By using a laser ranging device and a dynamic metrology conversion function, the problems of accuracy and adaptability in drug injection dosage measurement were solved, enabling automatic and accurate calculation of drug injection dosage and structured data management.

CN120900057APending Publication Date: 2025-11-07TAIZHOU YICHUANGDA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511013991.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing methods for measuring drug injection dosage rely on manual estimation, resulting in low measurement accuracy. They cannot reflect the nonlinear relationship between push rod displacement and dosage in real time, nor can they achieve automatic and accurate injection dosage calculation.

Method used

A laser rangefinder is used to collect the push rod movement distance in real time. The displacement data is processed by median filtering and three-point moving average method. A dynamic measurement conversion function is constructed, and a residual feedback mechanism and periodic adjustment function are introduced to dynamically adjust the conversion ratio factor to achieve adaptive calculation of the injection dose.

Benefits of technology

It significantly improves the accuracy and adaptability of injection dose measurement, reduces errors caused by push rod wobbling and reflected signal noise, and realizes accurate automatic calculation of drug injection dose and structured data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120900057A_ABST
    Figure CN120900057A_ABST
Patent Text Reader

Abstract

The invention discloses a drug administration dosage measuring method and system based on laser ranging, and relates to the technical field of medical instrument metering control, and the method comprises the steps: collecting the moving distance of a push rod, the volume of an injector and the length specification parameter of a needle cylinder, inputting the collected volume of the injector and the length specification parameter of the needle cylinder into an interactive interface, and building a geometric conversion basis; constructing a dynamic metering conversion function, calculating a conversion scale factor, and inputting the conversion scale factor, the movement distance of the push rod and the specification parameters of the injector into the dynamic dose conversion function to obtain an injection dose value; and organizing the injection dosage value, the initial displacement and the injector model data in a structured form, and storing and outputting the organized injection dosage value, the initial displacement and the injector model data. According to the method, a dynamic metering conversion function is constructed, and a conversion scale factor is dynamically adjusted by adopting a relative displacement proportion driving period adjustment function.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of medical instrument metrology control, in particular to a drug injection dose measurement method and system based on laser ranging. BACKGROUND

[0002] The present application relates to the field of animal experiments such as pharmacodynamics, pharmacokinetics, and toxicology of drugs, and is an instrument for measuring the volume of drug injections, suitable for medical, scientific research, and non-clinical animal experiment scenarios.

[0003] In the medical and scientific research fields, the accuracy of drug injection dose is crucial to experimental results and treatment effects. Currently, the measurement of drug injection dose mainly relies on the reading of the scale of the syringe or manual recording. This method has the problem that manual reading of the scale and recording of data are prone to errors due to human negligence, affecting the accuracy of experiments and treatment. Manual recording of data increases the workload of the operator, especially in high-frequency injection scenarios, where efficiency is particularly problematic. The manually recorded data is difficult to implement information management, which is not conducive to data storage, analysis, and traceability.

[0004] It is of great practical significance to develop an instrument that can automatically and accurately measure the drug injection dose. The present application aims to provide a drug injection dose measurement instrument based on laser ranging, which automatically calculates and records the drug injection dose by accurately measuring the movement distance of the syringe plunger and combining the specification parameters of the syringe, thereby solving the problems existing in the prior art. SUMMARY

[0005] In view of the above problems, the present application is proposed.

[0006] Therefore, the technical problem solved by the present application is that the existing drug injection dose measurement method relies on manual estimation, has low measurement accuracy, cannot reflect the non-linear relationship between plunger displacement and dose in real time, and how to achieve high-precision collection of syringe plunger displacement through laser ranging, and construct a dose conversion function that can evolve dynamically during use, to achieve accurate, automatic, and structure-adaptive injection dose calculation.

[0007] To solve the above technical problems, the present application provides the following technical solution: a drug injection dose measurement method based on laser ranging, comprising collecting the movement distance of the plunger, the capacity of the syringe, and the length specification parameters of the needle cylinder.

[0008] The collected capacity of the syringe, length specification parameters of the needle cylinder, are input into the interactive interface and a geometric conversion basis is established.

[0009] A dynamic metrology conversion function is constructed, a conversion scale factor is calculated, the conversion scale factor, the movement distance of the plunger, and the specification parameters of the syringe are input into the dynamic dose conversion function, and the injection dose value is obtained.

[0010] The injection dose value, the initial displacement, and the syringe model data are organized in a structured form, and the organized injection dose value, the initial displacement, and the syringe model data are saved and output.

[0011] The dynamic metering conversion function is constructed, including calculating the injection dose based on the syringe geometric parameters and the real-time displacement of the push rod, and introducing a periodic adjustment function to dynamically adjust the conversion scaling factor.

[0012] The injection dose value is obtained, including real-time fine-tuning the adjustment coefficient and the conversion scaling factor through a residual feedback mechanism, so that the conversion function can evolve continuously during use, and the nonlinear error of the syringe structure and the cumulative dose deviation are adaptively corrected.

[0013] As a preferred scheme of the laser ranging drug dosing method, the laser ranging device is arranged above the parallel direction of the push rod of the syringe and is perpendicular to the axial direction of the push rod, the laser ranging device collects the distance change value of the end of the push rod in real time during the movement of the push rod, and the ranging data are processed through the median filtering and three-point sliding average method to eliminate the noise fluctuation caused by the shaking of the push rod or unstable reflected signals.

[0014] As a preferred scheme of the laser ranging drug dosing method, the establishment of the geometric conversion basis includes calculating the unit conversion scaling factor through the data processing unit according to the input values of the total capacity of the syringe and the total stroke length of the needle cylinder, and when the syringe is automatically identified from the standard model library, the preset model parameters are automatically filled and the manual input step is skipped.

[0015] When the syringe is a non-standard model syringe, the operator manually inputs the capacity and length values and confirms the parameter entry.

[0016] The obtained conversion scaling factor is stored in the calculation buffer and is used for real-time calculation.

[0017] As a preferred scheme of the laser ranging drug dosing method, the construction of the dynamic metering conversion function includes calling the conversion scaling factor calculated from the syringe specification parameters in the data processing unit, representing the liquid volume corresponding to each unit length displacement, calculating the relative displacement ratio of the current position in the syringe stroke according to the displacement value of the current position of the push rod obtained by the laser ranging device in real time, and calculating the ratio of the displacement value to the total length of the needle cylinder.

[0018] As a preferred scheme of the laser ranging-based drug dosing measurement method, the dynamic conversion function is further constructed by introducing a dynamic residual error feedback-based adjustment coefficient evolution mechanism to enhance the adaptive adjustment capability of the dynamic conversion factor.

[0019] In each dose conversion process, an error value between the currently calculated dose value and the reference dose value is recorded, and the error value is input as a dynamic correction factor to slightly increase or decrease the adjustment coefficient based on the error change trend.

[0020] The error value is generated by a fitting curve established by the calibration process and multiple measurements, and the system differentiates the current residual error value from the previous residual error value after each conversion to determine the error trend change, and increases or decreases the adjustment coefficient by a preset step based on the determination result.

[0021] In the case of keeping the main structure of the adjustment function unchanged, the dynamic conversion factor is reconstructed by the updated adjustment coefficient to realize the local detail correction of the conversion function form, and a dynamic metering conversion function that can evolve continuously during the injection process is formed.

[0022] When the updated adjustment coefficient exceeds the set range threshold, the amplitude limiting logic is automatically triggered to prevent the conversion function from producing nonlinear distortion, improve adaptability, and ensure function stability.

[0023] As a preferred scheme of the laser ranging-based drug dosing measurement method, the calculation of the conversion ratio factor includes taking the relative displacement ratio as input to establish a periodic adjustment function, and dynamically adjusting the conversion ratio factor according to the possible nonlinear behavior of the front and rear sections in the syringe structure.

[0024] The output value of the periodic function is multiplied by a preset adjustment coefficient, the obtained adjustment coefficient is added by one to form a multiplier expression, and then multiplied by the conversion ratio factor to construct a dynamic conversion factor that changes with the real-time displacement of the push rod.

[0025] The preset adjustment coefficient includes a dimensionless parameter for setting the change strength of the conversion adjustment.

[0026] The dynamic conversion factor is multiplied by the displacement difference between the current position and the initial calibration position to generate the current injection dose, realizing the construction process of the dynamic metering conversion function.

[0027] As a preferred scheme of the laser ranging-based drug dose measurement method, the calculation of the conversion ratio factor further comprises establishing a dynamic correction mechanism, and the conversion ratio factor is calibrated in real time according to an actual measurement residual error; the conversion ratio factor is calculated by the total capacity of the syringe and the total length of the needle cylinder in the initialization stage, and is used to construct a basic conversion relationship between the injection dose and the push rod displacement.

[0028] During the injection process, the difference between the cumulative value of the current injection dose and the set dose interval and the target value is compared in real time, and a residual error is formed according to the difference; the residual error is calculated by a moving average to obtain a smooth trend error.

[0029] According to the error trend result, a slight correction operation is performed on the original conversion ratio factor; the correction process of the conversion ratio factor does not affect the calculation logic of the dynamic conversion factor, but the conversion ratio factor is used as a basic ratio value to be used in the next iteration to construct a periodic function and to perform proportional self-regulation.

[0030] The slight correction operation comprises adjusting the conversion ratio factor by a proportional correction amplitude when the residual error is not normal for a plurality of consecutive times; the adjustment amplitude is set to a thousandth order of magnitude.

[0031] When the cumulative correction value of the conversion ratio factor exceeds a set tolerance range, the correction process is automatically suspended, and the operator is prompted to recalibrate the syringe specification parameters.

[0032] As a preferred scheme of the laser ranging-based drug dose measurement method, the organization by the structured form comprises organizing the fields in a unified data structure after each completion of the injection dose calculation; preferably, a nested data node is formed in a key-value pair format, the data structure is in a tree-like hierarchical organization form, the first layer node is a current measurement sequence number, and the second layer sub-nodes correspond to four types of logical groups of dose information, displacement information, syringe information and state information.

[0033] The fields comprise an injection dose value, a current position displacement, a starting calibration displacement, a conversion ratio factor, a dynamic conversion factor, a syringe model identification, a time stamp and a system state code.

[0034] The dose information sub-node is used to store the current injection dose value and the conversion factor, the displacement information sub-node is used to record the difference between the current position and the starting displacement, the syringe information sub-node comprises syringe model, capacity and total length parameters, and the state information sub-node is used to record the system calibration state, the data processing state mark and the fault identification of the current measurement period.

[0035] As a preferred scheme of the laser ranging-based drug administration dose measurement method, the storing and outputting comprises writing structured data in JSON format or equivalent tree structure into a non-volatile buffer area, and automatically packing the structured data into a complete data unit named by an injection cycle number, and generating a corresponding index table to support data retrieval, time sorting and abnormal marker positioning.

[0036] The structured organization mode can adapt to subsequent data export, wireless transmission or local data audit processing, has scalability and field decoupling capability, and supports batch management of multiple injection data in time sequence.

[0037] Another object of the present application is to provide a laser ranging-based drug administration dose measurement system, which can solve the problems of current injection dose measurement systems, such as dependence on fixed conversion scale factor, inability to respond to structural errors and operation disturbances, large dose accumulation error, and poor system adaptability, by constructing a dynamic metering conversion function with cycle adjustment and residual feedback mechanism.

[0038] As a preferred scheme of the laser ranging-based drug administration dose measurement system, the system comprises an acquisition and conversion base establishment module, a function construction and calculation module, and an organization storing and outputting module.

[0039] The acquisition and conversion base establishment module is configured to acquire a plunger moving distance, a syringe capacity and a needle cylinder length specification parameter, input the acquired syringe capacity and needle cylinder length specification parameter into an interactive interface, and establish a geometric conversion base.

[0040] The function construction and calculation module is configured to construct a dynamic metering conversion function, calculate a conversion scale factor, input the conversion scale factor, the plunger moving distance and the syringe specification parameter into the dynamic dose conversion function, and obtain an injection dose value.

[0041] The organization storing and outputting module is configured to organize the injection dose value, a starting displacement and a syringe model data in a structured form, and store and output the organized injection dose value, the starting displacement and the syringe model data.

[0042] A computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the steps of the laser ranging-based drug administration dose measurement method.

[0043] A computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the laser ranging-based drug administration dose measurement method.

[0044] The beneficial effects of the present application: the laser ranging drug dosing measurement method provided by the present application collects the push rod movement distance in real time through the laser ranging device, processes the displacement data by combining the median filter with the three-point sliding average algorithm, significantly improves the displacement collection accuracy, reduces the interference of push rod jitter and reflection error on dose measurement. The dynamic measurement conversion function is constructed, and the relative displacement proportional driving period adjustment function is used to dynamically adjust the conversion proportion factor, which can correct the dose error according to the nonlinear fluctuation of the push rod position, and effectively improve the authenticity of the overall conversion model. The residual feedback mechanism is introduced, and the adjustment coefficient is adjusted in real time according to the error between the calculation result and the target value in each conversion, which improves the adaptive ability of the system and can dynamically respond to the structural differences of individual injectors or external environment changes. The dynamic conversion factor evolution mechanism is constructed, the error difference is combined to judge the trend, and the adjustment coefficient is automatically adjusted by the preset step, forming a function structure with feedback learning ability, so that the system has stable convergence in the long-term running process. The present application has better effects in terms of dose measurement accuracy, adaptive adjustment ability and data structuring. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.

[0046] Figure 1 The overall flowchart of the laser ranging drug dosing measurement method provided by the first embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present application more apparent and easy to understand, the specific embodiments of the present application will be described in detail below with reference to the drawings in the specification. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0048] Embodiment 1, refer to Figure 1 An embodiment of the present application provides a laser ranging drug dosing measurement method, which comprises:

[0049] S1: collect the push rod movement distance, the syringe capacity and the needle cylinder length specification parameters.

[0050] The laser ranging device is arranged above the parallel direction of the syringe push rod and perpendicular to the axial direction of the push rod, and the laser ranging device collects the distance change value of the end of the push rod in real time during the movement of the push rod, and processes the ranging data through median filtering and three-point sliding average method, so as to eliminate the noise fluctuation caused by the shaking of the push rod or the unstable reflection signal, and ensure that the ranging accuracy is not less than ±0.01mm.

[0051] S2: input the collected syringe capacity and needle cylinder length specification parameters into the interactive interface and establish a geometric conversion basis.

[0052] The total capacity of the syringe, the total length of the needle cylinder and the total scale are input in sequence, the conversion basis proportionality coefficient is established according to the input parameters, and the parameters are used as the conversion proportionality factor for subsequent dose calculation.

[0053] One preferred scheme for establishing the conversion basis proportionality coefficient is

[0054]

[0055] Wherein, α represents the conversion proportionality factor, V total represents the nominal total capacity of the syringe, L total represents the total length of the syringe needle cylinder.

[0056] Further, it is found through analysis that during the advancement of the syringe, there is a size compression zone in the front section of the needle cylinder and an acceleration mutation zone in the tail section, which causes the unit displacement and the corresponding dose to present a nonlinear response, thereby leading to the decrease of the accuracy of the traditional dose conversion method based on the linear proportionality factor, and the error is particularly obvious in the tail section dose adjustment. In order to solve this problem, a structure correction function is used to adjust the structure response of the traditional proportionality factor.

[0057] One preferred scheme for adjusting the structure response of the traditional proportionality factor is:

[0058] θ u (x)=α·(1+φ1·x+φ2·x 2 )

[0059] Wherein, θ u (x) represents the corrected proportionality factor for the current position x, φ1 represents the first-order nonlinear offset fitting coefficient, φ2 represents the second-order nonlinear offset fitting coefficient, and x represents the current position.

[0060] According to the input values of the total capacity of the syringe and the total stroke length of the needle cylinder, the data processing unit calculates the unit conversion proportionality factor, and when the syringe is automatically recognized from the standard model library during the geometric conversion process, the preset model parameters are automatically filled and the manual input step is skipped.

[0061] When the syringe is a non-standard model syringe, the operator manually inputs the volume and length values, and confirms the parameter entry.

[0062] The obtained conversion ratio factor is stored in the calculation buffer for real-time calculation.

[0063] S3: Construct a dynamic metering conversion function, calculate the conversion ratio factor, input the conversion ratio factor and the plunger movement distance into the dynamic dose conversion function, and obtain the injection dose value.

[0064] In the data processing unit, the conversion ratio factor calculated from the syringe specification parameters is called, which represents the volume of the liquid medicine corresponding to each unit length of displacement. According to the current position displacement value of the plunger obtained by the laser ranging device in real time, the displacement value is calculated by ratio with the total length of the needle cylinder, and the relative displacement ratio of the current position in the syringe stroke is obtained.

[0065] One preferred scheme for obtaining the relative displacement ratio of the current position in the syringe stroke is:

[0066]

[0067] Wherein, R(t) represents the ratio of the current position in the total stroke of the needle cylinder, L t represents the displacement value of the plunger collected by the current laser ranging, L total represents the total length of the needle cylinder.

[0068] The adjustment coefficient evolution mechanism based on dynamic residual feedback is introduced to enhance the adaptive adjustment ability of the dynamic conversion factor.

[0069] In each dose conversion process, the error value between the currently calculated dose value and the reference dose reference value is recorded, and the error value is input as a dynamic correction factor. Based on the error change trend, the conversion adjustment coefficient is adjusted by a small amplitude.

[0070] β(t+1) = β(t) + Δβ

[0071] Wherein, β(t) represents the current adjustment coefficient, β(t+1) represents the adjustment coefficient at the next moment, and Δβ represents the preset adjustment step.

[0072] The error value is generated by a fitting curve established by a calibration process and multiple measurements. After each conversion, the system performs difference calculation on the current residual value and the previous residual value to determine the error trend change, and adjusts the adjustment coefficient by a preset step based on the determination result.

[0073] One preferred scheme for difference calculation is:

[0074] Δε(t) = ε(t) - ε(t-1)

[0075] wherein, Δε(t) represents the current residual variation trend, ε(t) represents the residual value of the current round, and ε(t-1) represents the residual value of the previous round.

[0076] In the case of keeping the main structure of the adjustment function unchanged, the dynamic conversion factor is reconstructed by the updated adjustment coefficient, the local detail correction of the conversion function form is realized, and the dynamic metrological conversion function which can evolve continuously with the injection process is formed.

[0077] On the basis of constructing the structure correction function, a periodic function structure is further introduced to improve the response ability to non-constant rate disturbance in the injection process.

[0078] A preferred scheme for forming a dynamic metrological conversion function which can evolve continuously with the injection process is:

[0079] α'(t+1) = θ u (x(t))·[1+β(t+1)·sin(π·R(t))]

[0080] wherein, α'(t+1) represents the conversion factor used in the next cycle, β(t+1) represents the updated adjustment coefficient, L t represents the current displacement, π represents a mathematical constant, and R(t) represents the proportion of the current position in the total stroke of the syringe.

[0081] When the updated adjustment coefficient exceeds the set range threshold, the amplitude limiting logic will be automatically triggered to prevent the conversion function from producing nonlinear distortion, improve adaptability, and ensure function stability.

[0082] Further, a periodic adjustment function is established by taking the relative displacement ratio as the input, the conversion ratio factor is dynamically adjusted according to the possible nonlinear behavior of the front and end sections in the structure of the syringe.

[0083] The output value of the periodic function is multiplied by a preset adjustment coefficient, the obtained adjustment coefficient is added by one to form a multiplier expression, and then multiplied by the conversion ratio factor to construct a dynamic conversion factor which changes with the real-time displacement of the plunger.

[0084] A preferred scheme for constructing a dynamic conversion factor which changes with the real-time displacement of the plunger is:

[0085] α * (t) = α·[1+β·sin(πR(t))]

[0086] wherein, α * (t) represents the dynamic conversion factor at the current time, α represents the conversion ratio factor, and β represents the periodic adjustment coefficient.

[0087] The preset adjustment coefficient includes a dimensionless parameter for setting the change intensity of the conversion adjustment.

[0088] The dynamic conversion factor is multiplied by the displacement difference between the current position and the initial calibration position to generate the current injection dose, thereby realizing the construction process of the dynamic metering conversion function.

[0089] One preferred scheme of the construction of the dynamic metering conversion function is:

[0090] D inject (t)=α * (t)·(L t -L0)

[0091] Wherein, D inject (t) represents the current injection dose value, L t represents the current plunger displacement, and L0 represents the initial calibration displacement.

[0092] A dynamic correction mechanism is established to calibrate the conversion proportion factor in real time according to the actual measurement residual error. In the initialization stage, the conversion proportion factor is calculated by the total capacity of the syringe and the total length of the needle cylinder, which is used to construct the basic conversion relationship between the injection dose and the plunger displacement.

[0093] During the injection process, the difference between the cumulative value of the current injection dose and the set dose interval, target value is compared in real time.

[0094] One preferred scheme of comparing the difference between the cumulative value of the current injection dose and the set dose interval, target value is:

[0095]

[0096] Wherein, D total (t) represents the cumulative injection dose up to the current tth round, and D inject (i) represents the i injection dose.

[0097] Residual error data is formed according to the difference.

[0098] One preferred scheme of forming residual error data is:

[0099] ΔD(t)=D target -D total (t)

[0100] Wherein, ΔD(t) represents the current remaining dose error, D target represents the target injection dose value, and D total (t) represents the current cumulative injection amount.

[0101] The residual data is calculated by a moving average to obtain a stationary trend error.

[0102] A preferred solution for obtaining the stationary trend error is:

[0103]

[0104] wherein ε avg (t) represents the moving average residual error at the current time, ε1 represents the injection residual value at the first time, ε2 represents the injection residual value at the second time, and ε3 represents the injection residual value at the third time.

[0105] According to the error trend result, a slight correction operation is performed on the original conversion scale factor. The correction process of the conversion scale factor does not affect the calculation logic of the dynamic conversion factor, but the basic scale value is used again in the next iteration to construct the periodic function and perform scale self-adjustment.

[0106] The slight correction operation includes adjusting the conversion scale factor by a proportional correction amplitude when the residual error is abnormal for a plurality of consecutive times. The adjustment amplitude is set to the order of magnitude of thousandth.

[0107] When the cumulative correction value of the conversion scale factor exceeds the set tolerance range, the correction process is automatically suspended, and the operator is prompted to recalibrate the syringe specification parameters.

[0108] S4: Organize the injection dose value, the starting displacement, and the syringe model data in a structured form, and save and output the organized injection dose value, the starting displacement, and the syringe model data.

[0109] After each injection dose calculation is completed, the fields are organized in a unified data structure. Preferably, a nested data node is formed in a key-value pair format, and the data structure is organized in a tree-like hierarchical form. The first layer node is the current measurement sequence number, and the second layer sub-node corresponds to four types of logical groups, i.e., dose information, displacement information, syringe information, and state information.

[0110] A preferred solution for the injection sequence number generation rule is:

[0111] S n = S0 + n

[0112] wherein S n n represents the injection round, and S0 represents the injection number starting value.

[0113] The fields include the injection dose value, the current position displacement, the starting calibration displacement, the conversion scale factor, the dynamic conversion factor, the syringe model identifier, the timestamp, and the system state code.

[0114] The dose information sub-node is used to store the current injection dose value and the conversion factor, the displacement information sub-node is used to record the current position and the starting displacement difference value, the syringe information sub-node includes the syringe model, the capacity and the total length parameters, and the state information sub-node is used to record the system calibration state of the current measurement period, the data processing state mark and the fault identification.

[0115] Further, the structured data is written in the JSON format or the equivalent tree structure in the non-volatile cache area, and is automatically packaged as a complete data unit named by the injection cycle number, and a corresponding index table is generated to support data retrieval, time sorting and abnormal marker positioning.

[0116] The structured organization mode can be adapted to subsequent data export, wireless transmission or local data audit processing, has scalability and field decoupling capability, and supports batch management of multiple injection data in time sequence.

[0117] Embodiment 2 is an embodiment of the present application, which provides a drug dose measurement system based on laser ranging, including a collection and conversion basis establishment module, a function construction and calculation module, an organization saving and output module.

[0118] The collection and conversion basis establishment module is used to collect the push rod moving distance, the syringe capacity and the needle cylinder length specification parameters, input the collected syringe capacity and needle cylinder length specification parameters into the interactive interface and establish a geometric conversion basis.

[0119] It should be noted that the output data of the collection and conversion basis establishment module will be used as the input of the function construction and calculation module to drive the subsequent dose calculation process.

[0120] The function construction and calculation module is used to construct a dynamic metering conversion function, calculate a conversion proportion factor, input the conversion proportion factor, the push rod moving distance and the syringe specification parameters into the dynamic dose conversion function, and obtain an injection dose value.

[0121] It should be noted that the output of the function construction and calculation module is the core variable injection dose value, and the intermediate parameters in the dynamic conversion process are input into the organization saving and output module.

[0122] The organization saving and output module is used to organize the injection dose value, the starting displacement and the syringe model data in a structured form, save and output the organized injection dose value, the starting displacement and the syringe model data.

[0123] It should be noted that the output module is not only a subsequent processing unit of the function construction and calculation module, but also a data interface for system and external interaction.

[0124] Embodiment 3, as an embodiment of the present application, provides a drug dose measurement method based on laser ranging, in order to verify the beneficial effects of the present application, through economic benefit calculation and simulation experiment for scientific demonstration.

[0125] Firstly, relying on three different specifications of syringes, a structured test platform is constructed, and full-process data including syringe capacity, needle length, push rod displacement and injection dose are collected. The experimental platform includes laser ranging, data acquisition, dynamic conversion calculation and data structured storage.

[0126] During the experiment, the laser range finder is installed above the parallel direction of the push rod, vertically towards the end of the push rod, for real-time recording of the displacement change during the push rod advancing process.

[0127] Firstly, the various types of syringes are initialized and calibrated, and the total capacity and needle length of the syringes are manually input, and the geometric conversion basic scale factor is automatically generated and saved in the cache. Before each test, the initial position of the push rod is set to 0 mm, and then gradually advanced to the target displacement point, and the actual displacement value is collected. In order to ensure the stability and anti-interference ability of the collected data, the system performs median filtering and three-point sliding average processing on each ranging result.

[0128] During the movement of the push rod, the proportion of the current position in the total stroke of the needle cylinder is calculated in real time, and used as an input parameter for dynamic conversion factor calculation. The factor introduces error feedback adjustment mechanism, and differentiates the trend of each measurement residual, and adjusts the adjustment coefficient according to the judgment result, to maintain the adaptability and stability of the conversion function. After each dose calculation, the dose value, displacement information and syringe specifications are structured and packaged, and the time stamp and status code are recorded, and automatically output as a JSON format file. The experimental data is shown in Table 1.

[0129] Table 1 Experimental data

[0130]

[0131] By comparing the injection dose data of three types of syringes at different displacements, it can be observed that the dynamic conversion mechanism designed by our side shows high adaptability under cross-specification conditions. Taking syringe A as an example, under the condition of 10 mL capacity and 80 mm total length of the needle cylinder, the push rod is pushed by 8 mm and 16 mm, corresponding to 1.0 mL and 2.0 mL of injection dose, and the dynamic conversion factor is calculated to be 0.125 and 0.126, respectively, with an error of ± 0.001, showing the stability of the system in the same type at different injection stages.

[0132] Looking at syringe B and syringe C, the capacities are 20 mL and 5 mL respectively, the barrel lengths are different, and the conversion factors are adjusted to 0.2 and 0.084 respectively. The system automatically adjusts the scaling factor according to different structural conditions and exports the dose data, reflecting the high model migration ability. In addition, in the second set of data of syringe B, the plunger displacement is 50 mm, and the injection dose accurately reaches 10 mL, indicating that even in the case of large displacement changes, it can be stably controlled within the set tolerance.

[0133] Compared with the traditional method, the present application has the following three advantages: (1) laser ranging technology is used instead of mechanical encoder, which significantly improves the displacement measurement accuracy; (2) a dynamic adjustment mechanism is introduced, which can correct the scaling factor in real time according to the error trend, and enhance the robustness of the system in the case of non-standard syringe or mechanical loosening; (3) the tree structure is used to organize data, which realizes the standardization and traceability of the measurement process and results.

[0134] Overall, the experimental data verifies the innovation of the present application in the aspects of multi-specification syringe adaptation, plunger displacement and injection dose conversion accuracy and dynamic correction ability, and shows that the present scheme has higher flexibility and engineering potential compared with the existing methods based on fixed scale reading or mechanical sensing.

Claims

1. A method for measuring a dose of a drug to be administered based on laser ranging, characterized by, The method comprises the following steps: Collecting the moving distance of the push rod, the capacity of the syringe, and the length specification of the needle cylinder; Inputting the collected capacity of the syringe and the length specification of the needle cylinder into the interactive interface and establishing a geometric conversion basis; Constructing a dynamic metering conversion function, calculating a conversion proportion factor, inputting the conversion proportion factor, the moving distance of the push rod, and the specification of the syringe into the dynamic dose conversion function, and obtaining the injection dose value; Organizing the injection dose value, the initial displacement, and the syringe model data in a structured form, saving and outputting the organized injection dose value, the initial displacement, and the syringe model data; The construction of the dynamic metering conversion function comprises calculating the injection dose based on the geometric parameters of the syringe and the real-time displacement of the push rod, and introducing a periodic adjustment function to dynamically adjust the conversion proportion factor; The obtaining of the injection dose value comprises real-time fine adjustment of the adjustment coefficient and the conversion proportion factor through a residual feedback mechanism, so that the conversion function can continuously evolve during use, and the self-adaptive correction of the nonlinear error of the syringe structure and the cumulative dose deviation is realized.

2. The laser ranging drug dosing measurement method according to claim 1, wherein: The collection of the moving distance of the push rod, the capacity of the syringe, and the length specification of the needle cylinder comprises the following steps: The laser ranging device is arranged above the parallel direction of the push rod of the syringe and is perpendicular to the axial direction of the push rod. The laser ranging device collects the distance change value of the end of the push rod in real time during the movement of the push rod, and processes the ranging data through median filtering and three-point sliding average method to eliminate the noise fluctuation caused by the shaking of the push rod or unstable reflected signal.

3. The laser ranging drug dosing measurement method according to claim 1 or 2, wherein: The establishment of the geometric conversion basis comprises the following steps: According to the input values of the total capacity of the syringe and the total stroke length of the needle cylinder, the data processing unit calculates the unit conversion proportion factor. During the geometric conversion process, when the syringe is automatically recognized from the standard model library, the preset model parameters are automatically filled and the manual input step is skipped. When the syringe is a non-standard model syringe, the operator manually inputs the capacity and length values and confirms the parameter entry. The obtained conversion proportion factor is stored in the calculation buffer for real-time calculation.

4. The laser ranging drug dosing measurement method of claim 3, wherein: The construction of the dynamic metering conversion function comprises the following steps: In the data processing unit, the conversion proportion factor calculated from the specification parameters of the syringe is called, which represents the liquid volume corresponding to each unit length displacement. According to the current position displacement value of the push rod obtained by the laser ranging device in real time, the displacement value is compared with the total length of the needle cylinder to obtain the relative displacement proportion of the current position in the stroke of the syringe.

5. The laser ranging drug dosing measurement method of claim 1, 2 or 4, wherein: The construction of the dynamic metering conversion function further comprises the following steps: An adjustment coefficient evolution mechanism based on dynamic residual feedback is introduced to enhance the adaptive adjustment ability of the dynamic conversion factor. In each dose conversion process, the error value between the currently calculated dose value and the reference dose reference value is recorded, and the error value is input as a dynamic correction factor. Based on the error change trend, the conversion adjustment coefficient is adjusted by a small amplitude. The error value is generated by a fitting curve established by a calibration process and multiple measurements. After each conversion, the system differentiates the current residual value from the previous residual value to determine the error trend change, and adjusts the adjustment coefficient by a preset step length based on the determination result. The dynamic conversion factor is reconstructed by the updated adjustment coefficient while keeping the main structure of the adjustment function unchanged, so as to realize local detail correction of the conversion function form and form a dynamic metering conversion function which can evolve with the injection process; When the updated adjustment coefficient exceeds the set range threshold, the limiting locking logic is automatically triggered to prevent the conversion function from producing nonlinear distortion, thereby improving adaptability while ensuring function stability.

6. The laser ranging drug dosing measurement method of claim 5, wherein: The calculation of the conversion ratio factor comprises, A periodic adjustment function is established by taking the relative displacement ratio as input, and the conversion ratio factor is dynamically adjusted according to the possible nonlinear behavior of the front section and the end section in the structure of the syringe; The output value of the periodic function is multiplied by a preset adjustment coefficient, the obtained adjustment coefficient is added by one to form a multiplier expression, and then the multiplier expression is multiplied by the conversion ratio factor to construct a dynamic conversion factor which changes with the real-time displacement of the plunger rod; The preset adjustment coefficient is a dimensionless parameter, which is used to set the change strength of the conversion adjustment; The dynamic conversion factor is multiplied by the displacement difference between the current position and the initial calibration position to generate the current injection dose, thereby realizing the construction process of the dynamic metering conversion function.

7. The laser ranging method for measuring a dose of a drug for administration according to claim 1, 2, 4 or 6, characterized by: The calculation of the conversion ratio factor further comprises, A dynamic correction mechanism is established to calibrate the conversion ratio factor in real time according to the actual measurement residual error, and the conversion ratio factor is calculated by the total capacity of the syringe and the total length of the needle cylinder in the initialization stage to construct the basic conversion relationship between the injection dose and the displacement of the plunger rod; During the injection process, the difference between the cumulative value of the current injection dose and the set dose interval and the target value is compared in real time, and the residual error data is formed according to the difference; the residual error data is calculated by the moving average to obtain the smooth trend error; According to the error trend result, the original conversion ratio factor is subjected to a slight correction operation, and the correction process of the conversion ratio factor does not affect the calculation logic of the dynamic conversion factor, but the basic ratio value is used again in the next iteration to construct the periodic function and perform proportional self-regulation; The slight correction operation comprises: when the residual error is not normal for a plurality of times, the conversion ratio factor is adjusted by a proportional correction amplitude, and the adjustment amplitude is set to the order of thousandth; When the cumulative correction value of the conversion ratio factor exceeds the set tolerance range, the correction process is automatically suspended, and the operator is prompted to recalibrate the syringe specification parameters.

8. The laser ranging drug dosing measurement method of claim 7, wherein: The organization by the structured form comprises, After each injection dose calculation is completed, the fields are organized in a unified data structure, preferably a nested data node in a key-value pair format, and the data structure is organized in a tree-like hierarchical form, the first layer node is the current measurement sequence number, and the second layer subnode corresponds to four types of logical groups of dose information, displacement information, syringe information and state information respectively; The fields comprise: injection dose value, current position displacement, initial calibration displacement, conversion ratio factor, dynamic conversion factor, syringe model identification, time stamp and system state code. The dose information sub-node is used to store the current injection dose value and the conversion factor, the displacement information sub-node is used to record the current position and the starting displacement difference value, the injector information sub-node includes the injector model, the capacity and the total length parameters, and the state information sub-node is used to record the system calibration state of the current measurement period, the data processing state mark and the fault identification.

9. The laser ranging drug dosing measurement method of claim 8, wherein: The saving and outputting include, The structured data is written in the JSON format or the equivalent tree structure in the non-volatile cache area, and is automatically packaged as a complete data unit named by the injection cycle number, and a corresponding index table is generated to support data retrieval, time sorting and abnormal marker positioning; The structured organization mode can be adapted to subsequent data export, wireless transmission or local data audit processing, has scalability and field decoupling capability, and supports batch management of multiple injection data in sequence.

10. A system for measuring a dose of a drug to be administered using the method of measuring a dose of a drug based on laser ranging according to any one of claims 1 to 9, characterized in that: The method comprises a collection and conversion base establishment module, a function construction and calculation module, and an organization saving and outputting module. The collection and conversion base establishment module is used to collect the plunger moving distance, the injector capacity and the needle cylinder length specification parameters, input the collected injector capacity and needle cylinder length specification parameters into an interactive interface, and establish a geometric conversion base; The function construction and calculation module is used to construct a dynamic metering conversion function, calculate a conversion proportion factor, input the conversion proportion factor, the plunger moving distance and the injector specification parameters into the dynamic dose conversion function, and obtain an injection dose value; The organization saving and outputing module is used to organize the injection dose value, the starting displacement and the injector model data in a structured form, save and output the organized injection dose value, the starting displacement and the injector model data. 11.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-10. The processor executes the computer program to realize the steps of the laser ranging drug administration dose measurement method in any one of claims 1 to 7.

12. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the laser ranging drug administration dose measurement method in any one of claims 1 to 7.