A tracing method for information management of hazardous waste

By adaptively adjusting and compressing the initial FP tree and screening candidate adjustment trees, the problem of accidentally deleting nodes with a small frequency in the existing technology is solved, and the traceability effect of hazardous waste information management is improved.

CN118410213BActive Publication Date: 2024-08-23越华环保集团股份有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410882293.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-23
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

When the existing technology compresses the FP tree of hazardous waste information, nodes with low frequency that represent special processing processes may be mistakenly deleted, resulting in poor traceability effects.

Method used

By constructing an initial FP tree and performing adaptive adjustment compression based on the target data sequence, candidate adjustment trees are screened to avoid accidentally deleting nodes with less frequency and ensure traceability accuracy.

Benefits of technology

It improves the traceability effect of hazardous waste information management, ensures accurate traceability of the production and processing process, and avoids the problem of accidentally deleting nodes with small frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410213B
    Figure CN118410213B
Patent Text Reader

Abstract

The present invention relates to the technical field of data compression, and in particular to a traceability method for hazardous waste information management, the method comprising: obtaining a hazardous waste information set; constructing an initial FP tree corresponding to the hazardous waste information set according to the hazardous waste information set; sorting all target data according to the number of times the target data appears in the hazardous waste information set; adaptively adjusting and compressing the initial FP tree, and tracing the source according to the target FP tree, each target data corresponds to an adaptive adjustment compression process in turn, and each adaptive adjustment compression process comprises: according to each target data, performing an adjustment compression on the tree to be adjusted; screening out a reference adjustment tree from the tree to be adjusted and the candidate adjustment tree; determining the reference adjustment tree in the last adaptive adjustment compression process as the target FP tree. The present invention realizes the compression of the initial FP tree and improves the traceability effect of hazardous waste information management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data compression, and in particular to a source tracing method for information management of hazardous wastes. Background Art

[0002] With the development of science and technology, FP trees can often be used for tracing back, and each path on the FP tree can often represent a tracing process. For example, the production and treatment process of hazardous waste can be traced back through the FP tree corresponding to the hazardous waste information. At this time, each path on the FP tree can often represent the traceability of a hazardous waste production and treatment process. Since there may be a lot of redundant information in the FP tree corresponding to the hazardous waste information, it is often necessary to compress the FP tree corresponding to the hazardous waste information for the convenience of storage. At present, when compressing the FP tree, the method commonly used is: remove the nodes with less frequent appearance in the FP tree to achieve compression of the FP tree.

[0003] However, when removing nodes with low frequency in the FP tree corresponding to the hazardous waste information to achieve compression of the FP tree corresponding to the hazardous waste information, the following technical problems often occur:

[0004] Nodes with a low frequency of appearance in the FP tree corresponding to hazardous waste information may represent relatively rare special treatment processes for hazardous waste, which often have great analytical value. If they are deleted directly, it may cause errors in the subsequent tracing of the production and treatment process of hazardous waste, resulting in poor traceability effect of hazardous waste information management. Summary of the invention

[0005] In order to solve the technical problem of poor traceability effect of information management of hazardous wastes, the present invention proposes a traceability method for information management of hazardous wastes.

[0006] In a first aspect, the present invention provides a method for tracing the source of hazardous waste information management, the method comprising:

[0007] Acquire a hazardous waste information set, wherein the hazardous waste information in the hazardous waste information set represents a production and treatment process of the hazardous waste;

[0008] According to the target data included in all the hazardous waste information in the hazardous waste information set, an initial FP tree corresponding to the hazardous waste information set is constructed, wherein the target data is the type of hazardous waste or the link in the hazardous waste production and treatment process;

[0009] Sorting all target data according to the number of times the target data appears in the hazardous waste information set to obtain a target data sequence;

[0010] According to the target data sequence, the initial FP tree is adaptively adjusted and compressed to obtain a target FP tree, and the target FP tree is traced back, wherein each target data in the target data sequence corresponds to an adaptive adjustment compression process in turn, and each adaptive adjustment compression process includes: according to each target data, the tree to be adjusted is adjusted and compressed once to obtain a candidate adjustment tree; according to the node distribution change between the tree to be adjusted and the candidate adjustment tree, a reference adjustment tree is screened out from the tree to be adjusted and the candidate adjustment tree; the tree to be adjusted is the initial FP tree or the reference adjustment tree in the previous adaptive adjustment compression process; the reference adjustment tree in the last adaptive adjustment compression process is determined as the target FP tree.

[0011] In combination with the first aspect, in a possible implementation, the step of performing an adjustment compression on the tree to be adjusted according to each target data to obtain a candidate adjustment tree includes:

[0012] Determine any target data in the target data sequence as the marked data, and select the path to which the node representing the marked data belongs from the tree to be adjusted as the reference path;

[0013] Determine each target data located before the marked data in the target data sequence as reference data;

[0014] If the node representing the reference data is the intersection of all reference paths, and the layer number corresponding to the node representing the reference data is less than or equal to the sequence number corresponding to the marked data, then the node representing the reference data is determined as a candidate node;

[0015] The nodes representing the marked data on all reference paths are removed, and the nodes representing the marked data are inserted after the last candidate node on the reference path, so that the node representing the marked data is the first node after the last candidate node on the reference path, and a candidate adjustment tree is obtained.

[0016] In combination with the first aspect, in a possible implementation, the step of selecting a reference adjustment tree from the tree to be adjusted and the candidate adjustment trees according to a change in node distribution between the tree to be adjusted and the candidate adjustment trees includes:

[0017] Determine, according to the node distributions on the tree to be adjusted and the candidate adjustment trees, an information change impact factor between the tree to be adjusted and the candidate adjustment trees, wherein the information change impact factor represents a node distribution change between the tree to be adjusted and the candidate adjustment trees;

