A chemical product storage management method
By encrypting the warehousing information of chemical product work orders and combining semantic analysis to generate encryption keys, the problem of difficulty in ensuring the security of chemical product warehousing information is solved, effective protection of chemical product information is achieved, and the risk of safety accidents is reduced. .
Patent Information
- Application Number
- CN202410065020.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-01-17
AI Technical Summary
The security of chemical product warehousing information is difficult to guarantee, and there is a risk of malicious acquisition, which may lead to safety accidents.
By obtaining the warehousing text information of the chemical product work order, the duration loss parameter, path loss parameter and condition loss parameter are generated, the encryption priority is determined, the encryption key is used to encrypt the warehousing information, and a targeted encryption key is generated based on semantic analysis. key.
Effectively evaluate the time, transportation and warehousing costs of chemical products, determine the priority loss weight of importance, ensure the encryption sequence of chemical product work orders, and protect warehousing information through targeted encryption keys to prevent malicious acquisition and reduce the probability of accidents.
Smart Images

Figure CN117893118B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of information processing, and in particular relates to a chemical product storage management method. Background Art
[0002] Chemical products are toxic, corrosive, explosive, flammable and combustion-supporting. They may cause safety accidents such as explosions, combustion and leakage due to their own changes or changes in the environment. Therefore, fixed warehouses are usually set up to store chemical products, and the storage information of chemical products needs to be completely preserved for easy access by different personnel. The security of chemical storage information will also affect the security of chemical product storage. If the storage information of chemical products is maliciously obtained, it will have an immeasurable impact. Therefore, it is necessary to effectively process the storage information of chemical products to ensure information security. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a chemical product storage management method.
[0004] The technical solution of the present invention is: a chemical product storage management method comprises the following steps:
[0005] S1. Obtain storage text information of several chemical product work orders;
[0006] S2. Generate a time loss parameter, a path loss parameter, and a conditional loss parameter for each chemical product work order according to the storage text information of each chemical product work order, and determine the encryption priority of all chemical product work orders according to the time loss parameter, path loss parameter, and conditional loss parameter of each chemical product work order;
[0007] S3, determining an initial word density for the storage text information of each chemical product work order, determining a plurality of keyword density sets according to the initial word density and the storage text information, generating a first random number and a second random number, and determining an encryption key for the chemical product work order;
[0008] S4. According to the encryption priority of all chemical product work orders, the storage text information of each chemical product work order is encrypted using the encryption key.
[0009] Furthermore, in S1, the storage text information of the chemical product work order includes storage time, transportation time, transportation route and storage conditions.
[0010] Furthermore, S2 includes the following sub-steps:
[0011] S21. The sum of the storage time and the transportation time of each chemical product work order is used as the time loss parameter of each chemical product work order;
[0012] S22, constructing a path correction function, inputting the transportation path of the chemical product work order into the path correction function, and determining the path loss parameter of each chemical product work order;
[0013] S23, constructing a storage condition correction function, inputting the storage conditions of the chemical product work order into the storage condition correction function, and determining the condition loss parameters of each chemical product work order;
[0014] S24. Obtaining a priority loss weight of each chemical product work order according to a time loss parameter, a path loss parameter, and a conditional loss parameter of the chemical product work order;
[0015] S25. The results of sorting the priority weights from large to small are used as the encryption priority of all chemical product work orders.
[0016] The beneficial effect of the above further scheme is: in the present invention, the longer the storage time and the transportation time, the higher the time cost and labor cost of the chemical product work order; the higher the storage conditions (for example, high requirements for the temperature and humidity of the storage, and high requirements for the sealing of the storage environment), the higher the cost of the chemical product work order; the longer the distance of the transportation route or the higher the transportation cost will also lead to an increase in the cost of the chemical product work order; therefore, the present invention uses the above factors as factors affecting the priority loss weight. The higher the priority loss weight, the higher the importance of the chemical product work order, and the more priority the chemical product work order is encrypted.
[0017] Furthermore, in S22, the path correction function F r The expression is:
[0018]
[0019]
[0020] In the formula, S represents the travel distance of the transportation path, m represents the travel cost per unit distance in the travel distance, represents rounding up operation, M represents penalty cost, t represents the duration of non-driving state, L represents the straight-line distance between the transportation starting point and the transportation end point of the chemical product work order, and e represents the exponent.
[0021] Furthermore, in S23, the storage condition correction function F c The expression is:
[0022]
[0023] In the formula, O k represents the storage cost required for the kth storage sub-condition, K represents the number of storage sub-conditions, max(·) represents the maximum value operation, and min(·) represents the minimum value operation.
[0024] Storage conditions include storage humidity, storage temperature, storage brightness, storage sealing, fire ban and other storage sub-conditions. Different storage sub-conditions require different storage costs. For example, the higher the storage sealing, the higher the storage cost.
[0025] Furthermore, in S24, the calculation formula of the priority loss weight σ of the chemical product work order is:
[0026]
[0027] Where T represents the time loss parameter of the chemical product work order, R represents the path loss parameter of the chemical product work order, C represents the conditional loss parameter of the chemical product work order, t1 represents the transportation time, and t2 represents the storage time.
[0028] Furthermore, S3 includes the following sub-steps:
[0029] S31, extracting keywords from the storage text information of the chemical product work order, generating a keyword set, and determining the word density of each keyword in the keyword set;
[0030] S32, randomly selecting a keyword from the keyword set as an initial keyword, and using the word density of the initial keyword in the stored text information as the initial word density;
[0031] S33, judging whether there is a word density in the warehouse text information that is the same as the initial word density, if so, proceeding to S34, otherwise proceeding to S35;
[0032] S34, taking all word densities in the warehouse text information that are greater than the initial word density as the first keyword density set, taking the word density in the warehouse text information that is less than the initial word density as the second keyword density set, taking the word density in the warehouse text information that is the same as the initial word density as the third keyword density set, and proceeding to S36;
[0033] S35, taking all word densities in the stored text information that are greater than the initial word density as a first keyword density set, taking word densities in the stored text information that are less than the initial word density as a second keyword density set, and proceeding to S36;
[0034] S36. Calculate a first random number of the stored text information according to a plurality of keyword density sets;
[0035] S37, calculating a second random number of the stored text information according to the remaining text in the stored text information except the keyword set;
[0036] S38. Generate an encryption key for the chemical product work order according to the first random number and the second random number of the warehouse text information.
[0037] The beneficial effect of the above further scheme is: in the present invention, according to the word density of the keywords in the warehouse text information and the word frequency of the remaining text except the keywords, the first random number and the second random number that can reflect the word distribution of the warehouse text information are determined respectively, and the encryption key determined by the first random number and the second random number is more targeted.
[0038] Furthermore, in S36, the calculation formula of the first random number J1 of the warehouse text information is:
[0039]
[0040] In the formula, ρ1 represents the maximum word density value of several keyword density sets, ρ0 represents the minimum word density value of several keyword density sets, max(·) represents the maximum value operation, min(·) represents the minimum value operation, U1 represents the first keyword density set, U2 represents the second keyword density set, e represents the exponent, mod represents the remainder operation, ρ represents the initial word density, n represents the number of elements in the third keyword density set, and N represents the number of keyword density sets.
[0041] Furthermore, in S37, the calculation formula of the second random number J2 of the warehouse text information is:
[0042]
[0043] In the formula, I represents the number of words in the rest of the text except the keyword set, and d i represents the inverse text frequency index of the i-th word in the rest of the text, f i represents the frequency of the i-th word in the rest of the text, Q represents the number of words in the stored text information, and c represents a constant.
[0044] Furthermore, in S38, the expression of the encryption key A is:
[0045] A=(J1,J2)
[0046] Wherein, J1 represents the first random number of the warehouse text information, and J2 represents the second random number of the warehouse text information.
[0047] The beneficial effects of the present invention are as follows: the present invention discloses a chemical product warehousing management method, which reasonably evaluates the time cost, transportation cost and warehousing cost of each chemical product work order, obtains a priority loss weight that can determine the importance of the chemical product work order, and thereby determines the encryption order of each chemical product work order; at the same time, the present invention performs semantic analysis on the warehousing information text of the chemical product work order, obtains a first random number and a second random number that can represent the semantic information, thereby determining a targeted encryption key, completing the encryption task of the warehousing information of the chemical product work order, and can effectively prevent the warehousing information of the chemical product work order from being maliciously obtained, thereby ensuring the safe storage of chemical products and reducing the probability of accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 The figure is a flow chart of the chemical product storage management method. DETAILED DESCRIPTION
[0049] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0050] like Figure 1 As shown, the present invention provides a chemical product storage management method, comprising the following steps:
[0051] S1. Obtain storage text information of several chemical product work orders;
[0052] S2. Generate a time loss parameter, a path loss parameter, and a conditional loss parameter for each chemical product work order according to the storage text information of each chemical product work order, and determine the encryption priority of all chemical product work orders according to the time loss parameter, path loss parameter, and conditional loss parameter of each chemical product work order;
[0053] S3, determining an initial word density for the storage text information of each chemical product work order, determining a plurality of keyword density sets according to the initial word density and the storage text information, generating a first random number and a second random number, and determining an encryption key for the chemical product work order;
[0054] S4. According to the encryption priority of all chemical product work orders, the storage text information of each chemical product work order is encrypted using the encryption key.
[0055] In the embodiment of the present invention, in S1, the storage text information of the chemical product work order includes storage time, transportation time, transportation route and storage conditions.
[0056] In this embodiment of the present invention, S2 includes the following sub-steps:
[0057] S21. The sum of the storage time and the transportation time of each chemical product work order is used as the time loss parameter of each chemical product work order;
[0058] S22, constructing a path correction function, inputting the transportation path of the chemical product work order into the path correction function, and determining the path loss parameter of each chemical product work order;
[0059] S23, constructing a storage condition correction function, inputting the storage conditions of the chemical product work order into the storage condition correction function, and determining the condition loss parameters of each chemical product work order;
[0060] S24. Obtaining a priority loss weight of each chemical product work order according to a time loss parameter, a path loss parameter, and a conditional loss parameter of the chemical product work order;
[0061] S25. The results of sorting the priority weights from large to small are used as the encryption priority of all chemical product work orders.
[0062] In the present invention, the longer the storage time and the transportation time, the higher the time cost and manpower cost of the chemical product work order; the higher the storage conditions (for example, high requirements for the temperature and humidity of the storage, and high requirements for the sealing of the storage environment), the higher the cost of the chemical product work order; the longer the distance of the transportation route or the higher the transportation cost will also lead to an increase in the cost of the chemical product work order; therefore, the present invention uses the above factors as factors affecting the priority loss weight. The higher the priority loss weight, the higher the importance of the chemical product work order, and the more priority the chemical product work order will be encrypted.
[0063] In the embodiment of the present invention, in S22, the path correction function F r The expression is:
[0064]
[0065]
[0066] In the formula, S represents the travel distance of the transportation path, m represents the travel cost per unit distance in the travel distance, represents rounding up operation, M represents penalty cost, t represents the duration of non-driving state, L represents the straight-line distance between the transportation starting point and the transportation end point of the chemical product work order, and e represents the exponent.
[0067] In the embodiment of the present invention, in S23, the storage condition correction function F c The expression is:
[0068]
[0069] In the formula, O k represents the storage cost required for the kth storage sub-condition, K represents the number of storage sub-conditions, max(·) represents the maximum value operation, and min(·) represents the minimum value operation.
[0070] Storage conditions include storage humidity, storage temperature, storage brightness, storage sealing, fire ban and other storage sub-conditions. Different storage sub-conditions require different storage costs. For example, the higher the storage sealing, the higher the storage cost.
[0071] In the embodiment of the present invention, in S24, the calculation formula of the priority loss weight σ of the chemical product work order is:
[0072]
[0073] Where T represents the time loss parameter of the chemical product work order, R represents the path loss parameter of the chemical product work order, C represents the conditional loss parameter of the chemical product work order, t1 represents the transportation time, and t2 represents the storage time.
[0074] In this embodiment of the present invention, S3 includes the following sub-steps:
[0075] S31, extracting keywords from the storage text information of the chemical product work order, generating a keyword set, and determining the word density of each keyword in the keyword set;
[0076] S32, randomly selecting a keyword from the keyword set as an initial keyword, and using the word density of the initial keyword in the stored text information as the initial word density;
[0077] S33, judging whether there is a word density in the warehouse text information that is the same as the initial word density, if so, proceeding to S34, otherwise proceeding to S35;
[0078] S34, taking all word densities in the warehouse text information that are greater than the initial word density as the first keyword density set, taking the word density in the warehouse text information that is less than the initial word density as the second keyword density set, taking the word density in the warehouse text information that is the same as the initial word density as the third keyword density set, and proceeding to S36;
[0079] S35, taking all word densities in the stored text information that are greater than the initial word density as a first keyword density set, taking word densities in the stored text information that are less than the initial word density as a second keyword density set, and proceeding to S36;
[0080] S36. Calculate a first random number of the stored text information according to a plurality of keyword density sets;
[0081] S37, calculating a second random number of the stored text information according to the remaining text in the stored text information except the keyword set;
[0082] S38. Generate an encryption key for the chemical product work order according to the first random number and the second random number of the warehouse text information.
[0083] In the present invention, according to the word density of keywords in the stored text information and the word frequency of the remaining text except the keywords, the first random number and the second random number that can reflect the word distribution of the stored text information are determined respectively, and the encryption key determined by the first random number and the second random number is more targeted.
[0084] In the embodiment of the present invention, in S36, the calculation formula of the first random number J1 of the warehouse text information is:
[0085]
[0086] In the formula, ρ1 represents the maximum word density value of several keyword density sets, ρ0 represents the minimum word density value of several keyword density sets, max(·) represents the maximum value operation, min(·) represents the minimum value operation, U1 represents the first keyword density set, U2 represents the second keyword density set, e represents the exponent, mod represents the remainder operation, ρ represents the initial word density, n represents the number of elements in the third keyword density set, and N represents the number of keyword density sets.
[0087] In the embodiment of the present invention, in S37, the calculation formula of the second random number J2 of the warehouse text information is:
[0088]
[0089] In the formula, I represents the number of words in the rest of the text except the keyword set, and d i represents the inverse text frequency index of the i-th word in the rest of the text, f i represents the frequency of the i-th word in the rest of the text, Q represents the number of words in the stored text information, and c represents a constant.
[0090] In the embodiment of the present invention, in S38, the expression of the encryption key A is:
[0091] A=(J1,J2)
[0092] Wherein, J1 represents the first random number of the warehouse text information, and J2 represents the second random number of the warehouse text information.
[0093] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A chemical product storage management method, characterized in that: The following steps are involved: S1. Obtain storage text information of several chemical product work orders; S2. Generate a time loss parameter, a path loss parameter, and a conditional loss parameter for each chemical product work order according to the storage text information of each chemical product work order, and determine the encryption priority of all chemical product work orders according to the time loss parameter, path loss parameter, and conditional loss parameter of each chemical product work order; S3, determining an initial word density for the storage text information of each chemical product work order, determining a plurality of keyword density sets according to the initial word density and the storage text information, generating a first random number and a second random number, and determining an encryption key for the chemical product work order; S4. According to the encryption priority of all chemical product work orders, the storage text information of each chemical product work order is encrypted using the encryption key; The S2 comprises the following sub-steps: S21. The sum of the storage time and the transportation time of each chemical product work order is used as the time loss parameter of each chemical product work order; S22, constructing a path correction function, inputting the transportation path of the chemical product work order into the path correction function, and determining the path loss parameter of each chemical product work order; S23, constructing a storage condition correction function, inputting the storage conditions of the chemical product work order into the storage condition correction function, and determining the condition loss parameters of each chemical product work order; S24. Obtaining a priority loss weight of each chemical product work order according to a time loss parameter, a path loss parameter, and a conditional loss parameter of the chemical product work order; S25. The result of sorting the priority weights from large to small is used as the encryption priority of all chemical product work orders; The S3 comprises the following sub-steps: S31, extracting keywords from the storage text information of the chemical product work order, generating a keyword set, and determining the word density of each keyword in the keyword set; S32, randomly selecting a keyword from the keyword set as an initial keyword, and using the word density of the initial keyword in the stored text information as the initial word density; S33, judging whether there is a word density in the warehouse text information that is the same as the initial word density, if so, proceeding to S34, otherwise proceeding to S35; S34, taking all word densities in the warehouse text information that are greater than the initial word density as the first keyword density set, taking the word density in the warehouse text information that is less than the initial word density as the second keyword density set, taking the word density in the warehouse text information that is the same as the initial word density as the third keyword density set, and proceeding to S36; S35, taking all word densities in the stored text information that are greater than the initial word density as a first keyword density set, taking word densities in the stored text information that are less than the initial word density as a second keyword density set, and proceeding to S36; S36. Calculate a first random number of the stored text information according to a plurality of keyword density sets; S37, calculating a second random number of the stored text information according to the remaining text in the stored text information except the keyword set; S38. Generate an encryption key for the chemical product work order according to the first random number and the second random number of the warehouse text information.
2. The chemical product storage management method according to claim 1, characterized in that: In S1, the storage text information of the chemical product work order includes storage time, transportation time, transportation route and storage conditions.
3. The chemical product storage management method according to claim 1, characterized in that: In S22, the path correction function F r The expression is: In the formula, S represents the travel distance of the transport route, m represents the travel cost per unit distance in the travel distance, Indicates rounding up operation. M represents the penalty cost, t Indicates the duration of non-driving state. L Indicates the straight-line distance between the transportation start point and the transportation end point of the chemical product work order. e Represents an exponent.
4. The chemical product storage management method according to claim 1, characterized in that: In S23, the storage condition correction function F c The expression is: In the formula, O k Indicates k The storage cost required for each storage sub-condition, K Indicates the number of storage sub-conditions. max (·) indicates the maximum value operation, min (·) indicates minimum operation.
5. The chemical product storage management method according to claim 1, characterized in that: In S24, the priority loss weight of the chemical product work order σ The calculation formula is: In the formula, T Indicates the time loss parameter of the chemical product work order, R represents the path loss parameter of the chemical product work order, C Represents the conditional loss parameter of the chemical product work order, t 1 means the transportation time. t 2 indicates the storage time.
6. The chemical product storage management method according to claim 1, characterized in that: In S36, the first random number of the stored text information J The calculation formula for 1 is: In the formula, ρ 1 represents the maximum word density value of several keyword density sets, ρ 0 represents the minimum word density value of several keyword density sets. max (·) indicates the maximum value operation, min (·) indicates minimum operation, U 1 represents the first keyword density set, U 2 represents the second keyword density set, e represents the index, mod represents the remainder operation, ρ represents the initial word density, n represents the number of elements in the third keyword density set, N Indicates the number of keyword density sets.
7. The chemical product storage management method according to claim 1, characterized in that: In the S37, the second random number of the stored text information J The calculation formula for 2 is: In the formula, I Indicates the number of words in the rest of the text except the keyword set. d i Indicates the rest of the text i The inverse text frequency index of the words, f i Indicates the rest of the text i The frequency of words, Q Indicates the number of words in the stored text information. c Represents a constant.
8. The chemical product storage management method according to claim 1, characterized in that: In S38, the encryption key A The expression is: In the formula, J 1 represents the first random number of the stored text information, J 2 represents the second random number of the stored text information.
