Tracing system for chemical medicine storage based on cloud server

Through the chemical drug traceability system based on the cloud server, automatic data collection, compression and hash algorithm processing technology are used to solve the problem of drug information storage and transmission load, ensure the authenticity and security of the data, and improve the efficiency and effectiveness of drug traceability. accuracy.

CN118747653APending Publication Date: 2024-10-08WUHAN YIJIE ENVIRONMENTAL PROTECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962500.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing drug information is partly entered manually, which results in a large amount of drug information being stored and transmitted, which places a heavy load on the server. In addition, the information may be tampered with during the entry and storage process, affecting the authenticity and effectiveness of data traceability.

Method used

A traceability system for chemical storage based on cloud servers is designed, including data acquisition, compression, transmission, hash algorithm processing and storage units. It ensures the authenticity of data through automatic data collection, data compression, hash value comparison and other technologies. Authenticity and safety.

Benefits of technology

Data compression reduces storage and transmission requirements, improves data transmission efficiency, reduces hardware costs, and ensures data authenticity and anti-leakage effects through hashing algorithms, supporting remote work and the accuracy of drug traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747653A_ABST
    Figure CN118747653A_ABST
Patent Text Reader

Abstract

The invention discloses a tracing system for chemical medicine storage based on a cloud server, and particularly relates to the technical field of chemical medicine management.According to the tracing system, data compression is adopted, collected data are compressed, the compressed data are transmitted more quickly in a network, the bandwidth requirement can be reduced, the possibility of network congestion can be reduced, and the tracing efficiency of chemical medicine storage is improved. The data transmission efficiency is improved, the original data volume for storage and processing is reduced, the requirement on hardware equipment can be reduced, so that the hardware cost is reduced, compressed data can be quickly transmitted between a remote server and local equipment, smooth remote work is supported, and the data transmission efficiency is improved. The Hash algorithm is adopted for processing before data compression and after data decompression, whether the data is tampered or not is judged by judging whether the Hash values of the two data are consistent or not, the authenticity of the data traceability query process is guaranteed, original data is difficult to derive from the Hash values due to the unidirectivity and irreversibility of the Hash function, and the data traceability query efficiency is improved. And the leakproof effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chemical drug management, and more specifically, to a cloud server-based chemical drug storage traceability system. Background Art

[0002] Through traceability, we can ensure that every link of chemical drugs from production, circulation to use complies with national laws, regulations and quality standards, prevent counterfeit and inferior drugs from entering the market, and ensure the safety of people's use of drugs; traceability can help regulatory authorities to promptly discover and deal with illegal and irregular behaviors, such as the production of counterfeit and inferior drugs, illegal addition of ingredients, false propaganda, etc., and maintain a fair and competitive market environment; through traceability, we can improve the overall level of the pharmaceutical industry, encourage companies to abide by the rules, improve the quality of drugs, and promote scientific and technological innovation and sustainable development of the pharmaceutical industry; traceability can ensure the quality of drugs used by doctors and patients, improve the quality and efficiency of medical services, and reduce medical risks.

[0003] The existing drug information is partially entered manually. The storage and transmission of a large amount of drug information will bring a heavy load to the corresponding server, and the information may be tampered with during the entry and storage process, affecting the authenticity and effectiveness of the data traceability process. Therefore, a chemical drug storage traceability system based on a cloud server is needed to solve the above problems. Summary of the invention

[0004] In order to overcome the above-mentioned defects, the present invention provides a traceability system for chemical drug storage based on a cloud server. The technical problem to be solved by the present invention is that part of the existing drug information is manually entered, and the storage and transmission of a large amount of drug information will bring a large load to the corresponding server, and the information may be tampered with during the entry and storage process, affecting the authenticity and effectiveness of the data traceability process.