[0018] If the information change impact factor falls within the preset adjustment range, the candidate adjustment tree is determined as the reference adjustment tree;

[0019] If the information change impact factor does not fall within the preset adjustment range, the tree to be adjusted will be determined as the reference adjustment tree.

[0020] In combination with the first aspect, in a possible implementation, determining the information change impact factor between the tree to be adjusted and the candidate adjustment tree according to the node distribution on the tree to be adjusted and the candidate adjustment tree includes:

[0021] Determine the target data based on which the candidate adjustment tree is obtained as standard data;

[0022] Determine the important influencing indicators corresponding to the tree to be adjusted according to the node position distribution representing the standard data on the tree to be adjusted, and determine the important influencing indicators corresponding to the candidate adjustment tree according to the node position distribution representing the standard data on the candidate adjustment tree;

[0023] Determine a first change factor between the tree to be adjusted and the candidate adjustment tree according to the important influencing index corresponding to the tree to be adjusted and the important influencing index corresponding to the candidate adjustment tree;

[0024] Determine a second change factor between the tree to be adjusted and the candidate adjustment tree according to the front-to-back distribution of nodes representing standard data on the tree to be adjusted and the candidate adjustment tree, wherein the front-to-back distribution of nodes represents the distribution of parent nodes and child nodes;

[0025] An information change impact factor between the tree to be adjusted and the candidate adjusted tree is determined according to the first change factor and the second change factor, wherein both the first change factor and the second change factor are positively correlated with the information change impact factor.

[0026] In combination with the first aspect above, in a possible implementation, determining the important influencing indicators corresponding to the tree to be adjusted according to the node position distribution representing the standard data on the tree to be adjusted includes:

[0027] Determine the sub-influence index corresponding to each node representing the standard data on the tree to be adjusted according to the number of layers and the number of child nodes corresponding to each node representing the standard data on the tree to be adjusted;

[0028] According to the sub-influence indicators corresponding to all the nodes representing the standard data on the tree to be adjusted, the important influencing indicators corresponding to the tree to be adjusted are determined, wherein the sub-influence indicators are positively correlated with the important influencing indicators.

[0029] In combination with the first aspect above, in a possible implementation, determining the sub-influence index corresponding to each node representing the standard data on the tree to be adjusted according to the number of layers and the number of child nodes corresponding to each node representing the standard data on the tree to be adjusted includes:

[0030] Any node representing standard data on the tree to be adjusted is determined as a reference node, and the ratio of the target number corresponding to the reference node to the corresponding number of layers is determined as the sub-influence indicator corresponding to the reference node, wherein the target number corresponding to the reference node is the sum of the number of child nodes corresponding to the reference node and a preset number.

[0031] In combination with the first aspect, in a possible implementation, determining a first change factor between the tree to be adjusted and the candidate adjustment tree according to the important influence index corresponding to the tree to be adjusted and the important influence index corresponding to the candidate adjustment tree includes:

[0032] Determine the important influencing index corresponding to the tree to be adjusted as the first influencing index, and determine the important influencing index corresponding to the candidate adjustment tree as the second influencing index;

[0033] The absolute value of the difference between the first impact index and the second impact index is determined as a first change factor between the tree to be adjusted and the candidate adjustment tree.

[0034] In combination with the first aspect above, in a possible implementation, determining the important impact index corresponding to the tree to be adjusted according to the sub-influence indexes corresponding to all nodes representing standard data on the tree to be adjusted includes:

[0035] The cumulative multiplication value of the sub-influence indicators corresponding to all nodes representing standard data on the tree to be adjusted is determined as the important influence indicator corresponding to the tree to be adjusted.

[0036] In combination with the first aspect, in a possible implementation, determining the second change factor between the tree to be adjusted and the candidate adjustment tree according to the front and back distribution of nodes representing standard data on the tree to be adjusted and the candidate adjustment tree includes:

[0037] Determine the union of the target data represented by the parent nodes of all the nodes representing the standard data on the tree to be adjusted as the target parent data set;

[0038] The target child data set is determined as the union of the target data represented by the child nodes of all the nodes representing the standard data on the tree to be adjusted;

[0039] If the target data represented by the parent node of the node representing the standard data on the candidate adjustment tree belongs to the target parent data set, the parent node of the node representing the standard data on the candidate adjustment tree is determined as the target parent node;

[0040] If the target data represented by the child node of the node representing the standard data on the candidate adjustment tree belongs to the target child data set, the child node of the node representing the standard data on the candidate adjustment tree is determined as the target child node;

[0041] A second change factor between the tree to be adjusted and the candidate adjustment tree is determined according to the target parent node and the target child node on the candidate adjustment tree.

[0042] In combination with the first aspect, in a possible implementation, determining the second change factor between the tree to be adjusted and the candidate adjustment tree according to the target parent node and the target child node on the candidate adjustment tree includes:

[0043] Determine the proportion of the target parent node on the candidate adjustment tree to the parent nodes of the node representing the standard data on the candidate adjustment tree as a first proportion;

[0044] Determine the proportion of the target child nodes on the candidate adjustment tree to the child nodes of the node representing the standard data on the candidate adjustment tree as a second proportion;

[0045] The sum of the first proportion and the second proportion is determined as a second change factor between the tree to be adjusted and the candidate adjustment tree.

[0046] The present invention has the following beneficial effects:

[0047] The present invention provides a source tracing method for hazardous waste information management, which realizes the compression of the initial FP tree, solves the technical problem of poor source tracing effect of hazardous waste information management, and improves the source tracing effect of hazardous waste information management. Based on the target data sequence, the present invention adaptively adjusts and compresses the initial FP tree, realizes the compression of the initial FP tree, and considers the node distribution change between the tree to be adjusted and the candidate adjustment tree during the adaptive adjustment and compression process, thereby avoiding the accidental deletion of nodes with a low frequency of occurrence that represent special processing processes in the FP tree to a certain extent, and further improves the accuracy of subsequent source tracing of the production and processing process of hazardous waste, thereby improving the source tracing effect of hazardous waste information management.

[0048] In a second aspect, the present invention provides a traceability system for information management of hazardous wastes, the system comprising:

[0049] An information acquisition module, used to acquire a hazardous waste information set, wherein the hazardous waste information in the hazardous waste information set represents a production and treatment process of the hazardous waste;

[0050] An FP tree construction module, used to construct an initial FP tree corresponding to the hazardous waste information set according to target data included in all hazardous waste information in the hazardous waste information set, wherein the target data is the type of hazardous waste or the link in the hazardous waste production and treatment process;

[0051] A data sorting module, used to sort all target data according to the number of times the target data appears in the hazardous waste information set, to obtain a target data sequence;

[0052] The adjustment and compression module is used to adaptively adjust and compress the initial FP tree according to the target data sequence to obtain a target FP tree, and trace the source according to the target FP tree, wherein each target data in the target data sequence corresponds to an adaptive adjustment and compression process in turn, and each adaptive adjustment and compression process includes: according to each target data, adjusting and compressing the tree to be adjusted once to obtain a candidate adjustment tree; according to the change of node distribution between the tree to be adjusted and the candidate adjustment tree, screening out a reference adjustment tree from the tree to be adjusted and the candidate adjustment tree; the tree to be adjusted is the initial FP tree or the reference adjustment tree in the previous adaptive adjustment and compression process; and the reference adjustment tree in the last adaptive adjustment and compression process is determined as the target FP tree.

[0053] In a third aspect, a server is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the device executes the method in the first aspect or any possible implementation of the first aspect.

[0054] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0055] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] Figure 1 A flow chart of a method for tracing the source of hazardous waste information management according to the present invention;

[0058] Figure 2 It is a schematic diagram of the initial FP tree of the present invention;

[0059] Figure 3 It is a schematic diagram of the process of adaptively adjusting the compression process of the present invention;

[0060] Figure 4 It is a schematic diagram of a process of adjusting and compressing the initial FP tree according to the present invention;

[0061] Figure 5 A schematic diagram of the reference adjustment tree screening process of the present invention;

[0062] Figure 6 A schematic diagram of a flow chart for determining an information change impact factor of the present invention;

[0063] Figure 7 A schematic diagram of a process for determining important influencing indicators of the present invention;

[0064] Figure 8 A schematic diagram of the structure of a traceability system for hazardous waste information management according to the present invention;

[0065] Fig. 9 The figure is a schematic diagram of the structure of a computer device of the present invention. DETAILED DESCRIPTION

[0066] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0067] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0068] refer to Figure 1 , showing the process of some embodiments of a method for tracing the source of hazardous waste information management according to the present invention. The method for tracing the source of hazardous waste information management includes the following steps:

[0069] Step S1, obtaining a hazardous waste information set.

[0070] The hazardous waste information in the above hazardous waste information set may characterize the production and treatment process of hazardous waste. All hazardous waste information in the hazardous waste information set includes the same data type. For example, hazardous waste information may include the type of hazardous waste and the links in the production and treatment process of hazardous waste. For example, some hazardous wastes may need to be transported to multiple locations for treatment during the treatment process. In this case, the links in the production and treatment process of hazardous waste may include: the production site of hazardous waste and multiple treatment sites.

[0071] It should be noted that hazardous waste refers to solid waste with hazardous characteristics such as corrosiveness, toxicity, flammability, reactivity and infectivity. If hazardous waste is not handled properly, it will often cause pollution to the soil, water sources, atmosphere and other environments, further affecting the ecological balance and human health. Information management and traceability of hazardous waste can effectively improve the efficiency of supervision, ensure the rationality and transparency of the process, realize the whole process monitoring and information traceability of hazardous waste from production, collection, transportation to final disposal, ensure that illegal and irregular behaviors can be traced, and help reduce the possibility of hazardous waste harming the environment due to improper handling. Therefore, accurate information traceability of hazardous waste is very necessary.

[0072] As an example, the waste type, production site, and all treatment sites where the hazardous waste has been treated may be recorded to constitute the hazardous waste information corresponding to the hazardous waste.

[0073] Step S2: construct an initial FP tree corresponding to the hazardous waste information set according to the target data included in all hazardous waste information in the hazardous waste information set.

[0074] The target data may be the type of hazardous waste or a link in the process of hazardous waste production and treatment. For example, if the hazardous waste information includes the type of hazardous waste, the production site of hazardous waste and multiple treatment sites, the target link may be the type of hazardous waste, the production site or the treatment site of the hazardous waste. The initial FP tree may be a FP tree (Frequent Pattern Tree, a tree data structure) constructed based on the hazardous waste information set.

[0075] As an example, if the hazardous waste information set includes 5 hazardous waste information, and these 5 hazardous waste information are {E location, B waste type, F location, Q location, D location}, {E location, I waste type, K location, F location, D location}, {A location, B waste type, F location, E location, P location}, {A location, C waste type, G location, F location, E location} and {E location, J waste type, K location, P location}, the first location in the hazardous waste information can represent the production site, and the locations in the hazardous waste information except the first location are the treatment sites for hazardous waste treatment, and each element in the hazardous waste information is a target data; then based on the target data included in the 5 hazardous waste information, the initial FP tree constructed can be as follows: Figure 2 shown.

[0076] It should be noted that, in actual situations, hazardous waste information collection often contains a large amount of hazardous waste information. Figure 2 Taking 5 hazardous waste information as an example is just for the sake of ease of understanding, and does not mean that the hazardous waste information set only contains 5 hazardous waste information.

[0077] Step S3, sorting all target data according to the number of times the target data appears in the hazardous waste information set to obtain a target data sequence.

[0078] Among them, if a hazardous waste information set includes 5 hazardous waste information, and these 5 hazardous waste information are {E location, B waste type, F location, Q location, D location}, {E location, I waste type, K location, F location, D location}, {A location, B waste type, F location, E location, P location}, {A location, C waste type, G location, F location, E location} and {E location, J waste type, K location, P location}, then the number of times location E appears in the hazardous waste information set is 5, and the number of times waste type B appears in the hazardous waste information set is 2. Since the calculation method for the number of times each target data appears in the hazardous waste information set is the same, the number of times other target data appear in the hazardous waste information set will not be repeated one by one.

[0079] As an example, all target data may be sorted in descending order according to the number of times the target data appears in the hazardous waste information set to obtain a target data sequence.

[0080] It should be noted that if multiple target data appear the same number of times in the hazardous waste information set, these target data can be randomly sorted.

[0081] Step S4, adaptively adjust and compress the initial FP tree according to the target data sequence to obtain the target FP tree, and perform source tracing according to the target FP tree.

[0082] Wherein, each target data in the above target data sequence may correspond to an adaptive adjustment compression process in turn.

[0083] As an example, the flow of each adaptive compression process can be as follows: Figure 3 As shown, the following steps may be specifically included:

[0084] Step 301: According to each target data, the tree to be adjusted is adjusted and compressed once to obtain a candidate adjustment tree.

[0085] The tree to be adjusted may be the initial FP tree or the reference adjustment tree in the last adaptive adjustment compression process. The tree to be adjusted when performing the first adjustment compression may be the initial FP tree. The tree to be adjusted when performing the adjustment compression after the first adjustment compression may be the reference adjustment tree in the last adaptive adjustment compression process.

[0086] It should be noted that, according to the first target data, the initial FP tree can be adjusted and compressed once to obtain the first candidate adjustment tree, and the first reference adjustment tree can be screened out from the initial FP tree and the first candidate adjustment tree to complete the first adaptive adjustment compression process; according to the second target data, the reference adjustment tree in the previous adaptive adjustment compression process, which is the first reference adjustment tree at this time, is adjusted and compressed once to obtain the second candidate adjustment tree, and the second reference adjustment tree is screened out from the first reference adjustment tree and the second candidate adjustment tree to complete the second adaptive adjustment compression process; according to the third target data, the reference adjustment tree in the previous adaptive adjustment compression process, which is the second reference adjustment tree at this time, is adjusted and compressed once to obtain the third candidate adjustment tree, and the third reference adjustment tree is screened out from the second reference adjustment tree and the third candidate adjustment tree to complete the third adaptive adjustment compression process; and so on, all adaptive adjustment compression processes are completed according to all target data.

[0087] For example, according to each target data, performing an adjustment compression on the tree to be adjusted, and obtaining a candidate adjustment tree may include the following steps:

[0088] In the first step, any target data in the target data sequence is determined as the marked data, and the path to which the node representing the marked data belongs is selected from the tree to be adjusted as the reference path.

[0089] For example, Figure 2 As shown, there are two paths to which the node representing waste type B belongs, namely EBFQD and ABFEP. Figure 2 The node containing B in the illustrated tree may be a node characterizing the B waste type.

[0090] In the second step, each target data in the target data sequence that is located before the marked data is determined as reference data.

[0091] In the third step, if the node representing the reference data is the intersection of all reference paths, and the layer number corresponding to the node representing the reference data is less than or equal to the sequence number corresponding to the above-mentioned marked data, the node representing the reference data is determined as a candidate node.

[0092] The method for obtaining the layer number corresponding to the node may be: taking the root node as the first layer, and setting the layer number corresponding to the root node to 1, and then increasing the layer numbers corresponding to the nodes in the following layers by 1. Figure 2 As shown, the node containing null, that is, the root node, corresponds to the layer number 1; the node containing E:3 corresponds to the layer number 2. The sequence number corresponding to the target data in the target data sequence can start from 1 and increase by 1. For example, the sequence number corresponding to the first target data in the target data sequence can be 1; the sequence number corresponding to the second target data in the target data sequence can be 2.

[0093] It should be noted that the candidate nodes are often nodes that have been adjusted in sequence before the adaptive adjustment and compression process. The root node is often the first candidate node.

[0094] Optionally, the method for obtaining candidate nodes can also be: from other adaptive adjustment compression processes before the current adaptive adjustment compression process, the reference adjustment tree obtained by screening out is the adaptive adjustment compression process of the tree after adjustment compression, and the nodes representing the target data based on these screened adaptive adjustment compression processes are determined as candidate nodes, and the root node is determined as the candidate node.

[0095] It should be noted that, in the first adaptive adjustment compression process, there can be one candidate node on the initial FP tree, which can be the root node. If the reference adjustment tree in the first adaptive adjustment compression process is the candidate adjustment tree, then in the second adaptive adjustment compression process, there can be two candidate nodes on the reference adjustment tree in the first adaptive adjustment compression process, which can be: the root node and the node representing the first target data. If the reference adjustment tree in the first adaptive adjustment compression process is the initial FP tree, then in the second adaptive adjustment compression process, there can be one candidate node on the reference adjustment tree in the first adaptive adjustment compression process, which is the root node. By analogy, the candidate nodes in other adaptive adjustment compression processes are no longer given one by one.

[0096] The fourth step is to remove all nodes representing the above-mentioned marked data on the reference path, and insert the node representing the above-mentioned marked data after the last candidate node on the reference path, so that the node representing the above-mentioned marked data is the first node after the last candidate node on the reference path, and obtain a candidate adjustment tree.

[0097] For example, if the initial FP tree is Figure 2 As shown, the first target data is the E location, and the candidate node is the root node. At this time, according to the E location, the initial FP tree is adjusted and compressed once, and the candidate adjustment tree can be obtained as follows Figure 4 shown.

[0098] It should be noted that Figure 2 After adjusting and compressing the initial FP tree shown in Figure 4 The candidate adjustment tree shown is Figure 2 The initial FP tree shown has 2 fewer nodes, which achieves compression of the initial FP tree and reduces data redundancy.

[0099] Step 302: Filter out a reference adjustment tree from the tree to be adjusted and the candidate adjustment trees according to the change in node distribution between the tree to be adjusted and the candidate adjustment trees.

[0100] For example, the process of filtering the reference adjustment tree can be as follows Figure 5 As shown, the following steps may be specifically included:

[0101] Step 501: Determine the information change influence factor between the tree to be adjusted and the candidate adjustment trees according to the node distribution on the tree to be adjusted and the candidate adjustment trees.

[0102] The above-mentioned information change influencing factor can characterize the change in node distribution between the tree to be adjusted and the candidate adjustment tree.

[0103] For example, the process of determining the information change influencing factor between the tree to be adjusted and the candidate adjustment tree can be as follows: Figure 6 As shown, the following steps may be specifically included:

[0104] Step 601, determining the target data based on which the candidate adjustment tree is obtained as standard data.

[0105] Among them, the target data used when obtaining the candidate adjustment tree in the first adaptive adjustment compression process can be the first target data; the target data used when obtaining the candidate adjustment tree in the second adaptive adjustment compression process can be the second target data; the target data used when obtaining the candidate adjustment tree in the third adaptive adjustment compression process can be the third target data; and so on, no more examples are given.

[0106] Step 602, determining important influencing indicators corresponding to the tree to be adjusted according to the node position distribution representing the standard data on the tree to be adjusted, and determining important influencing indicators corresponding to the candidate adjustment tree according to the node position distribution representing the standard data on the candidate adjustment tree.

[0107] It should be noted that there is usually only one node on the candidate adjustment tree that represents the standard data.

[0108] For example, the process of determining the important influencing indicators corresponding to the candidate adjustment tree can be as follows: Figure 7 As shown, the following steps may be specifically included:

[0109] Step 701 : determining a sub-influence index corresponding to each node representing standard data on the tree to be adjusted according to the number of layers and the number of child nodes corresponding to each node representing standard data on the tree to be adjusted.

[0110] For example, any node representing standard data on the tree to be adjusted can be determined as a reference node, and the ratio of the target number corresponding to the reference node to the corresponding number of layers can be determined as the sub-influence indicator corresponding to the reference node.

[0111] The target number corresponding to the reference node is the sum of the number of child nodes corresponding to the reference node and the preset number. The preset number is mainly used to prevent the child influence index from being 0, and the preset number can be 1.

[0112] Step 702: determine the important influencing index corresponding to the tree to be adjusted according to the sub-influencing indexes corresponding to all the nodes representing the standard data on the tree to be adjusted.

[0113] Among them, the sub-influence indicators are positively correlated with the important impact indicators.

[0114] For example, the cumulative multiplication value of the sub-influence indicators corresponding to all nodes representing standard data on the tree to be adjusted can be determined as the important influence indicator corresponding to the tree to be adjusted, and the corresponding formula can be:

[0115] ;in, is the important influencing index corresponding to the tree to be adjusted. n is the number of nodes representing standard data on the tree to be adjusted. i is the sequence number of the node representing standard data on the tree to be adjusted. It is the number of child nodes corresponding to the i-th node representing the standard data on the tree to be adjusted. is a preset quantity, such as, Can be 1. Indicates the target number corresponding to the i-th node representing the standard data on the tree to be adjusted. It is the number of layers corresponding to the i-th node representing the standard data on the tree to be adjusted. It is the sub-influence indicator corresponding to the i-th node representing the standard data on the tree to be adjusted.

[0116] It should be noted that for a node in an FP tree, the shallower its depth, that is, the closer it is to the root node, the higher its ranking in the header table and the higher its frequency of occurrence; the more branches it has, the more it is in the center of connecting multiple nodes, indicating that the node itself is more important. The smaller it is, the closer the i-th node representing the standard data on the tree to be adjusted is to the root node. The larger the value is, the more likely it is that the i-th node representing the standard data on the tree to be adjusted is located at the center of multiple nodes. The larger it is, the more important the node representing the standard data on the tree to be adjusted is.

[0117] Similarly, the important influencing indicators corresponding to the candidate adjustment trees can be obtained.

[0118] Step 603: Determine a first change factor between the tree to be adjusted and the candidate adjustment tree according to the important influence index corresponding to the tree to be adjusted and the important influence index corresponding to the candidate adjustment tree.

[0119] For example, determining the first change factor between the tree to be adjusted and the candidate adjustment tree may include the following steps:

[0120] In the first step, the important influencing index corresponding to the tree to be adjusted is determined as the first influencing index, and the important influencing index corresponding to the candidate adjustment tree is determined as the second influencing index.

[0121] In the second step, the absolute value of the difference between the first influencing index and the second influencing index is determined as a first variation factor between the tree to be adjusted and the candidate adjustment tree.

[0122] The formula for determining the first change factor between the tree to be adjusted and the candidate adjustment tree may be:

[0123] ; Wherein, a is the first change factor between the tree to be adjusted and the candidate adjustment tree. It is the absolute value function. It is the important influencing indicator corresponding to the tree to be adjusted, that is, the first influencing indicator. It is the important influencing indicator corresponding to the candidate adjustment tree, that is, the second influencing indicator.

[0124] It should be noted that when a is larger, it often indicates that the importance of the nodes representing the standard data between the tree to be adjusted and the candidate adjustment tree is more similar, which often indicates that the importance of the tree to be adjusted before and after the adjustment and compression does not change much, which often indicates that the adjustment and compression can be performed more easily.

[0125] Step 604: Determine a second variation factor between the tree to be adjusted and the candidate adjustment tree according to the front and back distribution of nodes representing standard data on the tree to be adjusted and the candidate adjustment tree.

[0126] Among them, the front and back distribution of nodes can represent the distribution of parent nodes and child nodes.

[0127] For example, determining the second change factor between the tree to be adjusted and the candidate adjustment tree may include the following steps:

[0128] In the first step, the union of the target data represented by the parent nodes of all the nodes representing the standard data on the tree to be adjusted is determined as the target parent data set.

[0129] Among them, the parent node is also called the father node.

[0130] like Figure 2 As shown, if the standard data is location E, then Figure 2 The union of the target data represented by the parent nodes of all the nodes representing the standard data on the tree shown may include: F locations, which means that the target parent data set obtained at this time may include: F locations.

[0131] It should be noted that if Figure 2 The root node on the tree shown is also the parent node of the node representing the E location, but the root node does not represent target data.

[0132] In the second step, the union of the target data represented by the child nodes of all the nodes representing the standard data on the tree to be adjusted is determined as the target child data set.

[0133] like Figure 2 As shown, if the standard data is location E, then Figure 2 The union of the target data represented by the child nodes of all the nodes representing the standard data on the tree shown may include: P location, I location and J location.

[0134] In the third step, if the target data represented by the parent node of the node representing the standard data on the candidate adjustment tree belongs to the target parent data set, the parent node of the node representing the standard data on the candidate adjustment tree is determined as the target parent node.

[0135] In the fourth step, if the target data represented by the child node of the node representing the standard data on the candidate adjustment tree belongs to the target child data set, the child node of the node representing the standard data on the candidate adjustment tree is determined as the target child node.

[0136] The fifth step, determining the second change factor between the tree to be adjusted and the candidate adjustment tree according to the target parent node and the target child node on the candidate adjustment tree, may include the following sub-steps:

[0137] In the first sub-step, a proportion of the target parent node on the candidate adjustment tree to the parent nodes of the node representing the standard data on the candidate adjustment tree is determined as a first proportion.

[0138] In the second sub-step, the proportion of the target child nodes on the candidate adjustment tree among the child nodes of the node representing the standard data on the candidate adjustment tree is determined as a second proportion.

[0139] In the third sub-step, the sum of the first proportion and the second proportion is determined as a second change factor between the tree to be adjusted and the candidate adjustment tree.

[0140] The formula corresponding to the second change factor between the tree to be adjusted and the candidate adjustment tree can be:

[0141] ; Wherein, b is the second change factor between the tree to be adjusted and the candidate adjustment tree. is the number of target parent nodes on the candidate adjustment tree. is the total number of parent nodes of the node representing the standard data on the candidate adjustment tree. It is the first proportion. is the number of target child nodes in the candidate adjustment tree. is the total number of child nodes of the node representing the standard data on the candidate adjustment tree. It is the second largest proportion.

[0142] It should be noted that when dealing with hazardous waste, some steps often have a strict order of precedence. For example, some steps must be executed before a certain step. Therefore, in the process of adjusting and compressing the tree to be adjusted, it is often necessary to change the node distribution before and after the node as little as possible. The larger it is, the more parent nodes have not changed in distribution. When b is larger, it often means that there are relatively more child nodes whose distribution has not changed. When b is larger, it often means that the parent node distribution of the node representing the standard data and its child node distribution are more likely to have not changed significantly, which often means that the tree to be adjusted needs to be compressed.

[0143] Step 605: Determine the information change impact factor between the tree to be adjusted and the candidate adjustment tree according to the first change factor and the second change factor.

[0144] Among them, the above-mentioned first change factor and the above-mentioned second change factor may both be positively correlated with the above-mentioned information change influencing factor.

[0145] For example, the formula for determining the information change impact factor between the tree to be adjusted and the candidate adjustment tree may be:

[0146] ; Wherein, h is the information change influencing factor between the tree to be adjusted and the candidate adjustment tree. is an activation function whose value range is [0, 1]. a is the first change factor between the tree to be adjusted and the candidate tree to be adjusted. b is the second change factor between the tree to be adjusted and the candidate tree to be adjusted. Approaching 0, Approaching 0.5.

[0147] It should be noted that when a is larger, it often means that the tree to be adjusted needs to be adjusted and compressed more. When b is larger, it often means that the tree to be adjusted needs to be adjusted and compressed more. Therefore, when h is larger, it often means that the tree to be adjusted needs to be adjusted and compressed more.

[0148] Step 502: If the information change impact factor belongs to the preset adjustment range, the candidate adjustment tree is determined as the reference adjustment tree.

[0149] The preset adjustment range may be a preset information change impact range that can be adjusted and compressed. For example, the preset adjustment range may be [0.5, 0.65].

[0150] Step 503: If the information change impact factor does not belong to the preset adjustment range, the tree to be adjusted is determined as a reference adjustment tree.

[0151] Step 303: determine the reference adjustment tree in the last adaptive adjustment compression process as the target FP tree.

[0152] As another example, tracing back based on the target FP tree may include: recording the order of adjustments to the tree during the adaptive adjustment compression process; based on the recorded adjustment order and the target FP tree, the initial FP tree may be restored; and each path in the initial FP tree may be used as a traceability situation of a hazardous waste treatment process.

[0153] Optionally, tracing the source according to the target FP tree may also include: taking each path in the target FP tree as the tracing situation of a hazardous waste treatment process.

[0154] refer to Figure 8 Based on the same inventive concept as the above method embodiment, the present invention provides a traceability system for information management of hazardous wastes, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the above computer program is executed by the processor, the steps of implementing a traceability method for information management of hazardous wastes may specifically include:

[0155] The information acquisition module 801 is used to acquire a hazardous waste information set, wherein the hazardous waste information in the hazardous waste information set represents the production and treatment process of the hazardous waste;

[0156] The FP tree construction module 802 is used to construct an initial FP tree corresponding to the hazardous waste information set according to the target data included in all hazardous waste information in the hazardous waste information set, wherein the target data is the type of hazardous waste or the link in the hazardous waste production and treatment process;

[0157] The data sorting module 803 is used to sort all target data according to the number of times the target data appears in the above hazardous waste information set to obtain a target data sequence;

[0158] The adjustment and compression module 804 is used to adaptively adjust and compress the above-mentioned initial FP tree according to the above-mentioned target data sequence to obtain a target FP tree, and trace the source according to the above-mentioned target FP tree, wherein each target data in the above-mentioned target data sequence corresponds to an adaptive adjustment and compression process in turn, and each adaptive adjustment and compression process includes: according to each target data, adjusting and compressing the tree to be adjusted once to obtain a candidate adjustment tree; according to the change of node distribution between the tree to be adjusted and the candidate adjustment tree, screening out a reference adjustment tree from the tree to be adjusted and the candidate adjustment tree; the tree to be adjusted is the above-mentioned initial FP tree or the reference adjustment tree in the previous adaptive adjustment and compression process; the reference adjustment tree in the last adaptive adjustment and compression process is determined as the target FP tree.

[0159] Fig. 9 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Fig. 9 As shown, the computer device 900 includes: a memory 901, a processor 902, and a computer program 903 stored in the memory 901 and running on the processor 902, wherein when the processor 902 executes the computer program 903, the computer device can execute any of the traceability methods for hazardous waste information management introduced above.

[0160] Based on the same inventive concept as the above method embodiment, the present invention provides a server, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the device executes any of the above-mentioned traceability methods for information management of hazardous waste.

[0161] Based on the same inventive concept as the above-mentioned method embodiment, the present invention provides a computer program product, which includes: computer program code, when the computer program code runs on a computer, enables the computer to execute any one of the above-mentioned traceability methods for hazardous waste information management.

[0162] Based on the same inventive concept as the above-mentioned method embodiment, the present invention provides a computer-readable storage medium, which stores a computer program code. When the computer program code runs on a computer, the computer executes any one of the above-mentioned traceability methods for information management of hazardous waste.

[0163] In summary, the present invention adaptively adjusts and compresses the initial FP tree based on the target data sequence, thereby realizing the compression of the initial FP tree, and taking into account the node distribution changes between the tree to be adjusted and the candidate adjustment tree during the adaptive adjustment and compression process, thereby avoiding, to a certain extent, the accidental deletion of nodes with a low frequency of occurrence that represent special treatment processes in the FP tree, thereby improving the accuracy of subsequent tracing of the production and treatment process of hazardous wastes, thereby improving the traceability effect of the information management of hazardous wastes.

[0164] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for tracing the source of hazardous waste information management, characterized in that: The following steps are involved: Acquire a hazardous waste information set, wherein the hazardous waste information in the hazardous waste information set represents a production and treatment process of the hazardous waste; According to the target data included in all the hazardous waste information in the hazardous waste information set, an initial FP tree corresponding to the hazardous waste information set is constructed, wherein the target data is the type of hazardous waste or the link in the hazardous waste production and treatment process; Sorting all target data according to the number of times the target data appears in the hazardous waste information set to obtain a target data sequence; According to the target data sequence, the initial FP tree is adaptively adjusted and compressed to obtain a target FP tree, and the target FP tree is traced back, wherein each target data in the target data sequence corresponds to an adaptive adjustment compression process in turn, and each adaptive adjustment compression process includes: according to each target data, the tree to be adjusted is adjusted and compressed once to obtain a candidate adjustment tree; according to the node distribution change between the tree to be adjusted and the candidate adjustment tree, a reference adjustment tree is screened out from the tree to be adjusted and the candidate adjustment tree; the tree to be adjusted is the initial FP tree or the reference adjustment tree in the previous adaptive adjustment compression process; the reference adjustment tree in the last adaptive adjustment compression process is determined as the target FP tree.

2. A method for tracing the source of hazardous waste information management according to claim 1, characterized in that: According to each target data, the tree to be adjusted is adjusted and compressed once to obtain a candidate adjustment tree, including: Determine any target data in the target data sequence as the marked data, and select the path to which the node representing the marked data belongs from the tree to be adjusted as the reference path; Determine each target data located before the marked data in the target data sequence as reference data; If the node representing the reference data is the intersection of all reference paths, and the layer number corresponding to the node representing the reference data is less than or equal to the sequence number corresponding to the marked data, then the node representing the reference data is determined as a candidate node; The nodes representing the marked data on all reference paths are removed, and the nodes representing the marked data are inserted after the last candidate node on the reference path, so that the node representing the marked data is the first node after the last candidate node on the reference path, and a candidate adjustment tree is obtained.

3. The method for tracing the source of hazardous waste information management according to claim 1 is characterized in that: The step of selecting a reference adjustment tree from the tree to be adjusted and the candidate adjustment trees according to the change in node distribution between the tree to be adjusted and the candidate adjustment trees includes: Determine, according to the node distributions on the tree to be adjusted and the candidate adjustment trees, an information change impact factor between the tree to be adjusted and the candidate adjustment trees, wherein the information change impact factor represents a node distribution change between the tree to be adjusted and the candidate adjustment trees; If the information change impact factor falls within the preset adjustment range, the candidate adjustment tree is determined as the reference adjustment tree; If the information change impact factor does not fall within the preset adjustment range, the tree to be adjusted will be determined as the reference adjustment tree.

4. A method for tracing the source of hazardous waste information management according to claim 3, characterized in that: The determining, according to the node distribution on the tree to be adjusted and the candidate adjustment tree, the information change influencing factor between the tree to be adjusted and the candidate adjustment tree comprises: The target data based on which the candidate adjustment tree is obtained is determined as standard data; Determine the important influencing indicators corresponding to the tree to be adjusted according to the node position distribution representing the standard data on the tree to be adjusted, and determine the important influencing indicators corresponding to the candidate adjustment tree according to the node position distribution representing the standard data on the candidate adjustment tree; Determine a first change factor between the tree to be adjusted and the candidate adjustment tree according to the important influencing index corresponding to the tree to be adjusted and the important influencing index corresponding to the candidate adjustment tree; Determine a second change factor between the tree to be adjusted and the candidate adjustment tree according to the front-to-back distribution of nodes representing standard data on the tree to be adjusted and the candidate adjustment tree, wherein the front-to-back distribution of nodes represents the distribution of parent nodes and child nodes; An information change impact factor between the tree to be adjusted and the candidate adjusted tree is determined according to the first change factor and the second change factor, wherein both the first change factor and the second change factor are positively correlated with the information change impact factor.

5. A method for tracing the source of hazardous waste information management according to claim 4, characterized in that: Determining the important influencing indicators corresponding to the tree to be adjusted according to the node position distribution representing the standard data on the tree to be adjusted includes: Determine the sub-influence index corresponding to each node representing the standard data on the tree to be adjusted according to the number of layers and the number of child nodes corresponding to each node representing the standard data on the tree to be adjusted; According to the sub-influence indicators corresponding to all the nodes representing the standard data on the tree to be adjusted, the important influencing indicators corresponding to the tree to be adjusted are determined, wherein the sub-influence indicators are positively correlated with the important influencing indicators.

6. A method for tracing the source of hazardous waste information management according to claim 5, characterized in that: The step of determining the sub-influence index corresponding to each node representing the standard data on the tree to be adjusted according to the number of layers and the number of child nodes corresponding to each node representing the standard data on the tree to be adjusted includes: Any node representing standard data on the tree to be adjusted is determined as a reference node, and the ratio of the target number corresponding to the reference node to the corresponding number of layers is determined as the sub-influence indicator corresponding to the reference node, wherein the target number corresponding to the reference node is the sum of the number of child nodes corresponding to the reference node and a preset number.

7. A method for tracing the source of hazardous waste information management according to claim 4, characterized in that: The determining of a first change factor between the tree to be adjusted and the candidate adjustment tree according to the important influence index corresponding to the tree to be adjusted and the important influence index corresponding to the candidate adjustment tree includes: Determine the important influencing index corresponding to the tree to be adjusted as the first influencing index, and determine the important influencing index corresponding to the candidate adjustment tree as the second influencing index; The absolute value of the difference between the first impact index and the second impact index is determined as a first change factor between the tree to be adjusted and the candidate adjustment tree.

8. The method for tracing the source of hazardous waste information management according to claim 5 is characterized in that: The step of determining the important influencing index corresponding to the tree to be adjusted according to the sub-influencing indexes corresponding to all nodes representing the standard data on the tree to be adjusted includes: The cumulative multiplication value of the sub-influence indicators corresponding to all nodes representing standard data on the tree to be adjusted is determined as the important influence indicator corresponding to the tree to be adjusted.

9. The method for tracing the source of hazardous waste information management according to claim 4 is characterized in that: The determining of the second change factor between the tree to be adjusted and the candidate adjustment tree according to the front and back distribution of nodes representing the standard data on the tree to be adjusted and the candidate adjustment tree includes: Determine the union of the target data represented by the parent nodes of all the nodes representing the standard data on the tree to be adjusted as the target parent data set; The target child data set is determined as the union of the target data represented by the child nodes of all the nodes representing the standard data on the tree to be adjusted; If the target data represented by the parent node of the node representing the standard data on the candidate adjustment tree belongs to the target parent data set, the parent node of the node representing the standard data on the candidate adjustment tree is determined as the target parent node; If the target data represented by the child node of the node representing the standard data on the candidate adjustment tree belongs to the target child data set, the child node of the node representing the standard data on the candidate adjustment tree is determined as the target child node; A second change factor between the tree to be adjusted and the candidate adjustment tree is determined according to the target parent node and the target child node on the candidate adjustment tree.

10. A method for tracing the source of hazardous waste information management according to claim 9, characterized in that: The step of determining a second change factor between the tree to be adjusted and the candidate adjustment tree according to the target parent node and the target child node on the candidate adjustment tree includes: Determine the proportion of the target parent node on the candidate adjustment tree to the parent nodes of the node representing the standard data on the candidate adjustment tree as a first proportion; Determine the proportion of the target child nodes on the candidate adjustment tree to the child nodes of the node representing the standard data on the candidate adjustment tree as a second proportion; The sum of the first proportion and the second proportion is determined as a second change factor between the tree to be adjusted and the candidate adjustment tree.