Material semi-structured data representation and automatic classification method of multi-level classification system
By recursively expanding a multi-level classification system and processing dynamic node graphs, the problems of feature extraction and hierarchical classification of semi-structured JSON data are solved, achieving high-precision characterization and self-consistent classification of material data.
Patent Information
- Application Number
- CN202611103042.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot effectively preserve the original tree-like topology when processing semi-structured JSON data, resulting in inaccurate feature representation, easy interruption of the feature extraction process, and inconsistent logic in hierarchical classification results. They cannot meet the high-precision classification requirements of complex, heterogeneous, and long-tailed data.
A multi-level classification system is adopted, which is transformed into a dynamic node graph through recursive expansion. Combining path encoding and value encoding, a deep reverse recursive aggregation and hierarchical-aware dynamic query strategy are used to generate dynamic query vectors. The topological hierarchical transition matrix is used for forward logical constraints to achieve self-consistent hierarchical classification.
Explicitly preserving the topological structure of JSON data reduces feature confusion and noise interference, improves the accuracy and robustness of characterization of heterogeneous multi-source material data, and achieves high-precision hierarchical classification.
Smart Images

Figure CN123182841A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of materials informatics and computer data processing technology, and in particular to a method and apparatus for semi-structured data characterization and automatic classification of materials using a multi-level classification system. Background Technology
[0002] With the deepening of the Materials Genome Initiative, the widespread adoption of high-throughput first-principles calculations, and the rapid development of automated materials experimental characterization techniques, JSON format, due to its inherent lightweightness, self-interpretability, and high scalability to complex hierarchical structures, has gradually evolved into the core carrier for standardized storage and exchange of multi-source heterogeneous materials data in modern materials informatics, cross-database materials data integration, and high-throughput computing flow management. In many mainstream international high-throughput materials performance databases and typical materials science scenarios consisting of crystal structure metadata and high-dimensional multimodal materials characterization test results, massive amounts of semi-structured JSON data with complex nested structures are generated daily. To achieve intelligent retrieval, adaptive performance filtering, and precise hierarchical classification of materials categories and functional attributes from this vast amount of materials data, utilizing deep learning networks to perform high-precision hierarchical classification of materials JSON data—that is, accurately mapping it to a materials taxonomy labeling system with tree-like kinship relationships—has become one of the most pressing industrial applications and core technology research directions in modern materials big data mining, intelligent materials design, and reverse materials design.
[0003] In the early development of semi-structured materials data processing, typical early solutions relied primarily on a combination of traditional statistical feature engineering and classic shallow machine learning classifiers. These solutions typically involved manually writing customized parsing scripts to extract paths and key-value pairs of specific core fields from material JSON samples as offline features. Normalization was performed on numerical data, and one-hot encoding was constructed for textual data. These flattened, statically concatenated features were then input into support vector machines, random forests, or cascaded multilayer perceptrons for multi-task parallel classification. However, this typical approach is severely inadequate for representing high-dimensional, variable-length, strongly correlated, and highly heterogeneous materials data. It heavily relies on prior human experience and struggles to address the general requirements of real-world materials databases, such as frequent field omissions due to limited testing methods or dynamic structural variations caused by cross-database fusion. Consequently, it has gradually been replaced by automated representation learning solutions based on deep learning.
[0004] Currently, existing technologies for feature extraction and downstream hierarchical classification of semi-structured data such as JSON mainly fall into two categories, both exhibiting insurmountable structural bottlenecks: The first approach is based on pre-trained models using full-text serialization. This approach has significant drawbacks: because the core semantics of JSON data heavily rely on its nested tree-like topology, this one-size-fits-all method obliterates the original hierarchical inclusion and inheritance relationships. During forward computation, it is susceptible to interference from nested brackets or indentation jumps—pure syntactic noise—leading to severe feature collapse. When JSON is deeply nested or variable-length fields are excessively long, the inherent maximum sequence length truncation limit of the pre-trained model results in the crude truncation of many micro-fields and leaf nodes at the end, leading to severe semantic sparsity and loss of key classification features. The second approach is based on traditional statistical feature engineering and independent multi-task classification. This technical approach has obvious drawbacks and shortcomings: scalar and textual data cannot accurately adapt to the fundamental statistical distribution characteristics of numerical textual data, which are completely different from those of strings, resulting in low modality alignment accuracy and high-frequency feature noise; during training backpropagation, the top-level macro classification has an absolute gradient advantage due to abundant samples, and the error gradient of the bottom-level fine-grained long-tail classification is easily swallowed by the top-level gradient, resulting in extremely poor generalization and convergence performance of the model for micro-level and long-tail categories.
[0005] In summary, existing similar technical approaches suffer from serious noise in the representation of multimodal heterogeneous fields due to the lack of an explicit mechanism for preserving the native tree-like topology of semi-structured data. Furthermore, they cannot solidify the hierarchical prior logic in the forward computation during downstream classification, resulting in inaccurate feature representation, easy interruption of the feature extraction link when faced with missing null values, and logical inconsistencies in the hierarchical classification results. These technical pain points fail to meet the needs of automated high-precision hierarchical classification for complex, heterogeneous, and long-tailed semi-structured data. Summary of the Invention
[0006] To address the shortcomings of existing technologies, such as the lack of explicit preservation mechanisms for the native tree-like topology of semi-structured data, severe noise in the representation of multimodal heterogeneous fields, and the inability to solidify hierarchical prior logic in forward computation during downstream classification, leading to inaccurate feature representation, easy interruption of the feature extraction process when encountering missing null values, and logical inconsistencies in hierarchical classification results, this invention provides a method and apparatus for representing and automatically classifying semi-structured material data in a multi-level classification system. The technical solution is as follows: On the one hand, a method for semi-structured data representation and automatic classification of materials in a multi-level classification system is provided. This method is implemented by a device for semi-structured data representation and automatic classification of materials in a multi-level classification system. The method includes: S1. The input nested JSON material data sample is recursively expanded into a dynamic node graph, which maps each level in the JSON to an object node, array node or leaf node, and records metadata for each node. S2. Based on each leaf node, the path token sequence is processed using path encoding. The path semantic vector is extracted by embedding matrix mapping and mean pooling. The modality type of the leaf node content is modeled by value encoding track to generate value feature vectors. The path semantic vector and the value feature vector are fused to generate the initial feature representation of the leaf node. S3. A deep reverse recursive aggregation and hierarchical dynamic query strategy is adopted. Based on the initial feature representation of the leaf node, attention aggregation is performed on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, a dynamic query vector of the current classification level is generated. S4. Using the dynamic query vector as the query term of the attention mechanism, adaptively weighted aggregate the feature representations of all child nodes of the parent node to generate the feature representation of the parent node; recursively upwards layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample. S5. Input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and use the pre-constructed topological level transition matrix to perform forward logical constraints on the prediction probability distribution of adjacent levels to generate self-consistent classification prediction results for each level.
[0007] On the other hand, a device for semi-structured data representation and automatic classification of materials in a multi-level classification system is provided. This device is applied to the semi-structured data representation and automatic classification method of materials in a multi-level classification system. The device includes: The topology graph construction module is used to recursively expand the input nested JSON material data sample into a dynamic node graph, mapping each level in the JSON to an object node, array node, or leaf node, and recording metadata for each node. The dual-channel track-splitting encoding module is used to process the path token sequence based on each leaf node using a path encoding method. It extracts the path semantic vector by embedding matrix mapping and using mean pooling. It uses a value-encoded track method to perform track-splitting modeling of the modality type of the leaf node content and generates a value feature vector. It then fuses the path semantic vector and the value feature vector to generate the initial feature representation of the leaf node. The hierarchical recursive aggregation module is used to employ a deep reverse recursive aggregation and hierarchical dynamic query strategy. Based on the initial feature representation of the leaf node, it performs attention aggregation on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, it generates the dynamic query vector of the current classification level. The bottom-up recursive aggregation module is used to adaptively weight and aggregate the feature representations of all child nodes of the parent node using the dynamic query vector as the query term of the attention mechanism, and generate the feature representation of the parent node; it recursively aggregates layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample. The hierarchical classification module is used to input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and to use the pre-constructed topological level transition matrix to perform forward logical constraints on the prediction probability distribution of adjacent levels, thereby generating self-consistent classification prediction results for each level.
[0008] On the other hand, a material semi-structured data characterization and automatic classification device for a multi-level classification system is provided. The material semi-structured data characterization and automatic classification device for a multi-level classification system includes: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the methods for material semi-structured data characterization and automatic classification of the multi-level classification system described above is implemented.
[0009] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, the at least one instruction being loaded and executed by a processor to implement any one of the methods in the above-described material semi-structured data characterization and automatic classification methods for multi-level classification systems.
[0010] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following: The embodiments of this invention, through recursive expansion and node graph construction, can explicitly preserve the original topological structure of JSON data. Compared with the traditional serialization method that simply flattens material data and treats it as plain text, this invention effectively avoids format interference from syntax tags and redundant symbols, ensuring that the material hierarchy relationships with deep nesting features, such as crystal structure metadata, are not lost during feature extraction, thus laying a structural foundation for achieving high-precision material classification.
[0011] This invention integrates material field path semantics throughout the entire process and employs a dynamic query mechanism that deeply fuses path vectors and hierarchical label sets in non-leaf node aggregation. This design allows the same JSON parent node to generate differentiated dynamic query variables and aggregation weights at different material classification levels, enabling the model to adaptively identify the child nodes that contribute the most features at a specific attribute level. This effectively solves the information degradation problem caused by the large scale and significant semantic differences of labels in material classification systems, significantly enhancing the depth of understanding of the material context topological path.
[0012] This invention employs a dual-channel encoding approach (path and value) and a separate-track modeling technique. This approach allows for completely independent decoupling encoding strategies for coexisting numerical values (such as physical property parameters), Boolean values (such as ferroelectricity), and textual information (such as fabrication process descriptions) within material data. This design effectively reduces feature confusion and noise interference caused by the mixing of multimodal content in materials science, significantly improving the model's accuracy in representing large datasets of heterogeneous, multi-source materials.
[0013] By employing a bottom-up recursive encoding mechanism, this invention can flexibly handle arbitrary nesting depths, variable-length fields, and irregular tree structures. Furthermore, by introducing learnable empty structure placeholder vectors, it solves the problem of feature extraction interruption caused by null values or missing fields in JSON data, thus improving the system's robustness.
[0014] This invention employs a depth-dependent, hierarchically weighted multi-task loss function. By introducing a hierarchical importance weight factor that monotonically increases with tree depth, it explicitly amplifies the gradient penalty weight of the fine-grained classification error in parameter backpropagation. This design not only effectively mitigates the differences in convergence difficulty caused by varying concept granularity across labels at different depths, but also guides the recursive tree coding network to deeply mine and retain local topological paths and features that play a decisive role in micro- and long-tail classification during bottom-up feature aggregation. Ultimately, this achieves a comprehensive improvement in the global prediction accuracy of the entire JSON sample across multi-level label trees. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart of a material semi-structured data characterization and automatic classification method for a multi-level classification system provided in an embodiment of the present invention; Figure 2 This is an overall flowchart of a feature extraction method based on a recursive tree coding network provided by an embodiment of the present invention; Figure 3 This is a schematic diagram of a JSON sample recursive expansion and index construction provided by an embodiment of the present invention; Figure 4 This is a leaf node path / value dual-channel encoding structure diagram provided by an embodiment of the present invention; Figure 5 This is a feature aggregation flowchart for non-leaf nodes provided in an embodiment of the present invention; Figure 6 This is an example diagram of a tag tree structure and topological hierarchy transition matrix provided in an embodiment of the present invention; Figure 7 This is a flowchart of a hierarchical topological self-consistent architecture forward propagation mapping provided by an embodiment of the present invention; Figure 8 This is a block diagram of a material semi-structured data characterization and automatic classification device for a multi-level classification system provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a material semi-structured data characterization and automatic classification device with a multi-level classification system provided in an embodiment of the present invention. Detailed Implementation
[0017] The technical solution of the present invention will now be described with reference to the accompanying drawings.
[0018] In embodiments of the present invention, words such as "exemplarily," "for example," etc., are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present the concept in a concrete manner. Furthermore, in embodiments of the present invention, the meaning expressed by "and / or" can be both, or either one.
[0019] In the embodiments of this invention, the terms "image" and "picture" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction between them, they convey the same meaning. Similarly, the terms "of," "corresponding (relevant)," and "corresponding" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction between them, they convey the same meaning.
[0020] In this embodiment of the invention, sometimes a subscript such as W1 may be written in a non-subscript form such as W1. When the difference is not emphasized, the meaning they express is the same.
[0021] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0022] This invention provides a method for semi-structured data representation and automatic classification of materials in a multi-level classification system. This method can be implemented using a device for semi-structured data representation and automatic classification of materials in a multi-level classification system, which can be a terminal or a server. Figure 1 The flowchart shown is for a material semi-structured data characterization and automatic classification method with a multi-level classification system. The processing flow of this method may include the following steps: S1. The input nested JSON material data sample is recursively expanded into a dynamic node graph, which maps each level in the JSON to an object node, array node, or leaf node, and records metadata for each node.
[0023] Among them, such as Figure 2 The diagram shows the overall flowchart of a feature extraction method based on a recursive tree coding network provided by an embodiment of the present invention. It illustrates the entire process from the original nested JSON input to the final multi-level prediction result, including structure expansion, node encoding, bottom-up aggregation, and downstream prediction. The feature extraction method based on the recursive tree coding network constructs an input data feature representation model. Based on this model, global prediction of the entire JSON sample across a multi-level label tree can be achieved. For example, Figure 3 The diagram shown is a schematic diagram of recursive expansion and index construction of a JSON sample provided by an embodiment of the present invention; it illustrates how to transform a nested JSON sample x into a dynamic node graph composed of three types of nodes: objects, arrays, or leaf nodes, and to establish an index table nodes_by_depth sorted by depth.
[0024] To preserve the original topological structure of the JSON data, this embodiment of the invention first converts nested JSON samples into a dynamic node graph through recursive expansion; each level in the JSON is mapped to three types of nodes, including: objects, arrays, or leaves. Furthermore, this embodiment constructs a depth-sorted index table to provide a physical framework for subsequent bottom-up recursive calculations, ensuring that the computational logic converges in an orderly manner from the deepest level to the root node.
[0025] Optionally, the metadata includes: global identifiers, field paths, depths, and parent-child related indexes.
[0026] S2. Based on each leaf node, the path token sequence is processed by path encoding. The path semantic vector is extracted by embedding matrix mapping and mean pooling. The modality type of the leaf node content is modeled by value encoding track to generate value feature vector. The path semantic vector and the value feature vector are fused to generate the initial feature representation of the leaf node.
[0027] Among them, such as Figure 4 The diagram shown is a leaf node path / value dual-channel encoding structure provided by an embodiment of the present invention; it illustrates the implementation logic of the path encoding track epath and the value encoding track separation strategy eval, and how to generate the initial representation of the leaf node through the LayerNorm layer fusion.
[0028] Optionally, S2 uses a value-encoded track method to perform track-based modeling of the modal types of the leaf node content, including: For leaf node content of numeric or Boolean types, a multilayer perceptron is used to map scalars into continuous vectors; For the leaf node content of text type, mean pooling is used to vectorize the text token sequence.
[0029] In one feasible implementation, this invention employs a dual-channel representation learning approach using both path and value. Specifically, the path token sequence p is mapped via an embedding matrix through a path encoding track, and the contextual meaning of the fields is extracted using mean pooling. The value encoding track implements track-based modeling to address the heterogeneity of leaf node content: for numeric / Boolean values, a multilayer perceptron maps scalars to continuous vectors; for text-type leaf node content, mean pooling is used to vectorize the text token sequence, and finally, layer normalization integrates the interaction between path and value features to generate the initial leaf node representation.
[0030] S3. A deep reverse recursive aggregation and hierarchical dynamic query strategy is adopted. Based on the initial feature representation of the leaf node, attention aggregation is performed on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, a dynamic query vector of the current classification level is generated.
[0031] In this embodiment of the invention, a recursive aggregation and hierarchical-aware dynamic query strategy is employed, following a depth-reverse order (from largest to smallest). For non-leaf nodes, this embodiment abandons traditional static pooling or hierarchically insensitive simple aggregation methods. Instead, it utilizes the path vector of the current parent node and the representation of the l-th level label set for deep fusion, thereby generating hierarchical-specific dynamic query vectors for different classification levels. To address the information degradation problem caused by the large scale and significant semantic differences of labels in a multi-level material labeling system, this embodiment uses the dynamic query vector as the core to perform associative dynamic queries on the label set of the current level. Simultaneously, the dynamic query vector is used as input to the attention allocation matrix, and adaptive weighted aggregation is performed on the feature representations of all its child nodes.
[0032] S4. Using dynamic query vectors as the query terms for the attention mechanism, adaptively weighted aggregate the feature representations of all child nodes of the parent node to generate the feature representation of the parent node; recursively upwards layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample.
[0033] Among them, such as Figure 5The diagram illustrates a feature aggregation flowchart for non-leaf nodes provided by an embodiment of the present invention. Specifically, it includes: first, extracting the node path embedding of the parent node and interactively querying it with the hierarchical label representation of the label tree to jointly generate a dynamic query vector for the current node and classification level. Second, using the dynamic query vector as a query term in a multi-head attention mechanism, it performs attention calculation and weighted aggregation with the child node embedding set as keys or values. Finally, after concatenation and linear transformation, it outputs parent node features that possess both topological and hierarchical awareness characteristics.
[0034] Optionally, S4 uses the dynamic query vector as the query term for the attention mechanism, and adaptively weights and aggregates the feature representations of all child nodes of the parent node to generate the feature representation of the parent node, including: A multi-head attention mechanism is adopted, using dynamic query vectors as the query terms of the attention mechanism and the set of child node feature representations as keys and values. The child node features are weighted and aggregated by calculating attention weights to obtain aggregated features. The aggregated features are then processed by concatenation and linear transformation to output the feature representation of the parent node.
[0035] Specifically, through an attention mechanism, the aggregation weight is jointly determined by the "current JSON path position" and the "current label classification level," enabling the input data feature representation model to assign differentiated attention weights to the same parent node at different classification levels. This allows for the automatic and accurate identification of the child node with the most feature contribution at a specific material property level. Furthermore, it addresses empty structures in material process flow or characterization fields caused by a lack of testing methods.
[0036] Among them, such as Figure 6 The diagram shown is an example of a tag tree structure and topological hierarchy transition matrix provided by an embodiment of the present invention. Taking a tag tree composed of specific categories such as food, fruit, and fast food as an example, it intuitively demonstrates the hard-coded mapping rules of the topological affinity between adjacent levels to the transition matrix.
[0037] In one feasible implementation, to avoid information interruption due to missing fields, null values, or empty child nodes during bottom-up recursive calculations, this embodiment of the invention introduces learnable static placeholder vectors for fault tolerance. When a node cannot obtain valid input, the model uses a placeholder vector to replace the missing representation and participates it in subsequent parent node aggregation. The learnable static placeholder vector can be automatically optimized during model training, thereby preserving the potential semantics of the missing state and improving the model's robustness to incomplete JSON data. Each aggregated feature is deeply compressed and contains the topological relationships and multimodal information of all branches below it. The features extracted at the root node are then used as the global semantic representation of the entire material JSON sample.
[0038] In one feasible implementation, after obtaining the global semantic representation of the entire material JSON sample, it is input into a downstream constructed hierarchical topologically consistent architecture to achieve cross-level logically consistent hierarchical classification. This is done to explicitly and rigidly embed the prior topological logic of the external label tree into the computational graph of the neural network.
[0039] S5. Input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and use the pre-constructed topological level transition matrix to apply forward logical constraints to the prediction probability distribution of adjacent levels, generating self-consistent classification prediction results for each level.
[0040] Optionally, the hierarchical topology self-consistent architecture includes: a hierarchical classification network and a TTC hierarchical consistency maintenance module; The hierarchical classification network consists of multiple hierarchical classification heads, each of which is responsible for predicting the category distribution of the corresponding level. The TTC hierarchical consistency maintenance module constructs a hierarchical transition matrix based on the target label tree, and explicitly encodes the parent-child relationship between adjacent level labels into a computable constraint relationship.
[0041] During the inference process, the TTC hierarchical consistency maintenance module uses the transition matrix to perform path constraint decoding and consistency correction on the classification results of each layer, so that the prediction of the lower-level category must be attached to its legal parent node, thereby avoiding cross-level mismatch or illegal classification paths and improving the structural rationality and interpretability of the hierarchical classification results.
[0042] The TTC hierarchical consistency maintenance module, during the inference phase, performs path constraint decoding and consistency correction on the classification results of each level based on a pre-defined parent-child category transition matrix. Specifically, lower-level categories can only be selected from the set of legal subclasses corresponding to their predicted parent class at the upper level, thereby correcting the logits scores of candidate categories that do not satisfy the hierarchical relationship. This mechanism effectively avoids cross-level mismatches, illegal classification paths, and parent-child category conflicts, improving the structural consistency, accuracy, and interpretability of hierarchical classification results.
[0043] Optionally, the process of constructing the topological hierarchy transition matrix includes: For adjacent levels, a topological level transition matrix is pre-constructed offline, where the size of the transition matrix is... ;in, This represents the total number of categories in the Lth layer; This represents the total number of categories in the (L+1)th layer; The values of any element within the topological hierarchy transition matrix follow the topological affinity rule: If the j-th category in the (L+1)-th layer is a subclass of the i-th category in the L-th layer in the tag tree, then the element value is hardcoded to 1; if there is no direct subclass relationship, then it is uniformly set to 0.
[0044] Among them, such as Figure 7 The diagram shown is a forward propagation mapping flowchart of a hierarchical topological self-consistent architecture provided by an embodiment of the present invention. It illustrates that after the multi-classification head is cascaded and output, matrix multiplication is performed using the topological hierarchical transition matrix, and through weighted filtering and logical constraints, a complete forward computation graph of the self-consistent classification results at each level is finally generated.
[0045] Optionally, the specific implementation process of S5 includes S51-S52: S51. Input the global semantic representation into the hierarchical classification network for forward propagation mapping, and calculate the predicted probability distribution vector of the current JSON sample in the Lth layer; perform matrix multiplication operation on the predicted probability distribution vector of the Lth layer and the corresponding topological level transition matrix to generate the prior attention score vector of the L+1th layer; where each scalar component in the prior attention score vector represents the prior topological reachability probability score projected to each subclass of the current layer based on the classification decision confidence of the previous layer. S52. Map the prior attention score vector of layer L+1 through a fully connected layer to calculate the original inactive prediction feature vector of layer L+1. Perform element-wise multiplication of the original inactive prediction feature vector with the prior topological attention score vector to implement dynamic masking filtering, generate the filtered vector, and perform normalization processing on the filtered vector to generate the final prediction result.
[0046] In one feasible implementation, to enforce the classification decisions at the lower level to conform to the hierarchical boundaries of the upper level and to eliminate the logical inconsistencies caused by traditional soft constraints, this embodiment of the invention performs element-wise multiplication of the original inactive predicted feature vector with the prior topological attention score vector to achieve dynamic masking filtering of the feature space. The filtered vector is then normalized to generate the final predicted output vector. The normalization process uses the Softmax function; under this mechanism, if the prior reachability score of a subclass in its parent prediction approaches 0, it will be forced to zero regardless of how high its original predicted component is, thus directly embedding the topological logic into the forward computation flow of the neural network.
[0047] In one feasible implementation, during the entire architecture training and parameter backpropagation phases, to mitigate the differences in convergence difficulty among labels at different depths and to guide the network to favor lower-level fine-grained structures during feature extraction, this embodiment of the invention constructs a depth-dependent hierarchical weighted multi-task loss function. This loss function introduces a hierarchical importance weight factor that monotonically increases with tree depth by linearly weighting and summing the cross-entropy losses of all levels. By increasing the gradient penalty weight for lower-level fine-grained classification errors in the total loss, the recursive tree encoding network is forced to deeply mine and retain dynamic features crucial for long-tail and micro-classification during bottom-up aggregation, ultimately achieving optimal global self-consistent classification prediction for the entire JSON sample across multi-level label trees.
[0048] The hierarchical weighted multi-task loss function based on deep dependency is expressed by the following formula (1): (1)
[0049] in, This represents the total training loss of the model; D represents the depth of the hierarchical label system, i.e., the number of levels contained in the classification task. This represents the loss weight corresponding to the classification task at level l, which is used to adjust the contribution of different levels of tasks to the total loss. Represents the cross-entropy loss function; This represents the predicted probability distribution of the model's output at layer l; This represents the actual category label corresponding to the l-th layer.
[0050] By setting weight coefficients for different levels, the model can simultaneously optimize the classification results of each level during training and enhance its ability to learn fine-grained categories based on the differences in level depth.
[0051] The embodiments of this invention, through recursive expansion and node graph construction, can explicitly preserve the original topological structure of JSON data. Compared with the traditional serialization method that simply flattens material data and treats it as plain text, this invention effectively avoids format interference from syntax tags and redundant symbols, ensuring that the material hierarchy relationships with deep nesting features, such as crystal structure metadata, are not lost during feature extraction, thus laying a structural foundation for achieving high-precision material classification.
[0052] This invention integrates material field path semantics throughout the entire process and employs a dynamic query mechanism that deeply fuses path vectors and hierarchical label sets in non-leaf node aggregation. This design allows the same JSON parent node to generate differentiated dynamic query variables and aggregation weights at different material classification levels, enabling the model to adaptively identify the child nodes that contribute the most features at a specific attribute level. This effectively solves the information degradation problem caused by the large scale and significant semantic differences of labels in material classification systems, significantly enhancing the depth of understanding of the material context topological path.
[0053] This invention employs a dual-channel encoding approach (path and value) and a separate-track modeling technique. This approach allows for completely independent decoupling encoding strategies for coexisting numerical values (such as physical property parameters), Boolean values (such as ferroelectricity), and textual information (such as fabrication process descriptions) within material data. This design effectively reduces feature confusion and noise interference caused by the mixing of multimodal content in materials science, significantly improving the model's accuracy in representing large datasets of heterogeneous, multi-source materials.
[0054] By employing a bottom-up recursive encoding mechanism, this invention can flexibly handle arbitrary nesting depths, variable-length fields, and irregular tree structures. Furthermore, by introducing learnable empty structure placeholder vectors, it solves the problem of feature extraction interruption caused by null values or missing fields in JSON data, thus improving the system's robustness.
[0055] This invention employs a depth-dependent, hierarchically weighted multi-task loss function. By introducing a hierarchical importance weight factor that monotonically increases with tree depth, it explicitly amplifies the gradient penalty weight of the fine-grained classification error in parameter backpropagation. This design not only effectively mitigates the differences in convergence difficulty caused by varying concept granularity across labels at different depths, but also guides the recursive tree coding network to deeply mine and retain local topological paths and features that play a decisive role in micro- and long-tail classification during bottom-up feature aggregation. Ultimately, this achieves a comprehensive improvement in the global prediction accuracy of the entire JSON sample across multi-level label trees.
[0056] Figure 8 This is a block diagram of a material semi-structured data characterization and automatic classification device for a multi-level classification system provided in an embodiment of the present invention. This device is used for material semi-structured data characterization and automatic classification methods for multi-level classification systems. (Refer to...) Figure 8 The device includes a topology map construction module 810, a dual-channel track-splitting encoding module 820, a hierarchical sensing recursive aggregation module 830, a bottom-up recursive aggregation module 840, and a hierarchical classification module 850. Among them: The topology graph construction module 810 is used to recursively expand the input nested JSON material data sample into a dynamic node graph, mapping each level in the JSON to an object node, array node, or leaf node, and recording metadata for each node. The dual-channel track-splitting encoding module 820 is used to process the path token sequence based on each leaf node using a path encoding method. It extracts the path semantic vector by embedding matrix mapping and using mean pooling. It performs track-splitting modeling on the modal type of the leaf node content using a value encoding track method to generate value feature vectors. It then fuses the path semantic vectors and value feature vectors to generate the initial feature representation of the leaf node. The hierarchical recursive aggregation module 830 is used to employ a deep reverse recursive aggregation and hierarchical dynamic query strategy. Based on the initial feature representation of the leaf node, it performs attention aggregation on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, it generates the dynamic query vector of the current classification level. Bottom-up recursive aggregation module 840 is used to use the dynamic query vector as the query term of the attention mechanism to perform adaptive weighted aggregation on the feature representations of all child nodes of the parent node to generate the feature representation of the parent node; it recursively aggregates layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample. The hierarchical classification module 850 is used to input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and use the pre-constructed topological level transition matrix to perform forward logical constraints on the prediction probability distribution of adjacent levels to generate self-consistent classification prediction results for each level.
[0057] Optionally, the metadata includes: a global identifier, field path, depth, and parent-child association index.
[0058] Optionally, the dual-channel track-splitting encoding module 820 is used for: For leaf node content of numeric or Boolean types, a multilayer perceptron is used to map scalars into continuous vectors; For the leaf node content of text type, mean pooling is used to vectorize the text token sequence.
[0059] Optionally, the process of constructing the topological hierarchy transition matrix includes: For adjacent levels, a topological level transition matrix is pre-constructed offline, where the size of the transition matrix is... ;in, This represents the total number of categories in the Lth layer; This represents the total number of categories in the (L+1)th layer; The values of any element within the topological hierarchy transition matrix follow the topological affinity rule: If the j-th category in the (L+1)-th layer is a subclass of the i-th category in the L-th layer in the tag tree, then the element value is hardcoded to 1; if there is no direct subclass relationship, then it is uniformly set to 0.
[0060] Optionally, the bottom-up recursive aggregation module 840 is used for: A multi-head attention mechanism is adopted, using dynamic query vectors as the query terms of the attention mechanism and the set of child node feature representations as keys and values. The child node features are weighted and aggregated by calculating attention weights to obtain aggregated features. The aggregated features are then processed by concatenation and linear transformation to output the feature representation of the parent node.
[0061] Optionally, the hierarchical topology self-consistent architecture includes: a hierarchical classification network and a TTC hierarchical consistency maintenance module; The hierarchical classification network consists of multiple hierarchical classification heads, each of which is responsible for predicting the category distribution of the corresponding level. The TTC hierarchical consistency maintenance module constructs a hierarchical transition matrix based on the target label tree, and explicitly encodes the parent-child relationship between adjacent level labels into a computable constraint relationship.
[0062] Optionally, the hierarchical classification module 850 is used for: The global semantic representation is input into the hierarchical classification network for forward propagation mapping, and the predicted probability distribution vector of the current JSON sample in the Lth layer is calculated. The predicted probability distribution vector of the Lth layer is multiplied by the corresponding topological level transition matrix to generate the prior attention score vector of the L+1th layer. Each scalar component in the prior attention score vector represents the prior topological reachability probability score projected to each subclass of the current layer based on the classification decision confidence of the previous layer. The prior attention score vector of layer L+1 is mapped through a fully connected layer to calculate the original inactive prediction feature vector of layer L+1. The original inactive prediction feature vector and the prior topological attention score vector are multiplied element-wise to perform dynamic masking filtering, generating a filtered vector. The filtered vector is then normalized to generate the final prediction result.
[0063] The embodiments of this invention, through recursive expansion and node graph construction, can explicitly preserve the original topological structure of JSON data. Compared with the traditional serialization method that simply flattens material data and treats it as plain text, this invention effectively avoids format interference from syntax tags and redundant symbols, ensuring that the material hierarchy relationships with deep nesting features, such as crystal structure metadata, are not lost during feature extraction, thus laying a structural foundation for achieving high-precision material classification.
[0064] This invention integrates material field path semantics throughout the entire process and employs a dynamic query mechanism that deeply fuses path vectors and hierarchical label sets in non-leaf node aggregation. This design allows the same JSON parent node to generate differentiated dynamic query variables and aggregation weights at different material classification levels, enabling the model to adaptively identify the child nodes that contribute the most features at a specific attribute level. This effectively solves the information degradation problem caused by the large scale and significant semantic differences of labels in material classification systems, significantly enhancing the depth of understanding of the material context topological path.
[0065] This invention employs a dual-channel encoding approach (path and value) and a separate-track modeling technique. This approach allows for completely independent decoupling encoding strategies for coexisting numerical values (such as physical property parameters), Boolean values (such as ferroelectricity), and textual information (such as fabrication process descriptions) within material data. This design effectively reduces feature confusion and noise interference caused by the mixing of multimodal content in materials science, significantly improving the model's accuracy in representing large datasets of heterogeneous, multi-source materials.
[0066] By employing a bottom-up recursive encoding mechanism, this invention can flexibly handle arbitrary nesting depths, variable-length fields, and irregular tree structures. Furthermore, by introducing learnable empty structure placeholder vectors, it solves the problem of feature extraction interruption caused by null values or missing fields in JSON data, thus improving the system's robustness.
[0067] This invention employs a depth-dependent, hierarchically weighted multi-task loss function. By introducing a hierarchical importance weight factor that monotonically increases with tree depth, it explicitly amplifies the gradient penalty weight of the fine-grained classification error in parameter backpropagation. This design not only effectively mitigates the differences in convergence difficulty caused by varying concept granularity across labels at different depths, but also guides the recursive tree coding network to deeply mine and retain local topological paths and features that play a decisive role in micro- and long-tail classification during bottom-up feature aggregation. Ultimately, this achieves a comprehensive improvement in the global prediction accuracy of the entire JSON sample across multi-level label trees.
[0068] Figure 9 This is a schematic diagram of the structure of a material semi-structured data characterization and automatic classification device with a multi-level classification system provided in an embodiment of the present invention, as shown below. Figure 9 As shown, the material semi-structured data characterization and automatic classification equipment for a multi-level classification system can include the above-mentioned... Figure 8 The illustrated device is a semi-structured data characterization and automatic classification apparatus for materials with a multi-level classification system. Optionally, the semi-structured data characterization and automatic classification apparatus 910 for materials with a multi-level classification system may include a first processor 2001.
[0069] Optionally, the material semi-structured data characterization and automatic classification device 910 for a multi-level classification system may also include a memory 2002 and a transceiver 2003.
[0070] The first processor 2001, memory 2002, and transceiver 2003 can be connected via a communication bus.
[0071] The following is combined with Figure 9 The following is a detailed introduction to the various components of the 910 material semi-structured data characterization and automatic classification device for a multi-level classification system: The first processor 2001 is the control center of the material semi-structured data characterization and automatic classification device 910 for a multi-level classification system. It can be a single processor or a collective term for multiple processing elements. For example, the first processor 2001 can be one or more central processing units (CPUs), application-specific integrated circuits (ASICs), or one or more integrated circuits configured to implement embodiments of the present invention, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0072] Optionally, the first processor 2001 can execute various functions of the material semi-structured data characterization and automatic classification device 910 of the multi-level classification system by running or executing software programs stored in the memory 2002 and calling data stored in the memory 2002.
[0073] In a specific implementation, as one example, the first processor 2001 may include one or more CPUs, for example... Figure 9 CPU0 and CPU1 are shown in the diagram.
[0074] In a specific implementation, as one example, the material semi-structured data characterization and automatic classification device 910 with a multi-level classification system may also include multiple processors, for example... Figure 9 The first processor 2001 and the second processor 2004 are shown in the diagram. Each of these processors can be a single-core processor or a multi-core processor. Here, a processor can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0075] The memory 2002 is used to store the software program that executes the present invention, and is controlled by the first processor 2001 to execute it. The specific implementation method can be referred to the above method embodiment, and will not be repeated here.
[0076] Optionally, the memory 2002 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory 2002 may be integrated with the first processor 2001 or exist independently, and may be connected to the automatic classification device 910 via an interface circuit of a multi-level classification system for material semi-structured data characterization. Figure 9 (Not shown in the image) is coupled to the first processor 2001, and this embodiment of the invention does not specifically limit this.
[0077] The transceiver 2003 is used to communicate with network devices or with terminal devices.
[0078] Alternatively, transceiver 2003 may include a receiver and a transmitter. Figure 9 (Not shown separately). The receiver is used to implement the receiving function, and the transmitter is used to implement the transmitting function.
[0079] Optionally, the transceiver 2003 can be integrated with the first processor 2001 or exist independently, and can be connected to the interface circuit of the automatic classification device 910 through the material semi-structured data characterization of the multi-level classification system. Figure 9 (Not shown in the image) is coupled to the first processor 2001, and this embodiment of the invention does not specifically limit this.
[0080] It should be noted that, Figure 9The structure of the material semi-structured data representation and automatic classification device 910 for a multi-level classification system shown in the figure does not constitute a limitation on the router. The actual material semi-structured data representation and automatic classification device for a multi-level classification system may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0081] Furthermore, the technical effects of the material semi-structured data representation and automatic classification device 910 for the multi-level classification system can be referred to the technical effects of the material semi-structured data representation and automatic classification method for the multi-level classification system described in the above method embodiments, and will not be repeated here.
[0082] It should be understood that the first processor 2001 in the embodiments of the present invention may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or it may be any conventional processor.
[0083] It should also be understood that the memory in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0084] The above embodiments can be implemented, in whole or in part, by software, hardware (such as circuits), firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.
[0085] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. A and B can be singular or plural. Additionally, the character " / " in this article generally indicates an "or" relationship between the preceding and following related objects, but it can also represent an "and / or" relationship. Please refer to the context for a more accurate understanding.
[0086] In this invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be a single item or multiple items.
[0087] It should be understood that, in various embodiments of the present invention, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0088] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0089] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0090] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0091] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0092] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0093] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0094] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for semi-structured data characterization and automatic classification of materials in a multi-level classification system, characterized in that, The method includes: S1. The input nested JSON material data sample is recursively expanded into a dynamic node graph, which maps each level in the JSON to an object node, array node or leaf node, and records metadata for each node. S2. Based on each leaf node, the path token sequence is processed using path encoding. The path semantic vector is extracted by embedding matrix mapping and mean pooling. The modality type of the leaf node content is modeled by value encoding track to generate value feature vectors. The path semantic vector and the value feature vector are fused to generate the initial feature representation of the leaf node. S3. A deep reverse recursive aggregation and hierarchical dynamic query strategy is adopted. Based on the initial feature representation of the leaf node, attention aggregation is performed on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, a dynamic query vector of the current classification level is generated. S4. Using the dynamic query vector as the query term of the attention mechanism, adaptively weighted aggregate the feature representations of all child nodes of the parent node to generate the feature representation of the parent node; recursively upwards layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample. S5. Input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and use the pre-constructed topological level transition matrix to perform forward logical constraints on the prediction probability distribution of adjacent levels to generate self-consistent classification prediction results for each level.
2. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, The metadata includes: global identifier, field path, depth, and parent-child related indexes.
3. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, The S2 method employs a value-encoded track approach to perform track-based modeling of the modal types of leaf node content, including: For leaf node content of numeric or Boolean types, a multilayer perceptron is used to map scalars into continuous vectors; For the leaf node content of text type, mean pooling is used to vectorize the text token sequence.
4. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, The process of constructing the topological hierarchy transition matrix includes: For adjacent levels, a topological level transition matrix is pre-constructed offline, where the size of the transition matrix is... ;in, This represents the total number of categories in the Lth layer; This represents the total number of categories in the (L+1)th layer; The values of any element within the topological hierarchy transition matrix follow topological affinity rules, including: If the j-th category in the (L+1)-th layer is a subclass of the i-th category in the L-th layer in the tag tree, then the element value is hardcoded to 1; if there is no direct subclass relationship, then it is uniformly set to 0.
5. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, The S4 method uses the dynamic query vector as the query term for the attention mechanism, and adaptively weights and aggregates the feature representations of all child nodes of the parent node to generate the feature representation of the parent node, including: A multi-head attention mechanism is adopted, using dynamic query vectors as the query terms of the attention mechanism and the set of child node feature representations as keys and values. The child node features are weighted and aggregated by calculating attention weights to obtain aggregated features. The aggregated features are then processed by concatenation and linear transformation to output the feature representation of the parent node.
6. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, The hierarchical topology self-consistent architecture includes: a hierarchical classification network and a TTC hierarchical consistency maintenance module; The hierarchical classification network consists of multiple hierarchical classification heads, each of which is responsible for predicting the category distribution of the corresponding level. The TTC hierarchical consistency maintenance module constructs a hierarchical transition matrix based on the target label tree, and explicitly encodes the parent-child relationship between adjacent level labels into a computable constraint relationship.
7. The material semi-structured data characterization and automatic classification method for a multi-level classification system according to claim 1, characterized in that, In step S5, the global semantic representation is input into the constructed hierarchical topological self-consistent architecture. A pre-constructed topological hierarchy transition matrix is used to apply forward logical constraints to the prediction probability distribution of adjacent levels, generating self-consistent classification prediction results for each level, including: S51. Input the global semantic representation into the hierarchical classification network for forward propagation mapping, and calculate the predicted probability distribution vector of the current JSON sample in the Lth layer; perform matrix multiplication operation on the predicted probability distribution vector of the Lth layer and the corresponding topological level transition matrix to generate the prior attention score vector of the L+1th layer; where each scalar component in the prior attention score vector represents the prior topological reachability probability score projected to each subclass of the current layer based on the classification decision confidence of the previous layer. S52. Map the prior attention score vector of layer L+1 through a fully connected layer to calculate the original inactive prediction feature vector of layer L+1. Perform element-wise multiplication of the original inactive prediction feature vector with the prior topological attention score vector to implement dynamic masking filtering, generate the filtered vector, and perform normalization processing on the filtered vector to generate the final prediction result.
8. A material semi-structured data representation and automatic classification device for a multi-level classification system, wherein the material semi-structured data representation and automatic classification device for the multi-level classification system is used to implement the material semi-structured data representation and automatic classification method for the multi-level classification system as described in any one of claims 1-7, characterized in that, The device includes: The topology graph construction module is used to recursively expand the input nested JSON material data sample into a dynamic node graph, mapping each level in the JSON to an object node, array node, or leaf node, and recording metadata for each node. The dual-channel track-splitting encoding module is used to process the path token sequence based on each leaf node using a path encoding method. It extracts the path semantic vector by embedding matrix mapping and using mean pooling. It uses a value-encoded track method to perform track-splitting modeling of the modality type of the leaf node content and generates a value feature vector. It then fuses the path semantic vector and the value feature vector to generate the initial feature representation of the leaf node. The hierarchical recursive aggregation module is used to employ a deep reverse recursive aggregation and hierarchical dynamic query strategy. Based on the initial feature representation of the leaf node, it performs attention aggregation on all child nodes of the parent node. By fusing the path vector of the parent node with the label set representation of the current classification level, it generates the dynamic query vector of the current classification level. The bottom-up recursive aggregation module is used to adaptively weight and aggregate the feature representations of all child nodes of the parent node using the dynamic query vector as the query term of the attention mechanism, and generate the feature representation of the parent node; it recursively aggregates layer by layer until the root node, and outputs the global semantic representation of the entire JSON material data sample. The hierarchical classification module is used to input the global semantic representation into the constructed hierarchical topological self-consistent architecture, and to use the pre-constructed topological level transition matrix to perform forward logical constraints on the prediction probability distribution of adjacent levels, thereby generating self-consistent classification prediction results for each level.
9. A material semi-structured data characterization and automatic classification device with a multi-level classification system, characterized in that, The material semi-structured data characterization and automatic classification equipment for the multi-level classification system includes: processor; A memory storing computer-readable instructions that, when executed by the processor, implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1 to 7.