[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solution: a cloud server-based chemical storage traceability system, comprising:

[0006] A data acquisition unit, used to collect data on multiple links of drugs;

[0007] A data compression unit, used for compressing the acquired data;

[0008] A data transmission unit, used for wirelessly transmitting the compressed data;

[0009] Cloud service platform, used to receive and send corresponding instructions;

[0010] A data conversion unit, used to convert data into a format suitable for hash algorithm processing, and process the format-converted data using a hash algorithm to obtain a determined hash value;

[0011] A data storage unit, used to store compressed data and a hash value after the corresponding data is converted;

[0012] The data decompression unit decompresses the data retrieved from the data storage unit and transmits the decompressed data to the login query unit;

[0013] The login query unit is used for user authentication login, sending drug query commands to the cloud service platform, and receiving and viewing the traceability information of the corresponding drugs;

[0014] A data comparison and verification unit is used to compare the hash value of the initially acquired data with the hash value of the final viewed data to determine whether the hash values ​​are consistent;

[0015] The alarm prompt unit is used to send a warning message to the login query unit when the hash value verification results are inconsistent.

[0016] As a further solution of the present invention: the data collection of multiple links of the drug, including drug raw material information, drug production information, drug packaging information, drug transportation information, and drug storage information, is automatically collected through sensors.

[0017] As a further solution of the present invention: the working steps of the data comparison and verification unit include:

[0018] Receive the hash value obtained by converting the initially acquired data;

[0019] Receive the data, decompress it, and convert it into a hash value;

[0020] Compare the two hash values ​​to determine whether they are consistent;

[0021] If the two hash values ​​are consistent, it means that the data storage process has not been tampered with;

[0022] If the hash value is changed, it is judged that the final viewed data has been tampered with;

[0023] If the hash value is missing, it is determined that the data finally viewed has been deleted.

[0024] As a further solution of the present invention: the working steps of the data conversion unit include:

[0025] Receive the acquired data and determine whether the data satisfies the format processed by the hash algorithm;

[0026] If the data format can be processed by the hash algorithm, the data will not be converted;

[0027] If the data format cannot be processed by the hash algorithm, the data is converted;

[0028] The data after the conversion and the data that do not need to be converted are processed by the hash algorithm;

[0029] Get the hash value corresponding to the data.

[0030] As a further solution of the present invention: the specific working steps of the login query unit include:

[0031] Enter the user's identity information and perform identity verification;

[0032] If the verification fails, the login failure message will be displayed, and the user will be guided to try to retrieve the password again;

[0033] If the verification is passed, the login is successful.

[0034] Enter the drug information to be queried and send an instruction to query the drug traceability process;

[0035] Receive and display relevant information obtained from drug traceability.

[0036] As a further solution of the present invention: the process of data compression processing is specifically as follows:

[0037] The Bayesian estimation method is combined with the maximum likelihood estimation to perform compressed sensing reconstruction:

[0038] The observation vector is transformed into y = Φz + n, the variance of the noise is taken as a constant, the observation data is taken as a Gaussian random vector, and the signal model adopts a Bayesian model with feedback. The signal obeys the Laplace prior distribution, where φ represents the Gaussian random measurement matrix. Using the simplest prior distribution, the vector z is assumed to obey an independent distribution with a mean of 0. The hyperparameter of the prior distribution itself is α = [α1, α2, …α N ] T Obey the gamma distribution with hyperparameters a and b, simplify the model, let a=1, 2b=λ, and according to the identity in probability theory, get the posterior probability of z,

[0039] p(zy,λ,σ 2 )=p(yz,σ 2 ) / p(yλ,σ 2 )

[0040] Therefore, the posterior probability distribution follows a Gaussian distribution N(u,∑) with a mean of u and a variance of ∑. Using the augmentation idea, it is converted into the posterior of complete data.

[0041] According to the Bayesian formula,

[0042] p(z,λ,β,αy)=p(zλ,β,α,y)p(λ,β,α,y)

[0043]

[0044] in express Derivative of τ.

[0045] Removing the terms that are irrelevant to α yields:

[0046]

[0047] Using the maximum likelihood estimation idea to estimate α i Updates available when hour,

[0048]

[0049] Otherwise α i =0, for the convenience of calculating p i and q i , update p i and q i , can be obtained

[0050] The beneficial effects of the present invention are:

[0051] The present invention compresses the collected data by adopting data compression, so that the memory required for data transmission and storage is smaller, the compressed data can be transmitted faster in the network, the bandwidth demand can be reduced, the possibility of network congestion can be reduced, the efficiency of data transmission can be improved, the amount of original data stored and processed can be reduced, the requirements for hardware equipment can be reduced, and thus the hardware cost can be reduced. The compressed data can be transmitted more quickly between the remote server and the local device, supporting the smooth progress of remote work, and a hash algorithm is used to process the data before compression and after decompression. Whether the hash values ​​of the data at the two places are consistent can be used to determine whether the data has been tampered with, so that the authenticity of the data tracing query process is guaranteed. Due to the unidirectionality and irreversibility of the hash function, it is difficult to derive the original data from the hash value, and the anti-leakage effect is better. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] As shown in the figure, the present invention provides Example 1:

[0055] A chemical storage traceability system based on a cloud server, comprising:

[0056] A data acquisition unit, used to collect data on multiple links of drugs;

[0057] A data compression unit, used for compressing the acquired data;

[0058] A data transmission unit, used for wirelessly transmitting the compressed data;

[0059] Cloud service platform, used to receive and send corresponding instructions;

[0060] A data conversion unit, used to convert data into a format suitable for hash algorithm processing, and process the format-converted data using a hash algorithm to obtain a determined hash value;

[0061] A data storage unit, used to store compressed data and a hash value after the corresponding data is converted;

[0062] The data decompression unit decompresses the data retrieved from the data storage unit and transmits the decompressed data to the login query unit;

[0063] The login query unit is used for user authentication login, sending drug query commands to the cloud service platform, and receiving and viewing the traceability information of the corresponding drugs;

[0064] A data comparison and verification unit is used to compare the hash value of the initially acquired data with the hash value of the final viewed data to determine whether the hash values ​​are consistent;

[0065] The alarm prompt unit is used to send a warning message to the login query unit when the hash value verification results are inconsistent.

[0066] Data collection at multiple stages of drug production, including drug raw material information, drug production information, drug packaging information, drug transportation information, and drug storage information, is automatically collected through sensors.

[0067] The working steps of the data comparison and verification unit include:

[0068] Receive the hash value obtained by converting the initially acquired data;

[0069] Receive the data, decompress it, and convert it into a hash value;

[0070] Compare the two hash values ​​to determine whether they are consistent;

[0071] If the two hash values ​​are consistent, it means that the data storage process has not been tampered with;

[0072] If the hash value is changed, it is judged that the final viewed data has been tampered with;

[0073] If the hash value is missing, it is determined that the data finally viewed has been deleted.

[0074] The working steps of the data conversion unit include:

[0075] Receive the acquired data and determine whether the data satisfies the format processed by the hash algorithm;

[0076] If the data format can be processed by the hash algorithm, the data will not be converted;

[0077] If the data format cannot be processed by the hash algorithm, the data is converted;

[0078] The data after the conversion and the data that do not need to be converted are processed by the hash algorithm;

[0079] Get the hash value corresponding to the data.

[0080] The specific working steps of the login query unit include:

[0081] Enter the user's identity information and perform identity verification;

[0082] If the verification fails, the login failure message will be displayed, and the user will be guided to try to retrieve the password again;

[0083] If the verification is passed, the login is successful.

[0084] Enter the drug information to be queried and send an instruction to query the drug traceability process;

[0085] Receive and display relevant information obtained from drug traceability.

[0086] Embodiment 2:

[0087] A chemical storage traceability system based on a cloud server, comprising:

[0088] A data acquisition unit, used to collect data on multiple links of drugs;

[0089] A data compression unit, used for compressing the acquired data;

[0090] A data transmission unit, used for wirelessly transmitting the compressed data;

[0091] Cloud service platform, used to receive and send corresponding instructions;

[0092] A data conversion unit, used to convert data into a format suitable for hash algorithm processing, and process the format-converted data using a hash algorithm to obtain a determined hash value;

[0093] A data storage unit, used to store compressed data and a hash value after the corresponding data is converted;

[0094] The data decompression unit decompresses the data retrieved from the data storage unit and transmits the decompressed data to the login query unit;

[0095] The login query unit is used for user authentication login, sending drug query commands to the cloud service platform, and receiving and viewing the traceability information of the corresponding drugs;

[0096] A data comparison and verification unit is used to compare the hash value of the initially acquired data with the hash value of the final viewed data to determine whether the hash values ​​are consistent;

[0097] The alarm prompt unit is used to send a warning message to the login query unit when the hash value verification results are inconsistent.

[0098] Data collection at multiple stages of drug production, including drug raw material information, drug production information, drug packaging information, drug transportation information, and drug storage information, is automatically collected through sensors.

[0099] The working steps of the data comparison and verification unit include:

[0100] Receive the hash value obtained by converting the initially acquired data;

[0101] Receive the data, decompress it, and convert it into a hash value;

[0102] Compare the two hash values ​​to determine whether they are consistent;

[0103] If the two hash values ​​are consistent, it means that the data storage process has not been tampered with;

[0104] If the hash value is changed, it is judged that the final viewed data has been tampered with;

[0105] If the hash value is missing, it is determined that the data finally viewed has been deleted.

[0106] The working steps of the data conversion unit include:

[0107] Receive the acquired data and determine whether the data satisfies the format processed by the hash algorithm;

[0108] If the data format can be processed by the hash algorithm, the data will not be converted;

[0109] If the data format cannot be processed by the hash algorithm, the data is converted;

[0110] The data after the conversion and the data that do not need to be converted are processed by the hash algorithm;

[0111] Get the hash value corresponding to the data.

[0112] The specific working steps of the login query unit include:

[0113] Enter the user's identity information and perform identity verification;

[0114] If the verification fails, the login failure message will be displayed, and the user will be guided to try to retrieve the password again;

[0115] If the verification is passed, the login is successful.

[0116] Enter the drug information to be queried and send an instruction to query the drug traceability process;

[0117] Receive and display relevant information obtained from drug traceability.

[0118] The specific process of data compression is as follows:

[0119] The Bayesian estimation method is combined with the maximum likelihood estimation to perform compressed sensing reconstruction:

[0120] The observation vector is transformed into y = Φz + n, the variance of the noise is taken as a constant, the observation data is taken as a Gaussian random vector, and the signal model adopts a Bayesian model with feedback. The signal obeys the Laplace prior distribution, where φ represents the Gaussian random measurement matrix. Using the simplest prior distribution, the vector z is assumed to obey an independent distribution with a mean of 0. The hyperparameter of the prior distribution itself is α = [α1, α2, …α N ] T Obey the gamma distribution with hyperparameters a and b, simplify the model, let a=1, 2b=λ, and according to the identity in probability theory, get the posterior probability of z,

[0121] p(zy,λ,σ 2 )=p(yz,σ 2 ) / p(yλ,σ 2 )

[0122] Therefore, the posterior probability distribution follows a Gaussian distribution N(u,∑) with a mean of u and a variance of ∑. Using the augmentation idea, it is converted into the posterior of complete data.

[0123] According to the Bayesian formula,

[0124] p(z,λ,β,αy)=p(zλ,β,α,y)p(λ,β,α,|y)

[0125]

[0126] in express Derivative of τ.

[0127] Removing the terms that are irrelevant to α yields:

[0128]

[0129] Using the maximum likelihood estimation idea to estimate α i Updates available when hour,

[0130]

[0131] Otherwise α i =0, for the convenience of calculating p i and q i , update p i and q i , can be obtained

[0132] Working principle of the present invention:

[0133] The data acquisition unit collects information on drug raw materials, production, transportation and storage. The data is converted into a corresponding format and processed using a hash algorithm to obtain a corresponding hash value. The data is compressed and the compressed data and hash value are stored in the data storage unit. When a user performs a traceability query on drug information, the compressed data in the data storage unit is directly called, the corresponding compressed data is decompressed and sent to the login query unit for the user to view. At the same time, the decompressed data is converted to a hash value, and the two hash values ​​are compared to determine whether the drug data has been modified during the storage process. If the two hash values ​​are inconsistent, a warning message is sent to the login query unit to alert the user.

[0134] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0135] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A cloud server-based chemical storage traceability system. It is characterized in that include: A data acquisition unit, used to collect data on multiple links of drugs; A data compression unit, used for compressing the acquired data; A data transmission unit, used for wirelessly transmitting the compressed data; Cloud service platform, used to receive and send corresponding instructions; A data conversion unit, used to convert data into a format suitable for hash algorithm processing, and process the format-converted data using a hash algorithm to obtain a determined hash value; A data storage unit, used to store compressed data and a hash value after the corresponding data is converted; The data decompression unit decompresses the data retrieved from the data storage unit and transmits the decompressed data to the login query unit; The login query unit is used for user authentication login, sending drug query commands to the cloud service platform, and receiving and viewing the traceability information of the corresponding drugs; A data comparison and verification unit is used to compare the hash value of the initially acquired data with the hash value of the final viewed data to determine whether the hash values ​​are consistent; The alarm prompt unit is used to send a warning message to the login query unit when the hash value verification results are inconsistent.

2. A cloud server-based chemical storage traceability system according to claim 1, Features: The data collection of multiple links of the medicine includes medicine raw material information, medicine production information, medicine packaging information, medicine transportation information, and medicine storage information. The data collection method is to automatically collect the data through sensors.

3. According to claim 1, a cloud server-based chemical storage traceability system, Features: The working steps of the data comparison and verification unit include: Receive the hash value obtained by converting the initially acquired data; Receive the data, decompress it, and convert it into a hash value; Compare the two hash values ​​to determine whether they are consistent; If the two hash values ​​are consistent, it means that the data storage process has not been tampered with; If the hash value is changed, it is judged that the final viewed data has been tampered with; If the hash value is missing, it is determined that the data finally viewed has been deleted.

4. According to claim 1, a cloud server-based chemical storage traceability system, Features: The working steps of the data conversion unit include: Receive the acquired data and determine whether the data satisfies the format processed by the hash algorithm; If the data format can be processed by the hash algorithm, the data will not be converted; If the data format cannot be processed by the hash algorithm, the data is converted; The data after the conversion and the data that do not need to be converted are processed by the hash algorithm; Get the hash value corresponding to the data.

5. A cloud server-based chemical storage traceability system according to claim 1, Features: The specific working steps of the login query unit include: Enter the user's identity information and perform identity verification; If the verification fails, the login failure message will be displayed, and the user will be guided to try to retrieve the password again; If the verification is passed, the login is successful. Enter the drug information to be queried and send an instruction to query the drug traceability process; Receive and display relevant information obtained from drug traceability.

6. A cloud server-based chemical storage traceability system according to claim 1, Features: The data compression process is specifically as follows: The Bayesian estimation method is combined with the maximum likelihood estimation to perform compressed sensing reconstruction: The observation vector is transformed into y = Φz + n, the variance of the noise is taken as a constant, the observation data is taken as a Gaussian random vector, and the signal model adopts a Bayesian model with feedback. The signal obeys the Laplace prior distribution, where φ represents the Gaussian random measurement matrix. Using the simplest prior distribution, the vector z is assumed to obey an independent distribution with a mean of 0. The hyperparameter of the prior distribution itself is α = [α 1 , α 2 , …α N ] T Obey the gamma distribution with hyperparameters a and b, simplify the model, let a=1, 2b=λ, and according to the identity in probability theory, get the posterior probability of z, p(zy,λ,σ 2 )=p(yz,σ 2 ) / p(yλ,σ 2 ) Therefore, the posterior probability distribution follows a Gaussian distribution N(u,∑) with a mean of u and a variance of ∑. Using the augmentation idea, it is converted into the posterior of complete data. According to the Bayesian formula, p(z,λ,β,αy)=p(zλ,β,α,y)p(λ,β,α,y) in express Derivative of τ. Removing the terms that are not related to α yields: Using the maximum likelihood estimation idea to estimate α i Updates available when hour, Otherwise α i =0, for the convenience of calculating p i and q i , update p i and q i , can be obtained