CN116934354A - Method and device for supervising medicine metering scale, electronic equipment and medium - Google Patents

Method and device for supervising medicine metering scale, electronic equipment and medium Download PDF

Info

Publication number
CN116934354A
CN116934354A CN202310902278.7A CN202310902278A CN116934354A CN 116934354 A CN116934354 A CN 116934354A CN 202310902278 A CN202310902278 A CN 202310902278A CN 116934354 A CN116934354 A CN 116934354A
Authority
CN
China
Prior art keywords
metering
medicine
information
data
calibration value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310902278.7A
Other languages
Chinese (zh)
Other versions
CN116934354B (en
Inventor
吴俊宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yuantu Technology Co ltd
Original Assignee
Zhejiang Yuantu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Yuantu Technology Co ltd filed Critical Zhejiang Yuantu Technology Co ltd
Priority to CN202310902278.7A priority Critical patent/CN116934354B/en
Publication of CN116934354A publication Critical patent/CN116934354A/en
Application granted granted Critical
Publication of CN116934354B publication Critical patent/CN116934354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/01Testing or calibrating of weighing apparatus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Educational Administration (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The application relates to the field of management and control of medicine metering scales, in particular to a method, a device, electronic equipment and a medium for supervising the medicine metering scales. The method comprises the following steps: the method comprises the steps of obtaining historical metering information and metering supervision information, carrying out data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information, updating weighing standards based on the metering node information and the metering calibration values to obtain node weighing standards, and correcting metering data based on metering nodes in the node weighing standards to obtain actual metering data.

Description

Method and device for supervising medicine metering scale, electronic equipment and medium
Technical Field
The application relates to the field of medicine metering supervision, in particular to a supervision method, device, electronic equipment and medium for a medicine metering scale.
Background
A drug meter refers to a device that is dedicated to measuring and weighing a drug dose. It is generally an electronic scale with high accuracy and stability for accurately measuring the weight of a medicine. Drug meters are widely used in medical institutions, pharmacies, drug enterprises, and other settings involving the preparation and dispensing of drugs. Its main function is to ensure the accurate dosage of the medicine to reach the correct therapeutic effect and ensure the medication safety of the patient.
Currently, drug meters typically have sensitive sensors, digital displays, and data storage capabilities to record and monitor drug usage. In addition, some drug meters are equipped with special functions and safety precautions to prevent mishandling and drug cross-contamination. However, in the actual use process of the medicine weighing scale, the self-provided sensitive sensor is easy to gradually reduce the weighing monitoring precision along with the use time, and at the moment, if a medicine manager does not find and calibrate the weighing error in time, the weighing precision of the medicine weighing scale is easy to be reduced.
Disclosure of Invention
In order to improve the metering precision of the medicine metering scale, the application provides a supervision method, a supervision device, electronic equipment and a supervision medium of the medicine metering scale.
In a first aspect, the present application provides a method for supervising a drug weighing scale, which adopts the following technical scheme:
a method of supervising a drug meter, comprising:
acquiring historical metering information and metering supervision information;
the historical metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a historical time period, the metering supervision information is used for representing the weighing standard and metering data of a weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale;
Performing data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information, wherein the metering node information is used for representing the metering node information when the medicine metering scale is used for metering medicines each time;
updating the weighing standard based on the metering node information and the metering calibration value to obtain a node weighing standard;
and correcting the metering data based on the metering nodes in the node weighing standard to obtain actual metering data.
In another possible implementation manner, the data analysis on the historical metering information and the metering supervision information obtains metering node information and a metering calibration value corresponding to the metering node information, including:
the first metering information and the second metering information in the historical metering information are called;
wherein the first metering information includes: a first metered medicine category and a first metered medicine content corresponding to the first metered medicine category, wherein the first metered medicine category is used for indicating that the medicine metering scale meters different metered medicine categories for the first time, and the first metered medicine content is used for indicating that the medicine metering scale meters different metered medicine categories for the first time;
The second metering information includes: a second metered medicine category and a second metered medicine content corresponding to the second metered medicine category, wherein the second metered medicine category is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time, and the second metered medicine content is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time;
determining first weighing data corresponding to the first metering medicine type based on the metering data, and planning the first metering medicine type, the first metering medicine content and the first weighing data according to metering time points to obtain first metering data;
determining second weighing data corresponding to the second metering medicine type based on the metering data, and planning the second metering medicine type, the second metering medicine content and the second weighing data according to the metering time point to obtain second metering data;
and integrating the first metering data and the second metering data according to unit time to obtain metering node information and metering calibration values corresponding to the metering node information.
In another possible implementation manner, the updating the weighing standard based on the metering node information and the metering calibration value to obtain a node weighing standard includes:
determining a metering balance initial value with a comparison relation with the metering node information based on the weighing standard;
and updating the initial value of the metering scale according to the metering calibration value to obtain a node weighing standard.
In another possible implementation manner, the integrating average difference calculation is performed on the first measurement data and the second measurement data according to unit time to obtain measurement node information and measurement calibration values corresponding to the measurement node information, and then the method further includes:
judging whether the metering calibration value accords with a preset metering calibration value, if not, generating metering abnormal information, wherein the preset metering calibration value is a metering error limit value of the medicine metering scale;
if the metering calibration value accords with a preset metering calibration value, future metering information is acquired, wherein the future metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a future period time;
Predicting a metering calibration value according to the future metering information, the historical metering information and the metering node information to obtain a future metering calibration value in the future period time;
and detecting initial node data of which the future metering calibration value does not accord with the preset metering calibration value, and generating metering cut-off information according to the initial node data.
In another possible implementation manner, the predicting the metering calibration value according to the future metering information, the historical metering information and the metering node information, to obtain a future metering calibration value in the future period time includes:
analyzing the historical metering information and the metering node information, determining metering nodes of different metering medicine types in the historical metering information and metering calibration values corresponding to the metering nodes, and performing unsupervised time series data arrangement on the historical metering information based on the metering nodes and the metering calibration values to obtain historical metering matrix data;
inputting the historical metering matrix data into a trained metering model for vector feature extraction to obtain the number of metering feature dimensions, and carrying out data combination processing on the obtained number of metering feature dimensions and the historical metering matrix data to generate metering dimension matrix data;
Data processing is carried out on the data contained in the metering dimension matrix data to obtain metering comprehensive data, the obtained metering comprehensive data is input into a preset algorithm model for data calculation, and a metering calibration value of a metering node of the metering medicine type in the future period time period is generated;
and matching the metering medicine types corresponding to the medicine metering order in the future metering information with the metering medicine types in the history metering information to obtain a future metering calibration value.
In another possible implementation manner, the matching between the measured medicine types corresponding to the medicine measurement order in the future measurement information and the measured medicine types in the historical measurement information to obtain a future measurement calibration value further includes:
acquiring an actual calibration value of each metering medicine in the metering medicine types in a preset time period in the future;
and carrying out inverse normalization processing on the future metering calibration value based on the actual calibration value, and recovering the future metering calibration value to the actual calibration value.
In another possible implementation, the method further includes:
Determining a calibration value root mean square error based on the actual calibration value and the future metrology calibration value;
setting parameters of an epoch training model in the metering model according to the root mean square error of the calibration value, and performing reverse iteration on the set epoch training model to obtain a verification set of each round in the metering model;
and carrying out calculation and evaluation on the verification set to generate a loss value and an evaluation index of the verification set.
In a second aspect, the present application provides a device for supervising a drug weighing scale, which adopts the following technical scheme:
a device for supervising a drug meter, comprising:
the information acquisition module is used for acquiring historical metering information and metering supervision information;
the historical metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a historical time period, the metering supervision information is used for representing the weighing standard and metering data of a weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale;
the metering analysis module is used for carrying out data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information, and the metering node information is used for representing the metering node information when the medicine metering scale is used for metering medicines each time;
The metering updating module is used for updating the weighing standard based on the metering node information and the metering calibration value to obtain a node weighing standard;
and the metering correction module is used for correcting the metering data based on the metering nodes in the node weighing standard to obtain actual metering data.
In one possible implementation manner, the measurement analysis module is specifically configured to, when performing data analysis on the historical measurement information and the measurement supervision information to obtain measurement node information and a measurement calibration value corresponding to the measurement node information:
the first metering information and the second metering information in the historical metering information are called;
wherein the first metering information includes: a first metered medicine category and a first metered medicine content corresponding to the first metered medicine category, wherein the first metered medicine category is used for indicating that the medicine metering scale meters different metered medicine categories for the first time, and the first metered medicine content is used for indicating that the medicine metering scale meters different metered medicine categories for the first time;
the second metering information includes: a second metered medicine category and a second metered medicine content corresponding to the second metered medicine category, wherein the second metered medicine category is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time, and the second metered medicine content is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time;
Determining first weighing data corresponding to the first metering medicine type based on the metering data, and planning the first metering medicine type, the first metering medicine content and the first weighing data according to metering time points to obtain first metering data;
determining second weighing data corresponding to the second metering medicine type based on the metering data, and planning the second metering medicine type, the second metering medicine content and the second weighing data according to the metering time point to obtain second metering data;
and integrating the first metering data and the second metering data according to unit time to obtain metering node information and metering calibration values corresponding to the metering node information.
In another possible implementation manner, the measurement updating module is specifically configured to, when updating the weighing standard based on the measurement node information and the measurement calibration value to obtain a node weighing standard:
determining a metering balance initial value with a comparison relation with the metering node information based on the weighing standard;
and updating the initial value of the metering scale according to the metering calibration value to obtain a node weighing standard.
In another possible implementation, the apparatus further includes: the system comprises a metering judgment module, a future acquisition module, a calibration prediction module and a metering cut-off module, wherein,
the metering judgment module is used for judging whether the metering calibration value accords with a preset metering calibration value, if not, metering abnormal information is generated, and the preset metering calibration value is a metering error limit value of the medicine metering scale;
the future acquisition module is used for acquiring future metering information if the metering calibration value accords with a preset metering calibration value, wherein the future metering information is used for representing the metering medicine type of the medicine metering scale and the metering medicine content corresponding to the metering medicine type in a future period time;
the calibration prediction module is used for predicting a measurement calibration value according to the future measurement information, the historical measurement information and the measurement node information to obtain a future measurement calibration value in the future period time period;
and the metering cut-off module is used for detecting initial node data of which the future metering calibration value does not accord with the preset metering calibration value and generating metering cut-off information according to the initial node data.
In another possible implementation manner, the calibration prediction module is specifically configured to, when predicting a measurement calibration value according to the future measurement information, the historical measurement information, and the measurement node information, obtain a future measurement calibration value within the future period time period:
analyzing the historical metering information and the metering node information, determining metering nodes of different metering medicine types in the historical metering information and metering calibration values corresponding to the metering nodes, and performing unsupervised time series data arrangement on the historical metering information based on the metering nodes and the metering calibration values to obtain historical metering matrix data;
inputting the historical metering matrix data into a trained metering model for vector feature extraction to obtain the number of metering feature dimensions, and carrying out data combination processing on the obtained number of metering feature dimensions and the historical metering matrix data to generate metering dimension matrix data;
data processing is carried out on the data contained in the metering dimension matrix data to obtain metering comprehensive data, the obtained metering comprehensive data is input into a preset algorithm model for data calculation, and a metering calibration value of a metering node of the metering medicine type in the future period time period is generated;
And matching the metering medicine types corresponding to the medicine metering order in the future metering information with the metering medicine types in the history metering information to obtain a future metering calibration value.
In another possible implementation, the apparatus further includes: the actual value acquisition module and the normalization processing module, wherein,
the actual value acquisition module is used for acquiring actual calibration values of each metering medicine in the metering medicine types in a future preset time period;
and the normalization processing module is used for performing inverse normalization processing on the future metering calibration value based on the actual calibration value and restoring the future metering calibration value to the actual calibration value.
In another possible implementation, the apparatus further includes: an error determination module, a reverse iteration module, and a calculation evaluation module, wherein,
the error determination module is used for determining a root mean square error of the calibration value based on the actual calibration value and the future metering calibration value;
the reverse iteration module is used for setting parameters of an epoch training model in the metering model according to the root mean square error of the calibration value, and carrying out reverse iteration on the set epoch training model to obtain a verification set of each round in the metering model;
The calculation evaluation module is used for carrying out calculation evaluation on the verification set and generating a loss value and an evaluation index of the verification set.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device, the electronic device comprising:
at least one processor;
a memory;
at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: a method of supervising a pharmaceutical scale according to any one of the first aspects is performed.
In a fourth aspect, a computer readable storage medium is provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, at least one program, code set, or instruction set being loaded and executed by a processor to implement a method of supervising a drug meter as shown in any one of the possible implementations of the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
compared with the related art, in the application, when the metering data of the medicine metering scale is verified, the historical metering information and the metering supervision information are acquired, wherein the historical metering information is used for representing the metering medicine type of the medicine metering scale and the metering medicine content corresponding to the metering medicine type in a historical time period, the metering supervision information is used for representing the weighing standard and the metering data of a weight sensor of the medicine metering scale in the historical time period, the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale, then the historical metering information and the metering supervision information are subjected to data analysis to obtain metering node information and metering calibration values corresponding to the metering node information, the metering node information is used for representing the metering node information when the medicine metering is performed by using the medicine metering scale each time, the weighing standard is updated based on the metering node information and the metering calibration values, the node weighing standard is obtained, and then the metering data is corrected based on the metering node in the node weighing standard, so that the actual metering data is obtained, and the metering effect of improving the metering precision of the medicine metering scale is achieved.
Drawings
FIG. 1 is a flow chart of a method for monitoring a drug meter according to an embodiment of the present application;
FIG. 2 is a block diagram of a device for supervising a drug meter according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
The application is described in further detail below with reference to fig. 1-3.
Modifications of the embodiments which do not creatively contribute to the application may be made by those skilled in the art after reading the present specification, but are protected by patent laws only within the scope of the claims of the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" is merely an association relation describing the association object, and indicates that three relations may exist, for example, a method, apparatus, electronic device, medium and/or B for supervising a drug metering scale may indicate: the method, the device, the electronic equipment and the medium for supervising the medicine metering scale independently exist, and the method, the device, the electronic equipment and the medium for supervising the medicine metering scale and the B independently exist. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Embodiments of the application are described in further detail below with reference to the drawings.
The embodiment of the application provides a method for supervising a medicine metering scale, which is executed by electronic equipment, wherein the electronic equipment can be a server or terminal equipment, and the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server for providing cloud computing service. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., and the terminal device and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein, and as shown in fig. 1, the method includes:
step S10, historical metering information and metering supervision information are acquired.
The historical metering information is used for indicating the type of the metering medicine of the medicine metering scale and the metering medicine content corresponding to the type of the metering medicine in the historical time period, the metering supervision information is used for indicating the weighing standard and metering data of the weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale.
In the embodiment of the present application, the historical time period is a time period set by a worker through an electronic device, for example: the historical time period is one month.
In the embodiment of the application, when the medicine metering scale works each time, the metering medicine type and the metering medicine content of the metering medicine are bound, then the bound data are stored into the data table according to the metering time point, metering information of the medicine metering scale in one month is acquired every month for metering calibration value monitoring, for example: when the medicines are metered, firstly, the medicine metering scale is placed to a specified horizontal position, then medicines corresponding to the metered medicine types are led into the specified medicine container, after the introduction is completed, the ratio of the medicine capacity to the medicine container capacity is recorded, and the ratio is used as the metered medicine content to be bound with the metered medicine types for storage.
In the embodiment of the application, the weighing standard of the weight sensor is that the initial gravity detection value of the weight sensor is reset to zero, and when the weight of the corresponding medicine is detected, the gravity detection value is correspondingly changed.
And S11, carrying out data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information.
The metering node information is used for representing the metering node information when the medicine metering scale is used for metering medicines each time.
Specifically, the type of the measured medicine and the corresponding content of the measured medicine of each medicine measuring scale can be determined according to the historical measuring information, and the measuring value of each medicine measuring scale can be determined according to the measuring supervision information.
And step S12, updating the weighing standard based on the metering node information and the metering calibration value to obtain the node weighing standard.
Specifically, the metering calibration value obtained in step S11 is accumulated with the initial gravity detection value in the weighing standard, so as to obtain a node weighing standard of each metering node of the drug metering scale, for example: the initial gravity detection value is 0, namely when the medicine is metered by using the medicine metering scale, the weight value obtained by metering of the medicine metering scale is 2mg, and if the metering calibration value is 3mg, the updated node weighing standard is 5mg, namely 3mg is added on the basis of the weight value detected by the medicine metering scale.
And S13, correcting the metering data based on the metering nodes in the node weighing standard to obtain actual metering data.
Specifically, in the context of the node weighing criteria, the metering data is corrected to obtain actual metering data, for example: the measured data obtained by monitoring under the weighing standard is 5mg, then after the symmetrical weighing standard is updated, the node weighing standard is 3mg, and the actual measured data is 8mg.
The embodiment of the application provides a supervision method of a medicine metering scale, which comprises the steps of obtaining historical metering information and metering supervision information when metering data of the medicine metering scale are verified, wherein the historical metering information is used for representing metering medicine types of the medicine metering scale and metering medicine contents corresponding to the metering medicine types in a historical time period, the metering supervision information is used for representing weighing standards and metering data of a weight sensor of the medicine metering scale in the historical time period, the weight sensor is used for metering the weight of medicines contained in the medicine metering scale, then data analysis is carried out on the historical metering information and the weighing standards to obtain metering node information and metering calibration values corresponding to the metering node information, the metering node information is used for representing metering node information when the medicine metering scale is used each time, updating the weighing standards based on the metering node information and the metering calibration values to obtain node weighing standards, and then correcting the metering data based on metering nodes in the node weighing standards to obtain actual metering data, and therefore the effect of improving the metering precision of the medicine is achieved.
In one possible implementation manner of the embodiment of the present application, the step S11 specifically includes a step S111, a step S112, a step S113, and a step S114, where,
step S111, retrieving the first metering information and the second metering information in the history metering information.
Wherein the first metering information includes: the first metering medicine type is used for indicating the medicine metering scale to meter different metering medicine types for the first time, and the first metering medicine content is used for indicating the medicine metering scale to meter the metering medicine content corresponding to the different metering medicine types for the first time;
the second metering information includes: a second metered medicine category and a second metered medicine content corresponding to the second metered medicine category, the second metered medicine category being used for indicating that the medicine meter is not first metering different metered medicine categories, the second metered medicine content being used for indicating that the medicine meter is not first metering different metered medicine categories corresponding to the metered medicine categories;
step S112, determining first weighing data corresponding to the first metering medicine type based on the metering data, and planning the first metering medicine type, the first metering medicine content and the first weighing data according to the metering time point to obtain first metering data.
In the embodiment of the application, in order to accurately know the metering accuracy of different medicine metering scales when metering medicines, a first metering medicine type test is adopted, namely, under the premise that the medicine metering scales are not used, medicines of different metering medicine types are put into the medicine metering scales to test the content of different metering medicines, and the metering value of the medicine metering scales of each metering medicine type under the different metering medicine contents is accurately measured.
Specifically, a first data coordinate system is established, wherein an X axis is a time line, a Y axis is a time line corresponding to different metering medicine types and corresponding metering medicine content metering values, unit time of the time line is divided by taking each time as a unit, under the premise that the medicine metering scale is not used, the metering medicine types, the metering medicine content and the metering values of the medicine metering scale are detected and recorded for the first time, then the metering values and the numerical values of the Y axis are correspondingly marked, and then each mark is connected according to a time line rule, so that first metering information is obtained.
Step S113, determining second weighing data corresponding to the second type of the measured medicine based on the measured data, and performing data planning on the second type of the measured medicine, the second measured medicine content and the second weighing data according to the measured time point to obtain second measured data.
Specifically, a second data coordinate system is established, wherein the X-axis is a time line of a time line corresponding to the X-axis in the first data coordinate system, and the Y-axis is a measurement value of the corresponding measured medicine content and different measured medicine types corresponding to the time line, and the second measurement information is obtained by connecting the measurement values according to the mark connection in step S112.
Step S114, integrating the first metering data and the second metering data according to unit time, and calculating the mean deviation to obtain metering node information and metering calibration values corresponding to the metering node information.
Specifically, calculating the measurement values in the first measurement information and the second measurement information respectively, and performing average calculation according to the content of the measured medicine, namely, the measurement average value=the measurement value/the content of the measured medicine, then performing difference calculation on the measurement average values of the same measurement medicine types in the first measurement information and the second measurement information to obtain a measurement calibration average value, and then performing multiplication operation on the measurement calibration average value and the content of the measured medicine to obtain a measurement calibration value.
In one possible implementation manner of the embodiment of the present application, step S12 specifically includes: and determining a metering balance initial value with a comparison relation with the metering node information based on the weighing standard, and updating the metering balance initial value according to the metering calibration value to obtain the node weighing standard.
A possible implementation manner of the embodiment of the present application, step S13 further includes step S131, step S132, and step S133, where,
step S131, judging whether the metering calibration value accords with a preset metering calibration value, and if not, generating metering abnormal information.
The preset metering calibration value is a metering error limit value of the medicine metering scale.
In the embodiment of the application, once the metering calibration value of the medicine metering scale exceeds the metering error limit value, the medicine metering scale is required to be replaced. The measurement error limit value is obtained from the maximum weighing amount of the medicine weighing scale and the medicine measurement value. Namely:
when the maximum weighing amount of the medicine metering scale is 3 g:
when the medicine metering value is more than 20mg and less than or equal to 0.5g, the metering error limit value is 0.5mg;
when the medicine metering value is more than 0.5g and less than or equal to 2g, the metering error limit value is 1mg;
when the medicine measurement value is more than 2g, the measurement error limit value is 1.5mg.
When the maximum weighing amount of the medicine metering scale is 6 g:
when the medicine metering value is more than 40mg and less than or equal to 1g, the metering error limit value is 1mg;
when the medicine metering value is more than 1g and less than or equal to 4g, the metering error limit value is 2mg;
When the medicine measurement value is more than 4g, the measurement error limit value is 3mg.
Step S131, if the metering calibration value accords with the preset metering calibration value, the future metering information is acquired.
The future metering information is used for representing the metering medicine type of the medicine metering scale and the metering medicine content corresponding to the metering medicine type in the future period time.
Specifically, the future period time is a time period in a future day, and the type of the measured medicine and the measured medicine content in the future period time are known according to the work registration table of the medicine meter for the future day.
And step S132, predicting the metering calibration value according to the future metering information, the historical metering information and the metering node information to obtain the future metering calibration value in the future period time.
Specifically, after knowing the metering calibration values of different metering medicine types corresponding to different metering medicine contents in the historical metering information, matching and predicting future metering information and the metering medicine types of the historical metering information, so as to obtain the future metering calibration value in the future period time.
Step S133, detecting initial node data of which the future metering calibration value does not accord with the preset metering calibration value, and generating metering cut-off information according to the initial node data.
In one possible implementation manner of the embodiment of the present application, step S132 specifically includes: step S321, step S322, step S323, and step S324, wherein,
and S321, analyzing the historical metering information and the metering node information, determining metering nodes of different metering medicine types in the historical metering information and metering calibration values corresponding to the metering nodes, and performing unsupervised time series data arrangement on the historical metering information based on the metering nodes and the metering calibration values to obtain historical metering matrix data.
Specifically, the metering node is the node described in step S13, and the node includes the type of the metered medicine, the content of the metered medicine, and the metering value.
And performing unsupervised time series data arrangement on the historical metering information according to the metering nodes and the metering calibration values to obtain the following historical metering matrix data:
wherein m is the type of the measured medicine, and n is the time sequence length corresponding to the node.
Step S322, the historical metering matrix data are input into a trained metering model to conduct vector feature extraction, the metering feature dimension quantity is obtained, and data combination processing is conducted on the obtained metering feature dimension quantity and the historical metering matrix data to generate metering dimension matrix data.
Specifically, the historical metering matrix data is input into the metering model to extract vector features, a matrix data sample is required to be obtained in advance, the matrix data sample comprises first default matrix data formed by the historical metering information and vector features in the historical metering matrix data, then the metering model is created, and the metering model is trained based on the historical metering matrix data and the vector features in the historical metering matrix data, so that a trained metering model is obtained.
Specifically, the metering model is a pre-trained Neural network model, and the Neural Network (NN) is a complex network system formed by a large number of simple processing units (called neurons) widely connected with each other, which reflects many basic characteristics of the brain function, and is a highly complex nonlinear power learning system. Neural networks have massively parallel, distributed storage and processing, self-organizing, adaptive, and self-learning capabilities, and are particularly suited to address imprecise and ambiguous information processing issues that require consideration of many factors and conditions simultaneously. The development of neural networks has been related to neuroscience, mathematical science, cognitive science, computer science, artificial intelligence, information science, control theory, robotics, microelectronics, psychology, optical computing, molecular biology, etc.
Specifically, the historical metering matrix data are input into a metering model to extract vector features, the extracted vector features are counted to obtain feature dimension quantity, wherein the vector features comprise material vector features, duration vector features, metering value features and the like in the historical metering information, and then the feature dimension quantity is combined with the historical metering matrix data to obtain the metering dimension matrix data.
Step S323, data processing is carried out on the data contained in the metering dimension matrix data to obtain metering comprehensive data, the obtained metering comprehensive data is input into a preset algorithm model for data calculation, and metering calibration values of metering nodes for metering medicine types in a future period time period are generated;
for the embodiments of the present application, a bi-directional LSTM model is used as an example of a predetermined algorithm model, including but not limited to a bi-directional LSTM model.
Specifically, a preset algorithm model is built, a model main body adopts a bidirectional LSTM as a trend prediction model, and the LSTM mainly comprises a forgetting gate, an input gate and an output gate;
forgetting the door:
an input door:
after the information of the forgetting gate and the input gate is filtered, combining the historical memory and the memory content of the current stage, and generating the following values:
Output door:
after the LSTM described above, a LSTM network layer is reversely accessed, and the BI-LSTM layer can be obtained through the process, and the combination of a plurality of groups of microorganism species is trained together; and adding a species space feature joint learning layer, initializing the size of an associated vector matrix to be M x V x K, taking the output vector of the last layer of the LSTM, transposed multiplying the associated vector parameter matrix, and finally connecting a regression loss function to finish the construction of a preset algorithm model.
Step S324, matching the metering medicine types corresponding to the medicine metering order in the future metering information with the metering medicine types in the history metering information to obtain the future metering calibration value.
Specifically, the number of measurement feature dimensions is integrated with the historical measurement matrix data to generate dimension matrix data.
Embodiments of the present application are illustrated using a pytorch technique, including but not limited to one implementation of a pytorch technique.
Dimension integration is achieved by adding the number of metering feature dimensions to the historical metering matrix data in a dimension manner through an instruction "out. Unsqueze (-1)" in pytorch.
Specifically, the PyTorch is a Torch-based Python open source machine learning library used for applications such as natural language processing. The method is mainly developed by an artificial intelligence group of facebook, can realize powerful GPU acceleration and also support a dynamic neural network, and is not supported by many mainstream frameworks such as TensorFlow at present. PyTorch provides two advanced functions: 1. tensor computation with powerful GPU acceleration (e.g., numpy); 2. deep neural networks incorporating automated deriving systems, other than Facebook, mechanisms such as Twitter, GMU, and Salesforce all employ PyTorch.
After the measurement feature dimension number and the history measurement matrix data are integrated, the following dimension matrix data are obtained:
where v represents the number of metrology feature dimensions.
And performing basic data distribution exploration on the dimension matrix data, acquiring the relative periodicity rule of metering calibration values of different types of metering medicines in the historical metering information under different metering medicine contents, and determining the time period length based on the relative periodicity rule.
Specifically, dimension matrix data are imported into an Excel table, a Python integration jupyter environment is configured, basic data distribution exploration is conducted on n time sequences in the dimension matrix data, and the main purpose is to find out the relative periodicity rule of the corresponding sequences, and then the time period length is determined according to the phase periodicity rule.
And performing supervised time sequence data arrangement on the dimension matrix data based on the time period length to obtain prediction matrix data. Substituting t for the time period length, and substituting n in the dimension matrix data for t to obtain prediction matrix data:
and predicting the change trend of the metered medicine types in the future period time based on the prediction matrix data to generate metering dimension matrix data. Assuming that a preset future period time period is k, namely, a moving step length is k-step prediction, and obtaining metering dimension matrix data:
According to a possible implementation manner of the embodiment of the application, according to matching of the metering medicine types corresponding to the medicine metering sequence in the future metering information and the metering medicine types in the history metering information, a future metering calibration value is obtained, and then the method further comprises:
acquiring an actual calibration value of each metering medicine in the metering medicine types in a preset time period in the future;
and performing inverse normalization processing on the future metering calibration value based on the actual calibration value, and recovering the future metering calibration value to the actual calibration value.
Specifically, the future metering calibration value is subjected to inverse normalization processing so that the future metering calibration value is restored to the data before normalization processing, and then the actual calibration value is overlaid on the future metering calibration value.
One possible implementation manner of the embodiment of the present application, the method further includes:
determining a calibration value root mean square error based on the actual calibration value and the future metrology calibration value;
setting parameters of an epoch training model in the metering model according to the root mean square error of the calibration value, and performing reverse iteration on the set epoch training model to obtain a verification set of each round in the metering model;
and carrying out calculation and evaluation on the verification set to generate a loss value and an evaluation index of the verification set.
Specifically, the root mean square error, which is the square root of the ratio of the square sum of the observed value and the true value deviation, n, is calculated by the formula: re= [ Σdi≡2/n ], where n is the number of measurements and di is the deviation of a set of actual calibration values and future metrology calibration values.
Specifically, when a complete data set passes through the neural network once and returns once, this process is called an epoch training model. One epoch refers to the process of performing one forward calculation and one backward propagation of all data into the network. Since one epoch is often too large, the computer cannot be loaded, and we would divide it into several smaller batches. In training, it is not enough to train all data iteratively once, and it is necessary to repeat many times to fit convergence. In practical training, we divide all data into several latches, and each time a portion of data is fed in, the gradient descent itself is an iterative process. Parameters in the epoch training model are set according to the root mean square error of the calibration values, and a verification set, namely a verification set, of each round in the metering model is obtained.
Specifically, the computational evaluation of the validation set includes the steps of:
performing percentage calculation on the verification set and the training set of the metering model to obtain a loss value;
And comparing the loss value with a standard loss value table to obtain an evaluation index.
For example: the current loss value is 50%, and 50% corresponding to the standard loss value table is a level 2 index.
The above embodiments describe a method for monitoring a drug meter from the perspective of a method flow, and the following embodiments describe a device for monitoring a drug meter from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
An embodiment of the present application provides a device for monitoring a drug weighing scale, as shown in fig. 2, where the device 20 for monitoring a drug weighing scale may specifically include: an information acquisition module 21, a meter analysis module 22, a meter update module 23, and a meter correction module 24, wherein,
an information acquisition module 21 for acquiring historical metering information and metering supervision information;
the historical metering information is used for indicating the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in the historical time period, the metering supervision information is used for indicating the weighing standard and metering data of a weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale;
The metering analysis module 22 is configured to perform data analysis on the historical metering information and the weighing standard to obtain metering node information and metering calibration values corresponding to the metering node information, where the metering node information is used for representing metering node information when the drug metering is performed by using the drug metering scale each time;
the measurement updating module 23 is configured to update the weighing standard based on the measurement node information and the measurement calibration value, so as to obtain a node weighing standard;
the metering correction module 24 is configured to correct the metering data based on the metering nodes in the node weighing standard, so as to obtain actual metering data.
In one possible implementation manner of the embodiment of the present application, when the measurement analysis module 22 performs data analysis on the historical measurement information and the weighing standard to obtain measurement node information and a measurement calibration value corresponding to the measurement node information, the measurement analysis module is specifically configured to:
retrieving first metering information and second metering information in the historical metering information;
wherein the first metering information includes: the first metering medicine type is used for indicating the medicine metering scale to meter different metering medicine types for the first time, and the first metering medicine content is used for indicating the medicine metering scale to meter the metering medicine content corresponding to the different metering medicine types for the first time;
The second metering information includes: a second metered medicine category and a second metered medicine content corresponding to the second metered medicine category, the second metered medicine category being used for indicating that the medicine meter is not first metering different metered medicine categories, the second metered medicine content being used for indicating that the medicine meter is not first metering different metered medicine categories corresponding to the metered medicine categories;
determining first weighing data corresponding to the first metering medicine type based on the metering data, and carrying out data planning on the first metering medicine type, the first metering medicine content and the first weighing data according to the metering time point to obtain first metering data;
determining second weighing data corresponding to the second metering medicine type based on the metering data, and carrying out data planning on the second metering medicine type, the second metering medicine content and the second weighing data according to the metering time point to obtain second metering data;
and integrating the first metering data and the second metering data according to unit time to obtain metering node information and metering calibration values corresponding to the metering node information.
In another possible implementation manner of the embodiment of the present application, when the weighing standard is updated by the metering update module 23 based on the metering node information and the metering calibration value, the node weighing standard is obtained, which is specifically configured to:
Determining a metering initial value with a comparison relation with the metering node information based on a weighing standard;
and updating the initial value of the metering scale according to the metering calibration value to obtain the node weighing standard.
Another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: the system comprises a metering judgment module, a future acquisition module, a calibration prediction module and a metering cut-off module, wherein,
the metering judgment module is used for judging whether the metering calibration value accords with a preset metering calibration value, if not, metering abnormal information is generated, and the preset metering calibration value is a metering error limit value of the medicine metering scale;
the future acquisition module is used for acquiring future metering information if the metering calibration value accords with the preset metering calibration value, wherein the future metering information is used for representing the metering medicine types of the medicine metering scales and the metering medicine contents corresponding to the metering medicine types in the future period time;
the calibration prediction module is used for predicting the metering calibration value according to the future metering information, the historical metering information and the metering node information to obtain a future metering calibration value in a future period time period;
and the metering cut-off module is used for detecting initial node data of which the future metering calibration value does not accord with the preset metering calibration value and generating metering cut-off information according to the initial node data.
In another possible implementation manner of the embodiment of the present application, when the calibration prediction module predicts the measurement calibration value according to the future measurement information, the historical measurement information and the measurement node information to obtain the future measurement calibration value in the future period time, the calibration prediction module is specifically configured to:
analyzing the historical metering information and the metering node information, determining metering nodes of different metering medicine types in the historical metering information and metering calibration values corresponding to the metering nodes, and performing unsupervised time series data arrangement on the historical metering information based on the metering nodes and the metering calibration values to obtain historical metering matrix data;
the historical measurement matrix data are input into a trained measurement model to conduct vector feature extraction, the measurement feature dimension quantity is obtained, and data combination processing is conducted on the obtained measurement feature dimension quantity and the historical measurement matrix data to generate measurement dimension matrix data;
data processing is carried out on data contained in the metering dimension matrix data to obtain metering comprehensive data, the obtained metering comprehensive data is input into a preset algorithm model for data calculation, and metering calibration values of metering nodes for metering medicine types in a future period time period are generated;
And matching the metering medicine types corresponding to the medicine metering order in the future metering information with the metering medicine types in the historical metering information to obtain a future metering calibration value.
Another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: the actual value acquisition module and the normalization processing module, wherein,
the actual value acquisition module is used for acquiring the actual calibration value of each metering medicine in the metering medicine types in a future preset time period;
and the normalization processing module is used for performing inverse normalization processing on the future metering calibration value based on the actual calibration value and restoring the future metering calibration value to the actual calibration value.
Another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: an error determination module, a reverse iteration module, and a calculation evaluation module, wherein,
an error determination module for determining a root mean square error of the calibration value based on the actual calibration value and the future metrology calibration value;
the reverse iteration module is used for setting parameters of the epoch training model in the metering model according to the root mean square error of the calibration value, and carrying out reverse iteration on the set epoch training model to obtain a verification set of each round in the metering model;
And the calculation evaluation module is used for carrying out calculation evaluation on the verification set and generating a loss value and an evaluation index of the verification set.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The embodiment of the application also introduces an electronic device from the perspective of a physical device, as shown in fig. 3, and the electronic device 30 shown in fig. 3 includes, in addition to a conventional configuration device: a processor 301 and a memory 303. Wherein the processor 301 is coupled to the memory 303, such as via a bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that, in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The processor 301 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. Processor 301 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 302 may include a path to transfer information between the components. Bus 302 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The Memory 303 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 303 is used for storing application program codes for executing the inventive arrangements and is controlled to be executed by the processor 301. The processor 301 is configured to execute the application code stored in the memory 303 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. But may also be a server or the like. The electronic device shown in fig. 3 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
Embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations should and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of supervising a drug meter, comprising:
acquiring historical metering information and metering supervision information;
the historical metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a historical time period, the metering supervision information is used for representing the weighing standard and metering data of a weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale;
performing data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information, wherein the metering node information is used for representing the metering node information when the medicine metering scale is used for metering medicines each time;
Updating the weighing standard based on the metering node information and the metering calibration value to obtain a node weighing standard;
and correcting the metering data based on the metering nodes in the node weighing standard to obtain actual metering data.
2. The method for supervising the medicine weighing scale according to claim 1, wherein the data analysis is performed on the historical weighing information and the weighing supervision information to obtain weighing node information and a weighing calibration value corresponding to the weighing node information, and the method comprises the steps of:
the first metering information and the second metering information in the historical metering information are called;
wherein the first metering information includes: a first metered medicine category and a first metered medicine content corresponding to the first metered medicine category, wherein the first metered medicine category is used for indicating that the medicine metering scale meters different metered medicine categories for the first time, and the first metered medicine content is used for indicating that the medicine metering scale meters different metered medicine categories for the first time;
the second metering information includes: a second metered medicine category and a second metered medicine content corresponding to the second metered medicine category, wherein the second metered medicine category is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time, and the second metered medicine content is used for indicating that the medicine metering scale does not meter different metered medicine categories for the first time;
Determining first weighing data corresponding to the first metering medicine type based on the metering data, and planning the first metering medicine type, the first metering medicine content and the first weighing data according to metering time points to obtain first metering data;
determining second weighing data corresponding to the second metering medicine type based on the metering data, and planning the second metering medicine type, the second metering medicine content and the second weighing data according to the metering time point to obtain second metering data;
and integrating the first metering data and the second metering data according to unit time to obtain metering node information and metering calibration values corresponding to the metering node information.
3. The method of claim 2, wherein updating the weighing criteria based on the metering node information and the metering calibration value to obtain node weighing criteria comprises:
determining a metering balance initial value with a comparison relation with the metering node information based on the weighing standard;
And updating the initial value of the metering scale according to the metering calibration value to obtain a node weighing standard.
4. The method for supervising a medicine weighing scale according to claim 1, wherein the integrating average difference calculation is performed on the first weighing data and the second weighing data according to unit time to obtain weighing node information and a weighing calibration value corresponding to the weighing node information, and then the method further comprises:
judging whether the metering calibration value accords with a preset metering calibration value, if not, generating metering abnormal information, wherein the preset metering calibration value is a metering error limit value of the medicine metering scale;
if the metering calibration value accords with a preset metering calibration value, future metering information is acquired, wherein the future metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a future period time;
predicting a metering calibration value according to the future metering information, the historical metering information and the metering node information to obtain a future metering calibration value in the future period time;
and detecting initial node data of which the future metering calibration value does not accord with the preset metering calibration value, and generating metering cut-off information according to the initial node data.
5. The method according to claim 4, wherein predicting the metering calibration value according to the future metering information, the historical metering information and the metering node information to obtain the future metering calibration value in the future period time comprises:
analyzing the historical metering information and the metering node information, determining metering nodes of different metering medicine types in the historical metering information and metering calibration values corresponding to the metering nodes, and performing unsupervised time series data arrangement on the historical metering information based on the metering nodes and the metering calibration values to obtain historical metering matrix data;
inputting the historical metering matrix data into a trained metering model for vector feature extraction to obtain the number of metering feature dimensions, and carrying out data combination processing on the obtained number of metering feature dimensions and the historical metering matrix data to generate metering dimension matrix data;
data processing is carried out on the data contained in the metering dimension matrix data to obtain metering comprehensive data, the obtained metering comprehensive data is input into a preset algorithm model for data calculation, and a metering calibration value of a metering node of the metering medicine type in the future period time period is generated;
And matching the metering medicine types corresponding to the medicine metering order in the future metering information with the metering medicine types in the history metering information to obtain a future metering calibration value.
6. The method according to claim 5, wherein the matching of the type of the measured medicine corresponding to the order of measuring the medicine in the future measurement information with the type of the measured medicine in the history measurement information, to obtain a future measurement calibration value, further comprises:
acquiring an actual calibration value of each metering medicine in the metering medicine types in a preset time period in the future;
and carrying out inverse normalization processing on the future metering calibration value based on the actual calibration value, and recovering the future metering calibration value to the actual calibration value.
7. The method of claim 6, further comprising:
determining a calibration value root mean square error based on the actual calibration value and the future metrology calibration value;
setting parameters of an epoch training model in the metering model according to the root mean square error of the calibration value, and performing reverse iteration on the set epoch training model to obtain a verification set of each round in the metering model;
And carrying out calculation and evaluation on the verification set to generate a loss value and an evaluation index of the verification set.
8. A device for supervising a pharmaceutical dosage scale, comprising:
the information acquisition module is used for acquiring historical metering information and metering supervision information;
the historical metering information is used for representing the type of the metering medicine of the medicine metering scale and the content of the metering medicine corresponding to the type of the metering medicine in a historical time period, the metering supervision information is used for representing the weighing standard and metering data of a weight sensor of the medicine metering scale in the historical time period, and the weight sensor is used for metering the weight of the medicine contained in the medicine metering scale;
the metering analysis module is used for carrying out data analysis on the historical metering information and the metering supervision information to obtain metering node information and metering calibration values corresponding to the metering node information, and the metering node information is used for representing the metering node information when the medicine metering scale is used for metering medicines each time;
the metering updating module is used for updating the weighing standard based on the metering node information and the metering calibration value to obtain a node weighing standard;
And the metering correction module is used for correcting the metering data based on the metering nodes in the node weighing standard to obtain actual metering data.
9. An electronic device, comprising:
at least one processor;
a memory;
at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: a method of performing the supervision of a pharmaceutical product scale according to any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed in a computer, causes the computer to perform the method of supervision of a pharmaceutical product meter according to any one of claims 1 to 7.
CN202310902278.7A 2023-07-21 2023-07-21 Method and device for supervising medicine metering scale, electronic equipment and medium Active CN116934354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310902278.7A CN116934354B (en) 2023-07-21 2023-07-21 Method and device for supervising medicine metering scale, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310902278.7A CN116934354B (en) 2023-07-21 2023-07-21 Method and device for supervising medicine metering scale, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN116934354A true CN116934354A (en) 2023-10-24
CN116934354B CN116934354B (en) 2024-04-05

Family

ID=88375093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310902278.7A Active CN116934354B (en) 2023-07-21 2023-07-21 Method and device for supervising medicine metering scale, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116934354B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113670427A (en) * 2021-08-26 2021-11-19 深圳诺博医疗科技有限公司 Weighing self-correcting method, processing module, weighing device and storage medium
WO2022048168A1 (en) * 2020-09-03 2022-03-10 上海上讯信息技术股份有限公司 Training method and device for failure prediction neural network model
CN114565196A (en) * 2022-04-28 2022-05-31 北京零点远景网络科技有限公司 Multi-event trend prejudging method, device, equipment and medium based on government affair hotline
CN115097376A (en) * 2022-08-24 2022-09-23 中国南方电网有限责任公司超高压输电公司检修试验中心 Processing method and device for check data of metering equipment and computer equipment
CN115238969A (en) * 2022-06-30 2022-10-25 杭州卫康有害生物防治有限公司 Trend prediction method and device for termite prevention, electronic equipment and medium
CN115728445A (en) * 2022-10-15 2023-03-03 北京中立格林传感科技股份有限公司 Sensor calibration method, device, equipment and computer readable storage medium
CN115796434A (en) * 2023-01-29 2023-03-14 北京飞利信信息安全技术有限公司 Management and control method and device for power distribution network, electronic equipment and storage medium
CN115964668A (en) * 2022-11-26 2023-04-14 青岛益堃达热能设备有限公司 Heat supply monitoring analysis method, device, equipment and medium based on big data
CN116090710A (en) * 2023-04-11 2023-05-09 湖北君邦环境技术有限责任公司 Management method, system, electronic equipment and medium for enterprise pollution discharge permission
CN116091103A (en) * 2023-03-06 2023-05-09 北京佰信蓝图科技股份有限公司 Method, device, electronic equipment and medium for measuring and calculating periodic environment remediation

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022048168A1 (en) * 2020-09-03 2022-03-10 上海上讯信息技术股份有限公司 Training method and device for failure prediction neural network model
CN113670427A (en) * 2021-08-26 2021-11-19 深圳诺博医疗科技有限公司 Weighing self-correcting method, processing module, weighing device and storage medium
CN114565196A (en) * 2022-04-28 2022-05-31 北京零点远景网络科技有限公司 Multi-event trend prejudging method, device, equipment and medium based on government affair hotline
CN115238969A (en) * 2022-06-30 2022-10-25 杭州卫康有害生物防治有限公司 Trend prediction method and device for termite prevention, electronic equipment and medium
CN115097376A (en) * 2022-08-24 2022-09-23 中国南方电网有限责任公司超高压输电公司检修试验中心 Processing method and device for check data of metering equipment and computer equipment
CN115728445A (en) * 2022-10-15 2023-03-03 北京中立格林传感科技股份有限公司 Sensor calibration method, device, equipment and computer readable storage medium
CN115964668A (en) * 2022-11-26 2023-04-14 青岛益堃达热能设备有限公司 Heat supply monitoring analysis method, device, equipment and medium based on big data
CN115796434A (en) * 2023-01-29 2023-03-14 北京飞利信信息安全技术有限公司 Management and control method and device for power distribution network, electronic equipment and storage medium
CN116091103A (en) * 2023-03-06 2023-05-09 北京佰信蓝图科技股份有限公司 Method, device, electronic equipment and medium for measuring and calculating periodic environment remediation
CN116090710A (en) * 2023-04-11 2023-05-09 湖北君邦环境技术有限责任公司 Management method, system, electronic equipment and medium for enterprise pollution discharge permission

Also Published As

Publication number Publication date
CN116934354B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
Yang et al. State of charge estimation for lithium-ion battery with a temperature-compensated model
Liu et al. Eses: Software for e ulerian solvent excluded surface
Viechtbauer Model checking in meta-analysis
CN110008080A (en) Operational indicator method for detecting abnormality, device and electronic equipment based on time series
Kowalski et al. Efficient screening of covariates in population models using Wald's approximation to the likelihood ratio test
Guo et al. SOC estimation with an adaptive unscented Kalman filter based on model parameter optimization
CN110440893A (en) Weight-calibration method, apparatus and weighing-appliance
CN115728445B (en) Sensor calibration method, device, equipment and computer readable storage medium
EP4021285A1 (en) Method and apparatus for individualized administration of medicaments for enhanced safe delivery within a therapeutic range
CN114565196B (en) Multi-event trend prejudging method, device, equipment and medium based on government affair hotline
EP4354447A2 (en) Machine learning for protein binding sites
CN115238969A (en) Trend prediction method and device for termite prevention, electronic equipment and medium
CN116934354B (en) Method and device for supervising medicine metering scale, electronic equipment and medium
CN117076938B (en) Maximum sample number determining method, device and equipment
CN115839344B (en) Wear supervision method, device, equipment and storage medium for slurry pump
CN117110362A (en) Pipeline heat loss monitoring method, device, equipment and medium based on Internet of things
US11651289B2 (en) System to identify and explore relevant predictive analytics tasks of clinical value and calibrate predictive model outputs to a prescribed minimum level of predictive accuracy
Amo-Salas et al. Optimal designs for two nested pharmacokinetic models with correlated observations
CN116587062A (en) Supervision method and device of numerical control sawing machine, electronic equipment and storage medium
US20210035672A1 (en) Method and apparatus for individualized administration of medicaments for delivery within a therapeutic range
Ngo et al. Bayesian credible subgroup identification for treatment effectiveness in time-to-event data
CN115452101A (en) Instrument verification method, device, equipment and medium
CN114490412A (en) Three-dimensional CAD software performance measurement method and device based on self-subtraction reverse cloud generator
CN103733041B (en) Managing device and management method
Groussin et al. Ancestral reconstruction: Theory and practice

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant