Traditional Chinese Medicine Pieces Production Traceability System Based on Internet of Things
By using the Internet of Things and a hierarchical and encrypted traceability system for the production of traditional Chinese medicine decoction pieces, the problem of incomplete traceability information in the production of traditional Chinese medicine decoction pieces has been solved, achieving accurate disclosure and security protection of information, and improving the efficiency and security of quality risk management.
Patent Information
- Application Number
- CN202411244278.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-09-06
AI Technical Summary
Selective disclosure of traceability information for the production of traditional Chinese medicine decoction pieces leads to incomplete information, making it difficult to accurately pinpoint the root cause of problems and affecting quality risk management.
The system adopts an Internet of Things-based traceability system for the production of traditional Chinese medicine decoction pieces. It obtains traceability information through communication between the server and sensors, performs sensitivity analysis using an information screening module, encrypts the data in a graded manner, and matches permissions based on the visitor's IP address to provide low-sensitivity, medium-sensitivity, and high-sensitivity traceability reports.
It enables accurate disclosure and secure protection of information, ensures corporate trade secrets, meets information needs at different levels, and improves system security and information management efficiency.
Smart Images

Figure CN118761783B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of drug production traceability, and in particular to a Chinese medicine production traceability system based on the Internet of Things. Background Art
[0002] TCM slice production traceability refers to the recording and tracking management of the entire process of TCM slice production from raw materials to finished products through technical means, so that the source and production process of TCM slices can be found at any time, which is convenient for enterprises to accurately recall TCM slices with problems (specifically problems with raw materials or problems in the production process); TCM slices are products directly used for treatment and health care, and their quality and safety are crucial to the health of consumers. Therefore, production traceability is very necessary for TCM slices;
[0003] At present, some companies selectively disclose traceability information during the production traceability of Chinese herbal medicines in order to protect commercial secrets or for other reasons, which affects the comprehensiveness and accuracy of the traceability. Consumers and regulatory agencies are unable to fully understand the production process and source of raw materials of Chinese herbal medicines. Even the production traceability information of Chinese herbal medicines is incomplete. When quality problems arise, it is difficult to accurately locate the root cause of the problem, resulting in the inability of companies to recall problematic products in a timely and accurate manner, thereby increasing the quality risk of Chinese herbal medicines. Summary of the invention
[0004] The main purpose of the present invention is to provide a Chinese herbal medicine production traceability system based on the Internet of Things to overcome the problems mentioned in the above background technology.
[0005] To achieve the above purpose, a Chinese herbal medicine production traceability system based on the Internet of Things is provided, which includes: a server, an information screening module and a production traceability module;
[0006] The server communicates with various sensors on the production line to obtain the product code of the same batch of Chinese herbal medicines and the traceability information of the batch of Chinese herbal medicines, where the traceability information includes raw material information (such as supplier, purchase batch, acceptance record, etc.) and production information (such as temperature and humidity, processing time, etc.); thus, the code of each batch of Chinese herbal medicines and the corresponding traceability information of each batch can be obtained;
[0007] The information screening module divides the traceability information of each batch of Chinese herbal medicine pieces into several entries, and performs sensitivity analysis based on the entries to screen the traceability information to obtain low-sensitivity traceability reports, medium-sensitivity traceability reports and high-sensitivity traceability reports, and then encrypts and compresses the low-sensitivity traceability reports, medium-sensitivity traceability reports and high-sensitivity traceability reports in a hierarchical manner, and sends the obtained compressed packages to the server for storage;
[0008] The production traceability module identifies each visiting IP based on its identity and matches different traceability permissions respectively, and performs hierarchical traceability management based on the traceability permissions of each visiting IP. The specific steps are as follows:
[0009] S1: Identify the visitor's IP. If the visitor's IP is a tourist, obtain the corresponding batch according to the Chinese medicine piece code provided by the visitor's IP, retrieve the compressed package of the low-sensitivity traceability report corresponding to the batch, decompress it to obtain the low-sensitivity traceability report, and display it; otherwise, execute S2;
[0010] S2: When the visiting IP passes the identity authentication, the identity type of the visiting IP and its corresponding access count are obtained (the access count here refers to the access count of the visiting IP in a short period of time before the current login, and the specific short period of time is usually 10 minutes, 15 minutes, or 20 minutes, etc.), and it is recorded as C; each visiting IP is set to correspond to a historical confidence value recorded as U, and it is substituted with the access count C into the setting The confidence index Ug is calculated by the formula, where g1 and g2 are the set proportional coefficients respectively;
[0011] S3: Identify the identity of the visiting IP. If the visiting IP is from the middle level or supervisory position of the enterprise, it will match the security threshold 2. When the confidence index is greater than or equal to the security threshold 2, the risk verification is passed, and the compressed package of the medium-sensitive traceability report is retrieved for decompression and decryption to obtain the medium-sensitive traceability report. The medium-sensitive traceability report is displayed and processed, and the visit record accumulates a risk verification pass record and records the visit duration of this visit. Otherwise, the risk verification fails, and the visit record accumulates a risk verification failure record.
[0012] S4: If the visiting IP is a senior executive of the enterprise or a specific regulatory position, it is matched to security threshold 1; when the confidence index is greater than or equal to security threshold 1, the risk verification is passed, and the compressed package of the high-sensitivity traceability report is retrieved for decompression and decryption to obtain the high-sensitivity traceability report; the high-sensitivity traceability report is displayed and processed, and the visit record accumulates a risk verification pass record and records the visit duration of this visit; otherwise, the risk verification fails, and the visit record accumulates a risk verification failure record; thereby, the accumulated historical visit records of the visiting IP are updated to the server;
[0013] S5: retrieve the historical visit records of the visiting IP, and perform historical confidence analysis to obtain the historical confidence value, thereby obtaining the historical confidence value corresponding to each visiting IP, and update it to S2; the historical visit records include the number of times the risk verification passed and its corresponding visit duration, the number of times the risk verification failed; count the total number of visits in the historical visit records.
[0014] Furthermore, the specific process of historical confidence analysis is:
[0015] Set a standard access duration for each different identity of the visiting IP. When the access duration is longer than the standard access duration, obtain the access time corresponding to the access duration and record it as the risk time. This will give the number of risky accesses in the historical access records of the visiting IP.
[0016] Establish a time axis, input each risk moment into the time axis, calculate the interval between two adjacent risk moments, compare and analyze the interval duration with the set interval range to divide the interval duration into low-frequency risk, medium-frequency risk and high-frequency risk, and count the cumulative number of low-frequency risk, medium-frequency risk and high-frequency risk respectively, and record them as K1, K2, and K3; calculate the average of each interval duration to obtain the risk interval average and record it as K4;
[0017] Substitute K1, K2, K3, and K4 into the set formula The risk frequency value Kh is calculated, where h1, h2, and h3 are the set proportional coefficients, and 0
[0018] Substitute the total number of visits M2, the number of risk verification failures M1, and the risk frequency value Kh into the set formula The historical confidence value is calculated, where q1 and q2 are the set proportional coefficients respectively.
[0019] Furthermore, the specific process of screening and processing traceability information based on sensitivity analysis is as follows:
[0020] It is assumed that there are several keywords, each of which corresponds to a sensitive value;
[0021] Identify the number of keywords in the entry, and compare each keyword with all the set keywords to match the corresponding sensitivity value; obtain the number of keywords in the entry and the sensitivity value corresponding to each keyword; compare the sensitivity value with the set sensitivity range to divide the keywords corresponding to the sensitivity value into highly sensitive words, moderately sensitive words and low sensitive words, and count the cumulative number of highly sensitive words, moderately sensitive words and low sensitive words in the entry, and record them as L1, L2 and L3 respectively; sum up the sensitivity values corresponding to each keyword in the entry to obtain the total sensitivity value recorded as L4; substitute L1, L2, L3, L4 into the set formula Calculate and obtain the word sensitivity value Lb corresponding to the word entry, where b1, b2, and b3 are the set proportional coefficients, and b1>b2>b3>1;
[0022] When the word sensitivity value is greater than the maximum value in the set word sensitivity interval, the entry corresponding to the word sensitivity value is recorded as a highly sensitive entry; when the word sensitivity value is within the set word sensitivity interval, the entry corresponding to the word sensitivity value is recorded as a moderately sensitive entry; when the word sensitivity value is less than the minimum value in the set word sensitivity interval, the entry corresponding to the word sensitivity value is recorded as a lowly sensitive entry;
[0023] All low-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a low-sensitivity traceability report;
[0024] All low-sensitivity terms and medium-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a medium-sensitivity traceability report;
[0025] All low-sensitivity entries, medium-sensitivity entries and low-sensitivity entries in the traceability information of the same batch of Chinese herbal medicines are combined into a high-sensitivity traceability report.
[0026] Furthermore, the specific process of hierarchical encryption and compression is as follows:
[0027] 401: The low-sensitivity traceability report does not need to be encrypted and can be directly compressed to obtain a compressed package of the low-sensitivity traceability report;
[0028] 402: Set each character to correspond to a numerical value, compare the characters in the medium-sensitivity traceability report and the high-sensitivity traceability report with all the set characters to match the corresponding numerical values, and arrange the numerical values in the order of their corresponding characters in the medium-sensitivity traceability report and the high-sensitivity traceability report to obtain a medium-sensitivity numerical sequence and a high-sensitivity numerical sequence;
[0029] 403: de-zeroing and shaping the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence to obtain a medium-sensitivity conversion sequence and a high-sensitivity conversion sequence;
[0030] 404: Group two adjacent values in the medium-sensitive conversion sequence to obtain several arrays, select the first value in the array as the X-axis coordinate and the second value as the Y-axis coordinate, thereby obtaining several two-dimensional coordinates; establish a two-dimensional coordinate axis, and plot each point in the two-dimensional coordinate axis; use a two-dimensional convex hull algorithm to find the minimum closed convex polygon about the point cloud in the two-dimensional space, that is, the two-dimensional convex hull, and mark each point in the point cloud inside or on the surface of the two-dimensional convex hull; thereby outputting the two-dimensional polygon after the medium-sensitive report is encrypted, and compressing it to obtain a compressed package of the medium-sensitive traceability report;
[0031] 405: Group two adjacent values in the high-sensitivity conversion sequence to obtain several arrays, select the first value in the array as the X-axis coordinate, and the second value as the Y-axis coordinate; and use the sequence number of the array in the medium-sensitivity conversion sequence as the Z-axis coordinate; thereby, obtain several three-dimensional coordinates; establish a three-dimensional coordinate axis, and plot each point in the three-dimensional coordinate axis to obtain a point cloud; use a convex hull algorithm to find the minimum closed convex polyhedron of the point cloud in three-dimensional space, which is the three-dimensional convex hull, and mark each point in the point cloud inside or on the surface of the three-dimensional convex hull; thereby, the three-dimensional polyhedron after the high-sensitivity report encryption process can be output, and it is compressed to obtain a compressed package of the high-sensitivity traceability report.
[0032] Furthermore, the specific process of encryption transformation of de-zeroing and shaping is as follows:
[0033] Identify the position of zero in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence, randomly select a numerical value from 1 to 9 as a replacement value, and replace zero with the replacement value; count the number of numerical values in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence respectively, if the number of numerical values is not divisible by 3, randomly add a numerical value to the suffix of the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence until the number of numerical values in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence is divisible by 3, thereby obtaining the filled medium-sensitivity numerical sequence and the high-sensitivity numerical sequence;
[0034] The three adjacent values in the filled medium-sensitivity numerical sequence and the high-sensitivity numerical sequence are grouped together to obtain several arrays; the largest value among the first two values in the array is used as the major axis, the smallest value is used as the minor axis, and the third value in the array is used as the height; the volume of the cone is calculated by combining the three elements of the major axis, the minor axis and the height; thus, each array corresponds to a cone; the volume of each cone is calculated respectively, and they are arranged according to the order of the corresponding arrays in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence to obtain the medium-sensitive conversion sequence and the high-sensitivity conversion sequence.
[0035] Beneficial effects of the present invention:
[0036] By conducting sensitivity analysis on the terms in the traceability information of Chinese herbal medicines, the information is divided into three levels: low sensitivity, medium sensitivity and high sensitivity. This hierarchical processing ensures that enterprises can effectively protect core business secrets while meeting different levels of information disclosure requirements;
[0037] Different encryption strategies are provided according to the different sensitivities of information. Low-sensitivity traceability reports do not need to be encrypted and can be directly compressed. Medium-sensitivity and high-sensitivity traceability reports are encrypted by numerical sequence conversion, zeroing, and two-dimensional / three-dimensional convex hull algorithm. Such differentiated processing improves the efficiency of encryption, ensures the security of highly sensitive information, and reduces the processing complexity of low-sensitivity information. In particular, the three-dimensional convex hull processing of highly sensitive traceability reports greatly increases the difficulty of information cracking.
[0038] By identifying the identity of the visiting IP, the corresponding tracing authority is automatically matched according to different identity types, thereby ensuring accurate control of information disclosure; different levels of identity correspond to different tracing authorities. This mechanism can not only meet the necessity of information access, but also effectively protect sensitive information;
[0039] By performing dynamic risk assessment on the access frequency, historical confidence value, etc. of the visiting IP, it is ensured that only verified access requests can obtain the corresponding traceability report. This dynamic verification mechanism improves the security of the system and prevents malicious access and potential information leakage.
[0040] In summary, the present invention can achieve full disclosure of traceability information while protecting the company's own commercial secrets, thereby ensuring the quality and safety of Chinese herbal medicines and enhancing the trust of consumers and regulatory agencies. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0042] Figure 1 It is a schematic diagram of system module connection of the present invention. DETAILED DESCRIPTION
[0043] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0047] See also Figure 1 As shown, the present invention is a Chinese herbal medicine production tracing system based on the Internet of Things, comprising: a server, an information screening module, and a production tracing module;
[0048] The server communicates with various sensors on the production line to obtain the product code of the same batch of Chinese herbal medicines and the traceability information of the batch of Chinese herbal medicines, where the traceability information includes raw material information (such as supplier, purchase batch, acceptance record, etc.) and production information (such as temperature and humidity, processing time, etc.); thus, the code of each batch of Chinese herbal medicines and the corresponding traceability information of each batch can be obtained;
[0049] The information screening module performs sensitivity analysis based on the codes of each batch of Chinese herbal medicine pieces and their corresponding traceability information to screen the traceability information to obtain low-sensitivity traceability reports, medium-sensitivity traceability reports and high-sensitivity traceability reports, and performs hierarchical encryption processing accordingly; specifically:
[0050] Information screening:
[0051] Select the code of a batch of Chinese herbal medicine slices and its corresponding traceability information, and split the traceability information into several entries, such as: supplier name, purchase batch number, acceptance quality inspection report, production date, temperature and humidity records, processing time (the time required for each process step of the raw materials in the production process), processing raw materials (specific raw materials for the production of Chinese herbal medicine slices), processing ratio (the ratio or formula between raw materials in the production process of Chinese herbal medicine slices), production process (extraction method, temperature curve, pressure conditions and other detailed process parameters), temperature and humidity records (monitoring records of environmental conditions during the production process, such as temperature and humidity data of the production workshop), etc.;
[0052] There are several keywords, each of which corresponds to a sensitivity value. It should be noted that keywords are set by technical personnel in this field based on the internal regulations and external compliance requirements of the enterprise. For example, for an enterprise, suppliers, production ratios and production processes are more important, especially for exclusive suppliers, so the sensitivity values corresponding to suppliers, production ratios and production ratios are set higher.
[0053] Identify the number of keywords in the entry, and compare each keyword with all the set keywords to match the corresponding sensitivity value; obtain the number of keywords in the entry and the sensitivity value corresponding to each keyword; compare the sensitivity value with the set sensitivity interval. When the sensitivity value is greater than the maximum value in the set sensitivity interval, it means that the keyword corresponding to the sensitivity value is highly sensitive, and a highly sensitive word is accumulated; when the sensitivity value is in the set sensitivity interval, a moderately sensitive word is accumulated; when the sensitivity value is less than the minimum value in the set sensitivity interval, a lowly sensitive word is accumulated; count the cumulative number of highly sensitive words, moderately sensitive words and lowly sensitive words in the entry, and record them as L1, L2 and L3 respectively; sum the sensitivity values corresponding to each keyword in the entry to obtain the total sensitivity value, and record it as L4; use the set formula The word sensitivity value Lb corresponding to the entry is calculated, where b1, b2, and b3 are respectively the set proportional coefficients, and b1>b2>b3>1; it can be seen from the formula that the more keywords there are in the entry, and the larger the sensitivity value corresponding to the keyword, the greater the sensitivity of the entry, and the larger the word sensitivity value corresponding to the entry; thus, the word sensitivity value of each entry can be obtained;
[0054] Compare and analyze the word sensitivity value of each word with the set word sensitivity interval. When the word sensitivity value is greater than the maximum value in the set word sensitivity interval, it means that the word corresponding to the sensitive word belongs to the highly sensitive content of the enterprise (usually confidential content produced by the company), and the word corresponding to the word sensitivity value is recorded as a highly sensitive word; when the word sensitivity value is in the set word sensitivity interval, the word corresponding to the word sensitivity value is recorded as a medium sensitive word; when the word sensitivity value is less than the minimum value in the set word sensitivity interval, the word corresponding to the word sensitivity value is recorded as a low sensitive word;
[0055] All low-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a low-sensitivity traceability report;
[0056] All low-sensitivity terms and medium-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a medium-sensitivity traceability report;
[0057] All low-sensitivity terms, medium-sensitivity terms and low-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a high-sensitivity traceability report;
[0058] Hierarchical encryption:
[0059] The low-sensitivity traceability report does not need to be encrypted, and can be directly compressed to obtain a compressed package of the low-sensitivity traceability report;
[0060] Set each character to correspond to a numerical value, compare the characters in the medium-sensitivity traceability report and the high-sensitivity traceability report with all the set characters to match the corresponding numerical values, and arrange the numerical values in the order of their corresponding characters in the medium-sensitivity traceability report and the high-sensitivity traceability report to obtain the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence;
[0061] Identify the position of zero in the medium-sensitive numerical sequence and the high-sensitive numerical sequence, randomly select a value from 1-9 as the replacement value, replace zero with the replacement value, thereby completing the zero removal of the medium-sensitive numerical sequence and the high-sensitive numerical sequence, and count the number of values in the medium-sensitive numerical sequence and the high-sensitive numerical sequence respectively. If the number of values cannot be divided by 3, then randomly add a value to the suffix of the medium-sensitive numerical sequence and the high-sensitive numerical sequence (the added value here can be selected from 1-9) until the number of values in the medium-sensitive numerical sequence and the high-sensitive numerical sequence can be divided by 3, thereby obtaining the filled medium-sensitive numerical sequence Sequence and high-sensitivity numerical sequence; group three adjacent values in the filled medium-sensitivity numerical sequence and high-sensitivity numerical sequence, thereby obtaining several arrays; take the largest value of the first two values in the array as the major axis, the smallest value as the minor axis, and the third value in the array as the height; combine the three elements of the major axis, the minor axis and the height to calculate the volume of the cone; thus each array corresponds to a cone; calculate the volume of each cone respectively, and arrange them according to the order of the corresponding array in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence to obtain the medium-sensitivity conversion sequence and the high-sensitivity conversion sequence;
[0062] The two adjacent values in the medium-sensitive conversion sequence are grouped together to obtain several arrays, and the first value in the array is selected as the X-axis coordinate and the second value is selected as the Y-axis coordinate, thereby obtaining several two-dimensional coordinates; a two-dimensional coordinate axis is established, and each point is plotted in the two-dimensional coordinate axis; a two-dimensional convex hull algorithm (such as Graham Scan or QuickHull algorithm) is used to find the minimum closed convex polygon about the point cloud in the two-dimensional space, that is, the two-dimensional convex hull, and each point in the point cloud is marked inside or on the surface of the two-dimensional convex hull; thereby, the two-dimensional polygon after the medium-sensitive report encryption processing can be output, and it is compressed to obtain a compressed package of the medium-sensitive traceability report;
[0063] Two adjacent values in the high-sensitivity conversion sequence are grouped together, thereby obtaining several arrays, selecting the first value in the array as the X-axis coordinate and the second value as the Y-axis coordinate; and taking the sequence number of the array in the medium-sensitivity conversion sequence as the Z-axis coordinate; thereby obtaining several three-dimensional coordinates; establishing a three-dimensional coordinate axis, and plotting each point in the three-dimensional coordinate axis to obtain a point cloud (a point cloud refers to all points in the three-dimensional coordinate axis); using a convex hull algorithm (such as QuickHull or Graham Scan algorithm) to find the minimum closed convex polyhedron of the point cloud in three-dimensional space, which is the three-dimensional convex hull, and marking each point in the point cloud inside or on the surface of the three-dimensional convex hull; thereby outputting the three-dimensional polyhedron after the high-sensitivity report encryption process, and compressing it to obtain a compressed package of the high-sensitivity traceability report;
[0064] Thus, the compressed packages of the low-sensitivity traceability report, the medium-sensitivity traceability report and the high-sensitivity traceability report of each batch of Chinese herbal medicine pieces can be obtained and sent to the server for storage;
[0065] By conducting sensitivity analysis on the terms in the traceability information of Chinese herbal medicines, the information is divided into three levels: low sensitivity, medium sensitivity and high sensitivity. This hierarchical processing ensures that enterprises can effectively protect core business secrets while meeting the information disclosure needs of different levels; at the same time, different encryption strategies are provided according to the different sensitivities of information; low-sensitivity traceability reports do not need to be encrypted and are directly compressed; medium-sensitivity and high-sensitivity traceability reports are subjected to numerical sequence conversion, de-zeroing processing and two-dimensional / three-dimensional convex hull algorithm encryption. Such differentiated processing improves the efficiency of encryption, ensures the security of highly sensitive information, and reduces the processing complexity of low-sensitivity information; especially for the three-dimensional convex hull processing of high-sensitivity traceability reports, it greatly increases the difficulty of information cracking.
[0066] The production traceability module identifies each visiting IP and matches different traceability permissions respectively, and performs hierarchical traceability management based on the traceability permissions of each visiting IP, so that enterprises can accurately control information disclosure and protection strategies, and improve the efficiency and security of information management; specifically:
[0067] Set low-sensitivity traceability report, medium-sensitivity traceability report and high-sensitivity traceability report to correspond to a traceability permission respectively; specifically, low-sensitivity traceability report corresponds to the first-level traceability permission; medium-sensitivity traceability report corresponds to the second-level traceability permission, and low-sensitivity traceability report corresponds to the third-level traceability permission. It should be noted that the third-level traceability permission refers to the basic traceability permission, which is public content;
[0068] Different traceability permissions are set to correspond to different identities. The specific identity types corresponding to different traceability permissions are set by personnel in this field according to actual needs. For example, the identity corresponding to the third-level traceability permission is the tourist identity, the identity corresponding to the second-level traceability permission is the middle-level enterprise and the supervisory and management department (such as the food and drug supervision and management department or the local health regulatory agency, etc.), and the identity corresponding to the third-level traceability permission is the senior management of the enterprise and specific regulatory departments (mainly higher-level regulatory agencies, usually involving highly sensitive areas such as public health and safety);
[0069] The specific steps of traceability authority management are as follows:
[0070] S1: Identify the visitor's IP. If the visitor's IP is a tourist, obtain the corresponding batch according to the Chinese medicine piece code provided by the visitor's IP, retrieve the compressed package of the low-sensitivity traceability report corresponding to the batch, decompress it to obtain the low-sensitivity traceability report, and display it; otherwise, execute S2;
[0071] S2: When the visiting IP passes the identity authentication (password authentication, fingerprint authentication, face authentication, etc.), the identity type of the visiting IP and its corresponding access count are obtained (the access count here refers to the access count of the visiting IP in a short period of time before the current login. The specific short period of time usually refers to 10 minutes, 15 minutes, or 20 minutes. It should be noted that the more frequent the access count of the same visiting IP in a short period of time, the greater the risk of this login), and recorded as C;
[0072] Set each visiting IP address to a historical confidence value and record it as U; use the setting The confidence index Ug is calculated by the formula, where g1 and g2 are the set proportional coefficients respectively. It can be seen from the formula that the greater the number of visits, the more frequent the visits, the greater the access risk, and the smaller the confidence index; the greater the historical confidence value, the greater the confidence index;
[0073] S3: Identify the identity of the visiting IP. If the visiting IP is from the middle level or supervisory position of the enterprise, it will match the security threshold 2. When the confidence index is greater than or equal to the security threshold 2, the risk verification is passed, and the compressed package of the medium-sensitive traceability report is retrieved for decompression and decryption to obtain the medium-sensitive traceability report. The medium-sensitive traceability report is displayed and processed, and the visit record accumulates a risk verification pass record and records the visit duration of this visit. Otherwise, the risk verification fails, and the visit record accumulates a risk verification failure record.
[0074] S4: If the visiting IP is from a senior executive or a specific supervisory position of the enterprise, it will match the security threshold 1 (it should be noted that security threshold 1> security threshold 2> 0); when the confidence index is greater than or equal to security threshold 1, the risk verification is passed, and the compressed package of the high-sensitivity traceability report is retrieved for decompression and decryption to obtain the high-sensitivity traceability report; the high-sensitivity traceability report is displayed, and the visit record accumulates a risk verification pass record, and the visit duration of this visit is recorded; otherwise, the risk verification fails, and the visit record accumulates a risk verification failure record;
[0075] S5: Obtain the historical visit records of the visiting IP, where the historical visit records include the number of times the risk verification is passed and the corresponding visit duration, and the number of times the risk verification is not passed is recorded as M1; the total number of visits of the historical visit records (the total number of visits refers to the sum of the number of times the risk verification is passed and the number of times the risk verification is not passed) is recorded as M2;
[0076] Set a standard access time corresponding to each different identity of each visiting IP, and the specific time is set by technical personnel in the field according to the actual needs of the company; it should be noted that when the traceability authority corresponding to the identity of the visiting IP is lower, the system is frequently entered and the browsing time is longer, the risk of stealing corporate information or attacking by using crawler technology is relatively high; compare and analyze the access time with the standard access time, when the access time is longer than the standard access time, obtain the access time corresponding to the access time (the access time here refers to the access start time of the corresponding access record), and record it as the risk time, thereby obtaining the number of risk visits in the historical access record of the visiting IP (the number of risk visits refers to the number of risk moments);
[0077] Establish a time axis, input each risk moment into the time axis, calculate the interval between two adjacent risk moments, compare and analyze the interval duration with the set interval interval. When the interval duration is greater than the maximum value in the interval interval, a low-frequency risk is accumulated; when the interval duration is in the interval interval, a medium-frequency risk is accumulated; when the interval duration is less than the minimum value in the interval interval, a high-frequency risk is accumulated; count the cumulative number of low-frequency risks, medium-frequency risks, and high-frequency risks respectively, and record them as K1, K2, and K3; calculate the average of each interval duration to obtain the risk interval average and record it as K4. Use the set formula The risk frequency value Kh is calculated, where h1, h2, and h3 are the set proportional coefficients, and 0
[0078] The total number of visits in the future is M2, the number of times the risk verification fails is recorded as M1, and the risk frequency value Kh is calculated by the set formula Calculate to get the historical confidence value, where q1 and q2 are the set proportional coefficients. It can be seen from the formula that when the risk frequency value is larger, the historical confidence value is smaller; when the number of risk verification failures is smaller and the number of risk verification passes is larger, the historical confidence value is larger; update the latest historical confidence value to S2;
[0079] By identifying the identity of the visiting IP, the corresponding traceability authority is automatically matched according to different identity types, thereby ensuring accurate control of information disclosure. Different levels of identity correspond to different traceability authorities. This mechanism can not only meet the necessity of information access, but also effectively protect sensitive information; at the same time, by dynamically assessing the access frequency and historical confidence value of the visiting IP, it ensures that only verified access requests can obtain the corresponding traceability report. This dynamic verification mechanism improves the security of the system and prevents malicious access and potential information leakage.
[0080] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. Traceability system of Chinese herbal medicine production based on Internet of Things, It is characterized in that include: Information screening module and production traceability module; The information screening module divides the traceability information of each batch of Chinese herbal medicine pieces into several entries, and performs sensitivity analysis based on the entries to screen the traceability information to obtain low-sensitivity traceability reports, medium-sensitivity traceability reports and high-sensitivity traceability reports, and then encrypts and compresses the low-sensitivity traceability reports, medium-sensitivity traceability reports and high-sensitivity traceability reports in a hierarchical manner, and sends the obtained compressed packages to the server for storage; The production traceability module identifies each visiting IP based on its identity and matches different traceability permissions respectively, and performs hierarchical traceability management based on the traceability permissions of each visiting IP. The specific steps are as follows: S1: Identify the visitor's IP. If the visitor's IP is a tourist, obtain the corresponding batch according to the Chinese medicine piece code provided by the visitor's IP, retrieve the compressed package of the low-sensitivity traceability report corresponding to the batch, decompress it to obtain the low-sensitivity traceability report, and display it; otherwise, execute S2; S2: When the visiting IP passes the identity authentication, the identity type of the visiting IP and its corresponding number of visits are obtained; each visiting IP is set to correspond to a historical confidence value, and the historical confidence value is normalized with the number of visits and the value is taken, and the confidence index is obtained by numerical analysis; S3: Identify the identity of the visiting IP. If the visiting IP is from the middle level or supervisory position of the enterprise, it matches the security threshold 2. When the confidence index is greater than or equal to the security threshold 2, the risk verification passes, and the compressed package of the medium-sensitive traceability report is retrieved for decompression and decryption to obtain the medium-sensitive traceability report. The Zhongmin traceability report is displayed and processed, and the visit record accumulates a risk verification pass record and records the visit duration of this visit; Otherwise, the risk verification will fail, and the visit record will accumulate a record of risk verification failure; S4: If the visiting IP is from a senior executive or a specific supervisory position of the enterprise, it will match the security threshold 1; when the confidence index is greater than or equal to the security threshold 1, the risk verification is passed, and the compressed package of the high-sensitivity traceability report is retrieved for decompression and decryption to obtain the high-sensitivity traceability report; the high-sensitivity traceability report is displayed, and the visit record accumulates a risk verification pass record, and the visit duration of this visit is recorded; Otherwise, the risk verification will fail, and the visit record will accumulate a record of risk verification failure; S5: Obtain the historical visit records of the visiting IP, and perform historical confidence analysis to obtain the historical confidence value, thereby obtaining the historical confidence value corresponding to each visiting IP, and updating it to S2; the historical visit records include the number of times the risk verification passed and the corresponding visit duration, the number of times the risk verification failed; count the total number of visits in the historical visit records; The specific process of screening and processing traceability information based on sensitivity analysis is as follows: It is assumed that there are several keywords, each of which corresponds to a sensitive value; Identify the number of keywords in the entry, and compare each keyword with all the set keywords to match the corresponding sensitivity value; obtain the number of keywords in the entry and the sensitivity value corresponding to each keyword; Compare the sensitivity value with the set sensitivity interval to classify the keywords corresponding to the sensitivity value into highly sensitive words, moderately sensitive words and low sensitive words, count the cumulative number of highly sensitive words, moderately sensitive words and low sensitive words in the entry respectively, and sum up the sensitivity values corresponding to the keywords in the entry to obtain the total sensitivity value; The cumulative number of highly sensitive words, the cumulative number of moderately sensitive words, the cumulative number of lowly sensitive words, and the total sensitivity value are calculated and analyzed in a formula to obtain the word sensitivity value corresponding to the entry; When the word sensitivity value is greater than the maximum value in the set word sensitivity range, the entry corresponding to the word sensitivity value is recorded as a highly sensitive entry; When the word sensitivity value is within the set word sensitivity range, the entry corresponding to the word sensitivity value is recorded as a medium-sensitive entry; When the word sensitivity value is less than the minimum value in the set word sensitivity range, the entry corresponding to the word sensitivity value is recorded as a low-sensitivity entry; All low-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a low-sensitivity traceability report; All low-sensitivity terms and medium-sensitivity terms in the traceability information of the same batch of Chinese herbal medicine pieces are combined into a medium-sensitivity traceability report; All low-sensitivity entries, medium-sensitivity entries and low-sensitivity entries in the traceability information of the same batch of Chinese herbal medicines are combined into a high-sensitivity traceability report.
2. According to claim 1, the Chinese medicine slice production traceability system based on the Internet of Things, It is characterized in that The specific process of historical confidence analysis is as follows: Set a standard access duration for each different identity of the visiting IP. When the access duration is longer than the standard access duration, obtain the access time corresponding to the access duration and record it as the risk time. This will give the number of risky accesses in the historical access records of the visiting IP. Establish a time axis, input each risk moment into the time axis, calculate the interval between two adjacent risk moments, compare and analyze the interval duration with the set interval range to divide the interval duration into low-frequency risk, medium-frequency risk and high-frequency risk, and count the cumulative number of low-frequency risk, medium-frequency risk and high-frequency risk respectively; The mean of each interval duration is calculated to obtain the mean of risk intervals; The cumulative number of low-frequency risks, the cumulative number of medium-frequency risks, the cumulative number of high-frequency risks, and the mean value of risk intervals are calculated and analyzed in a formula to obtain the risk frequency value; The total number of future visits, the number of times risk verification fails, and the risk frequency value are normalized and their values are taken, and the numerical values are analyzed to obtain the historical confidence value.
3. According to the Internet of Things-based Chinese medicine slice production traceability system of claim 1, It is characterized in that The specific process of hierarchical encryption and compression is as follows: 401: The low-sensitivity traceability report does not need to be encrypted and can be directly compressed to obtain a compressed package of the low-sensitivity traceability report; 402: Set each character to correspond to a numerical value, compare the characters in the medium-sensitivity traceability report and the high-sensitivity traceability report with all the set characters to match the corresponding numerical values, and arrange the numerical values in the order of their corresponding characters in the medium-sensitivity traceability report and the high-sensitivity traceability report to obtain a medium-sensitivity numerical sequence and a high-sensitivity numerical sequence; 403: de-zeroing and shaping the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence to obtain a medium-sensitivity conversion sequence and a high-sensitivity conversion sequence; 404: Group two adjacent values in the medium-sensitive conversion sequence to obtain several arrays, select the first value in the array as the X-axis coordinate and the second value as the Y-axis coordinate, thereby obtaining several two-dimensional coordinates; establish a two-dimensional coordinate axis, and plot each point in the two-dimensional coordinate axis; use a two-dimensional convex hull algorithm to find the minimum closed convex polygon about the point cloud in the two-dimensional space, that is, the two-dimensional convex hull, and mark each point in the point cloud inside or on the surface of the two-dimensional convex hull; thereby outputting the two-dimensional polygon after the medium-sensitive report is encrypted, and compressing it to obtain a compressed package of the medium-sensitive traceability report; 405: Group two adjacent values in the high-sensitivity conversion sequence to obtain several arrays, select the first value in the array as the X-axis coordinate, and the second value as the Y-axis coordinate; and use the sequence number of the array in the medium-sensitivity conversion sequence as the Z-axis coordinate; thereby, obtain several three-dimensional coordinates; establish a three-dimensional coordinate axis, and plot each point in the three-dimensional coordinate axis to obtain a point cloud; use a convex hull algorithm to find the minimum closed convex polyhedron of the point cloud in three-dimensional space, which is the three-dimensional convex hull, and mark each point in the point cloud inside or on the surface of the three-dimensional convex hull; thereby, the three-dimensional polyhedron after the high-sensitivity report encryption process can be output, and it is compressed to obtain a compressed package of the high-sensitivity traceability report.
4. The Chinese herbal medicine production traceability system based on the Internet of Things according to claim 1, It is characterized in that The specific process of encryption transformation of de-zeroing and shaping is as follows: Identify the position of zero in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence, randomly select a numerical value from 1 to 9 as a replacement value, and replace zero with the replacement value; count the number of numerical values in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence respectively, if the number of numerical values is not divisible by 3, randomly add a numerical value to the suffix of the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence until the number of numerical values in the medium-sensitivity numerical sequence and the high-sensitivity numerical sequence is divisible by 3, thereby obtaining the filled medium-sensitivity numerical sequence and the high-sensitivity numerical sequence; The three adjacent values in the filled medium-sensitivity value sequence and the high-sensitivity value sequence are grouped together, thereby obtaining several arrays; the largest value of the first two values in the array is used as the long axis, the smallest value is used as the short axis, and the third value in the array is used as the high axis; The volume of the cone is calculated by combining the three elements of the major axis, the minor axis and the height; thus, each array corresponds to a cone; the volume of each cone is calculated respectively, and it is arranged according to the order of the corresponding array in the medium-sensitive numerical sequence and the high-sensitive numerical sequence to obtain the medium-sensitive conversion sequence and the high-sensitive conversion sequence.
