A method and apparatus for grading and classifying traffic data

By calling multiple pre-trained language models and generating rule correction logs, and dynamically adjusting model weights, the adaptability and robustness issues in traffic data classification and grading are solved, achieving highly accurate and stable traffic data processing.

CN123179062APending Publication Date: 2026-11-27ZHUHAI DAHENGQIN TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611197925.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies suffer from poor adaptability and lack of robustness in traffic data classification and grading, and rule verification information has not been effectively converted into model weight optimization, resulting in low classification and grading accuracy.

Method used

By receiving traffic data text, calling multiple pre-trained language models for initial prediction, generating rule correction logs, counting the number of correct and incorrect contributions of the models, calculating the weight update amount, dynamically adjusting the model weights, and selecting the target language model for final output.

Benefits of technology

It achieves high compliance accuracy and stability in traffic data classification results, eliminates interference from misjudgment by a single model and output conflicts from multiple models, and ensures the accuracy and stability of the final output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179062A_ABST
    Figure CN123179062A_ABST
Patent Text Reader

Abstract

The application discloses a hierarchical and classified method and device for the traffic data, which outputs multiple initial prediction results for the traffic data text by using multiple pre-training language models; performs consistency verification on the initial prediction results according to a data governance rule mapping relationship, and generates a rule correction log used for representing a verification result of the consistency verification; utilizes the rule correction log to count the correct contribution times and the error contribution times of the pre-training language models, and calculates the weight update amount of the pre-training language models through the correct contribution times and the error contribution times; utilizes the weight update amount to update the dimension perception weight of the pre-training language models, determines a target language model from the multiple pre-training language models; and controls the target language model to output a hierarchical result and a classified result of the traffic data text, thereby forming an objective compliance-driven adaptive regulation and control mechanism, and significantly improving the accuracy, stability and system robustness of the classified and hierarchical results of the traffic data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of classification and grading technology for traffic data, and in particular to a method for classification and grading traffic data, a device for classification and grading traffic data, an electronic device, and a readable storage medium. Background Technology

[0002] In the field of traffic data governance, related technologies typically employ a single pre-trained language model to annotate traffic data text, or fuse the prediction results of multiple models using a linear weighted approach with fixed weights. These methods are poorly suited to short traffic data texts and multi-source heterogeneous features. The static weight allocation ignores the performance differences of different models in processing various semantic dimensions, and when the outputs of multiple models are inconsistent, the overall discrimination result is prone to deviating from the accurate target, exhibiting poor stability and lack of robustness in classification and grading results.

[0003] Furthermore, rule verification in related technologies typically exists only as a post-processing step, using rigid mapping rules to unilaterally intercept and forcibly replace the initial predictions output by the model. In this fragmented processing flow, the corrective information generated during rule verification is often directly discarded. There is a lack of a transmission mechanism to transform verification feedback into a basis for model weight optimization and target model selection. This results in a lack of objective and compliant statistical support for updating model weights and establishing target models, leading to low accuracy in the classification and grading of the final traffic data output. Summary of the Invention

[0004] The present invention provides a method, apparatus, electronic device, and readable storage medium for classifying and grading traffic data to overcome or at least partially solve the above-mentioned problems.

[0005] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide a method for classifying and grading the traffic data, including: The system receives traffic data text, calls multiple pre-trained language models, and outputs multiple initial prediction results for the traffic data text; each of the multiple initial prediction results corresponds one-to-one with one of the multiple pre-trained language models. Determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification; The corrected logs are used to count the number of correct and incorrect contributions of the pre-trained language model, and the weight update amount of the pre-trained language model is calculated based on the number of correct and incorrect contributions. The dimension-aware weights of the pre-trained language model are updated using the weight update amount, and the target language model is determined from the multiple pre-trained language models. The target language model is controlled to output the hierarchical and classification results of the traffic data text.

[0006] Optionally, the step of calling multiple pre-trained language models to output multiple initial prediction results for the traffic data text includes: Multiple pre-trained language models are invoked to perform semantic matching and vector similarity calculation on the traffic data text, thereby obtaining the semantic matching scores of the pre-trained language models for each candidate label of the traffic data text. Determine the dimension-aware weight matrix, which includes data type dimension, data classification dimension, and data security level dimension; Extract the independent weights of each of the pre-trained language models under the data type dimension, the data classification dimension, and the data security level dimension; Using the semantic matching score and the independent weight, the weighted score of each candidate label under the data type dimension, the data classification dimension and the data security level dimension is calculated; Based on the weighted score after normalization, target candidate labels are selected and used as the initial prediction results.

[0007] Optionally, the step of calculating the weight update amount of the pre-trained language model using the number of correct contributions and the number of incorrect contributions includes: The preset misclassification penalty coefficient is invoked, and the misclassification penalty coefficient and the number of errors are multiplied to obtain the weighted penalty component; The difference between the number of correct contributions and the weighted penalty component is determined as the net contribution numerator. The sum of the number of correct contributions and the number of incorrect contributions is determined as the denominator of the total contribution. The quotient of the net contribution numerator and the total contribution denominator is determined as the weight update amount of the pre-trained language model.

[0008] Optionally, the step of updating the dimension-aware weights of the pre-trained language model using the weight update amount to determine the target language model from multiple pre-trained language models includes: Perform an exponential operation with the natural constant as the base on the product of the preset update sensitivity coefficient and the weight update amount to obtain the exponential gain factor; A preset damping factor is retrieved, and the damping factor is multiplied with the independent weights of each pre-trained language model in different dimensions to obtain a weighted baseline component. The exponential update component is obtained by performing a multiplication calculation using the difference between the damping factor and one, the independent weights, and the exponential gain factor. The weighted benchmark component and the index update component are added together to obtain the original update weights; Retrieve the preset weight range constraints that include lower and upper limits, and perform interval truncation restriction processing on the original updated weights to obtain the updated dimension-aware weights; The updated dimension-aware weight matrix is ​​updated using the updated dimension-aware weights to generate the updated dimension-aware weight matrix. Based on the updated dimension-aware weight matrix, the target language model is determined from the multiple pre-trained language models.

[0009] Optionally, the step of updating the dimension-aware weight matrix using the updated dimension-aware weights to generate the updated dimension-aware weight matrix includes: The rule impact factor is determined based on the aforementioned data governance rule mapping relationship; The rule correction ratio is calculated based on the rule correction log. When the rule correction ratio is higher than the preset rule correction ratio threshold, the rule influence factor is incrementally calculated using the preset enhancement step size to obtain the updated rule influence factor. A weighted score is calculated using the semantic matching score and the updated dimension-aware weight, and the updated rule influence factor is added to the weighted score to obtain the enhanced candidate label score. Based on the enhanced candidate label score and the updated dimension-aware weight, the change in dimension-aware weight in a single iteration and the current iteration number are determined. The rule correction ratio, the change in the dimension-aware weight, and the current iteration number are compared with the preset rule correction ratio threshold, the preset weight stability threshold, and the preset maximum iteration number, respectively, to generate an iteration termination judgment result. When the iteration termination judgment result indicates that the rule correction ratio is lower than the preset rule correction ratio threshold, and / or the dimension-aware weight change is lower than the preset weight stability threshold, and / or the current iteration number reaches the preset maximum iteration number, the iteration is terminated and an updated dimension-aware weight matrix is ​​generated.

[0010] Optionally, the step of determining the target language model from the multiple pre-trained language models based on the updated dimension-aware weight matrix includes: The dimension-aware weights of each pre-trained language model under the data type dimension, the data classification dimension, and the data security level dimension are extracted from the updated dimension-aware weight matrix, and the dimension-aware weights of each pre-trained language model are accumulated to obtain the comprehensive weight score of each pre-trained language model. The target language model is determined from the multiple pre-trained language models by comparing the comprehensive weight scores of each pre-trained language model.

[0011] Optionally, the step of controlling the target language model to output the hierarchical and classification results of the traffic data text includes: The traffic data text is input into the target language model, and the target language model is used to calculate the prediction score of the traffic data text for each candidate label under the data type dimension, the data classification dimension, and the data security level dimension. Based on the predicted scores, target candidate labels are selected under each dimension, and the highest normalized score corresponding to the target candidate label is extracted as the confidence index. When the confidence index is determined to be lower than the preset confidence threshold, the target candidate label is adjudicated to obtain the adjudicated label; When the confidence index is determined to be greater than or equal to the confidence threshold, the target candidate label is determined as the adjudication label; Extract the data type dimension and the data classification dimension labels from the adjudication labels to generate the classification results; The classification result is generated by extracting the tags under the data security level dimension from the adjudication tags; Output the grading results and the classification results. Secondly, embodiments of this application provide a grading and classification device for the traffic data, including: The initial prediction result output module is used to receive traffic data text, call multiple pre-trained language models, and output multiple initial prediction results for the traffic data text; the multiple initial prediction results correspond one-to-one with the multiple pre-trained language models. The rule correction log generation module is used to determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification. The weight update calculation module is used to use the rule correction log to count the number of correct contributions and the number of incorrect contributions of the pre-trained language model, and to calculate the weight update of the pre-trained language model based on the number of correct contributions and the number of incorrect contributions. The target language model determination module is used to update the dimension-aware weights of the pre-trained language model using the weight update amount, and determine the target language model from multiple pre-trained language models. The results output module is used to control the target language model to output the hierarchical and classification results of the traffic data text.

[0012] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0015] The embodiments of the present invention have the following advantages: By establishing a log-driven closed-loop feedback transmission mechanism, the traditional fragmented process of rule verification, which only serves as a one-way post-processing interception and whose correction information is directly discarded, is changed. By generating rule correction logs and quantifying the verification results into the number of correct and incorrect contributions, the compliance verification process is transformed into objective statistical support that drives model weight optimization.

[0016] By dynamically adjusting the model's dimensionality-aware weights through weight updates, the model's discourse power can adaptively evolve based on actual compliance performance. Based on the updated weights, the optimal target language model is accurately selected, overcoming the shortcomings of single models or static linear weighting in adapting to complex traffic texts. This effectively eliminates the interference of single-model misjudgments and multi-model output conflicts on prediction results, ensuring that the final traffic data classification and grading results possess extremely high compliance accuracy and stability. Attached image description: Figure 1 This is a flowchart illustrating the steps of a method for classifying and categorizing traffic data provided in an embodiment of the present invention. Figure 2This is a structural block diagram of a grading and classification device for traffic data provided in an embodiment of the present invention; Figure 3 This is a hardware structure block diagram of an electronic device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0020] Reference Figure 1 The diagram illustrates a flowchart of a method for classifying and categorizing traffic data according to an embodiment of the present invention, which may specifically include the following steps: Step 101: Receive traffic data text, call multiple pre-trained language models, and output multiple initial prediction results for the traffic data text; the multiple initial prediction results correspond one-to-one with the multiple pre-trained language models; Step 102: Determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification. Step 103: Use the rule correction log to count the number of correct contributions and the number of incorrect contributions of the pre-trained language model, and calculate the weight update amount of the pre-trained language model using the number of correct contributions and the number of incorrect contributions; Step 104: Update the dimension-aware weights of the pre-trained language model using the weight update amount, and determine the target language model from the multiple pre-trained language models; Step 105: Control the target language model to output the hierarchical and classification results of the traffic data text.

[0021] In this embodiment of the invention, traffic data text can be received, multiple pre-trained language models can be invoked, and multiple initial prediction results can be output for the traffic data text. By invoking multiple language models with different semantic representation capabilities, traffic text can be predicted in parallel to obtain multi-source discrimination results, providing basic decision data for subsequent fusion verification. Traffic data text refers to short text field data in the transportation field that is subject to review and processing.

[0022] For example, The text related to vehicle dynamic operation and positioning can include attribute fields that describe the vehicle's dynamic position or motion state, such as "real-time GPS coordinates of the vehicle", "vehicle driving trajectory record", and "vehicle driving speed and acceleration". Vehicle and driver identity attribute text can include static attribute fields that are uniquely identifying or associated with personal privacy, such as "license plate number", "vehicle identification number (VIN)", "driver's name and ID number", and "owner's contact number". Text related to traffic facilities and sensing monitoring can include collected data texts that reflect the operational status of traffic infrastructure, such as "HD camera monitoring video stream address at XX intersection", "road surface sensor temperature measurement data", and "real-time status log of traffic lights". Text related to transportation and business transactions can include business log texts containing transaction or travel behavior characteristics, such as "highway ETC toll deduction records", "ride-hailing order origin and destination information", and "public transport card swipe details". Pre-trained language models refer to deep learning models that are pre-trained on large-scale text corpora and possess the ability to understand text semantics and perform zero-shot classification. The initial prediction result refers to the original label output by each pre-trained language model after independently judging the traffic data text, without rule verification and weight optimization. For example, model A outputs the initial label as "public data", and model B outputs the initial label as "personal information".

[0023] In this embodiment of the invention, a data governance rule mapping relationship can be determined, and the initial prediction result can be verified for consistency based on the data governance rule mapping relationship. A rule correction log is generated to characterize the verification result of the consistency verification. This allows for compliance verification of the initial prediction output by multiple models and interception of erroneous predictions using existing data governance hard business specifications. At the same time, the attribution information of right and wrong in the verification process is structured and retained to generate a closed-loop feedback log required for subsequent optimization. Data governance rule mapping relationships refer to the pre-determined hard logical constraints used to regulate the compliance attributes of traffic data, expressed as the mapping rules between data field types and compliance labels.

[0024] For example: Example Rule 1 (Vehicle Trajectory Location Class): The mapping relationship is defined as "If the data text type is 'Vehicle Dynamic Positioning / Trajectory Data', then it is bound to (Data Category: Personal Information, Data Security Level: Important Data)". When receiving text such as "Real-time GPS Latitude and Longitude Coordinates of Vehicle", this rule restricts its category to "Personal Information" and its level to "Important Data".

[0025] Example Rule 2 (Personal Identity and Privacy Category): The mapping relationship is defined as "If the data text contains 'driver's ID number' or 'vehicle owner's mobile phone number,' then the corresponding data is bound (data category: sensitive personal information, data security level: core data / extremely high sensitivity level)."

[0026] Example Rule 3 (Public Basic Sensing Class): The mapping relationship is defined as "If the data text type is 'public road traffic flow statistics' or 'meteorological sensing data', then the corresponding binding is (data category: public transportation data, data security level: general data)". Consistency verification refers to the process of comparing the initial prediction results output by each pre-trained language model with the mapping relationship of data governance rules to ensure that they remain logically consistent. The verification result refers to the compliance status or violation deviation status of the initial prediction result after passing the consistency verification. Rule correction logs refer to databases or log files used to record the correctness or incorrectness of predictions of each pre-trained language model, information on models involved in error prediction, and information on models that support compliance rule labels during the consistency verification process. In this embodiment of the invention, the number of correct contributions and the number of incorrect contributions of the pre-trained language model can be statistically analyzed using the rule correction log. The weight update amount of the pre-trained language model can be calculated using the number of correct contributions and the number of incorrect contributions. The historical performance data in the rule correction log can be quantitatively analyzed, and the hard feedback of rule verification can be transformed into mathematical indicators for objective attribution and evaluation of the performance of each model. The quantitative update value guiding the fine-tuning of weights can be calculated. The number of correct contributions refers to the cumulative frequency in the rule correction log where the prediction results output by the pre-trained language model are consistent with the mapping relationship of the data governance rules (i.e., support compliance rule labels). Error contribution count refers to the cumulative frequency of predictions output by the pre-trained language model that violate the data governance rule mapping relationship (i.e., participate in error prediction) in the rule correction log. Weight update quantity refers to a quantitative indicator used to characterize the overall performance of a single pre-trained language model and the magnitude of weight adjustments, calculated based on the number of correct contributions and the number of incorrect contributions. In this embodiment of the invention, the dimension-aware weights of the pre-trained language model can be updated using the weight update amount, and a target language model can be determined from multiple pre-trained language models. This allows for dynamic adjustment of the influence of each model on different business dimensions based on model performance evaluation, eliminating the risk of misjudgment caused by fixed weights, and selecting the target model with the best current performance based on the updated comprehensive weights. Dimension-aware weights refer to the numerical values ​​of discourse power assigned to each pre-trained language model, distinguishing different business dimensions such as data type, data classification, and data security level. The target language model refers to the pre-trained language model that, after weight updates and evaluation, has the highest overall weight performance among multiple pre-trained language models and best meets the current compliance governance needs. In this embodiment of the invention, by controlling the target language model to output the hierarchical and classification results of the traffic data text, the target language model, which has undergone closed-loop optimization and selection, makes the final judgment output on the traffic data, thereby achieving stable, reliable and compliant data classification and hierarchical. The classification result refers to the compliance level label that represents the importance or sensitivity level of traffic data security as ultimately output by the target language model. The classification result refers to the type label that represents the business attributes or legal compliance attribution of traffic data, which is finally output by the target language model. This invention establishes an objective transmission mechanism consisting of "rule verification, log recording, performance statistics, and weight update" by structuring and storing the verification process as a rule correction log, and then quantifying and statistically analyzing the number of correct and incorrect contributions in the log and calculating the "weight update amount". This solves the problems of discarded correction information and lack of compliant statistical support for weight adjustment, laying the foundation for improving accuracy.

[0027] Furthermore, this embodiment of the invention uses the weight update amount to update the dimension-aware weights, enabling the discourse power of each model to adaptively evolve based on historical compliance performance. This allows for the precise selection of the most suitable target language model, and finally, the final output is executed by controlling this target model. This closed-loop control breaks the limitations of static weights, effectively eliminating the instability risks caused by single-model bias and inconsistencies in multi-model outputs, and solving the problems of poor stability and lack of robustness. For example, suppose the system needs to classify and categorize the received traffic data text "real-time GPS location coordinates of vehicles". The system first receives traffic data text "real-time GPS location coordinates of vehicles" and then calls pre-trained language models A and B. Model A outputs the initial prediction result "public data", and model B outputs the initial prediction result "personal information". The system determines the preset data governance rule mapping relationship "Location data (personal information, important data)" and performs a consistency check on the two initial prediction results accordingly. The check determines that the prediction result of model A violates the rule, while the prediction result of model B complies with the rule. The system then generates a rule correction log, which records that model A participated in an incorrect prediction once and model B supported the compliant rule label once. The system reads the rule correction log and calculates that Model A has 0 correct contributions and 1 incorrect contribution, while Model B has 1 correct contribution and 0 incorrect contributions. Based on the preset penalty coefficient, the system calculates that the weight update amount for Model A is negative (e.g., -1.0) and the weight update amount for Model B is positive (e.g., +1.0). The system uses the calculated weight update amounts to perform decay and enhancement updates on the dimension-aware weights of models A and B, resulting in a decrease in the dimension-aware weights of model A and an increase in the dimension-aware weights of model B. Based on a comparative analysis of the updated dimension-aware weights, the system identifies model B, with the higher overall weight, as the target language model. Finally, the system control target language model B infers and outputs the "real-time GPS positioning coordinates of the vehicle", and obtains the classification result of the traffic data text as "personal information" and the hierarchical result as "important data".

[0028] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.

[0029] In an optional embodiment of the present invention, the step of calling multiple pre-trained language models to output multiple initial prediction results for the traffic data text includes: Multiple pre-trained language models are invoked to perform semantic matching and vector similarity calculation on the traffic data text, thereby obtaining the semantic matching scores of the pre-trained language models for each candidate label of the traffic data text. Determine the dimension-aware weight matrix, which includes data type dimension, data classification dimension, and data security level dimension; Extract the independent weights of each of the pre-trained language models under the data type dimension, the data classification dimension, and the data security level dimension; Using the semantic matching score and the independent weight, the weighted score of each candidate label under the data type dimension, the data classification dimension and the data security level dimension is calculated; Based on the weighted score after normalization, target candidate labels are selected and used as the initial prediction results.

[0030] This invention utilizes a mechanism that integrates semantic matching of multiple pre-trained language models with a three-dimensional weight matrix to comprehensively evaluate the matching degree of traffic data text across three business dimensions: data type, data classification, and data security level. This eliminates the bias caused by a single model or one-dimensional scoring, enabling the generation of accurate and comprehensive initial prediction results and providing high-quality basic prediction data for subsequent consistency verification and dynamic weight fine-tuning.

[0031] Pre-trained language models refer to deep learning models that are pre-trained on large-scale text corpora and have the ability to understand text semantics and extract feature vectors.

[0032] Traffic data text refers to short text or field name data related to the traffic field that is to be identified and classified.

[0033] Semantic matching refers to the process of determining and evaluating the degree of semantic association and logical consistency between traffic data text and preset candidate labels.

[0034] Vector similarity calculation refers to the mathematical operation of mapping traffic data text and candidate labels into high-dimensional semantic vectors, and calculating the distance or cosine of the angle between the two vectors to represent the degree of semantic similarity.

[0035] Candidate labels refer to a pre-defined set of alternative labels used to characterize different categories, attributes, or safety levels of traffic data.

[0036] Semantic matching score refers to the numerical value representing the probability of semantic similarity or the degree of matching between traffic data text and each candidate label, calculated by each pre-trained language model.

[0037] The dimension-aware weight matrix refers to a multi-dimensional matrix structure composed of the weight values ​​of each pre-trained language model in the dimensions of data type, data classification, and data security level.

[0038] Data type dimension refers to the classification perspective that characterizes traffic data text in terms of its physical or business functional attributes.

[0039] Data classification dimensions refer to the classification perspectives that characterize the compliance attributes of traffic data text in laws, regulations, or data governance systems.

[0040] The data security level dimension refers to the classification perspective that characterizes traffic data text in terms of security sensitivity or the degree of harm caused by leakage.

[0041] Independent weights refer to the independent discourse power components of a specific pre-trained language model in a specific dimension, extracted from the dimension-aware weight matrix.

[0042] The weighted score refers to the comprehensive matching value obtained by multiplying and adding the semantic matching scores of each pre-trained language model with the independent weights under the corresponding dimensions.

[0043] Normalization is a mathematical transformation process that maps weighted scores under different dimensions or units to a unified numerical range to eliminate differences in units.

[0044] The target candidate label refers to the candidate label with the highest value in the weighted score after normalization and that best matches the current text attribute.

[0045] The initial prediction result refers to the combination of target candidate labels initially output for traffic data text after the semantic matching score and dimension-independent weights are fused and normalized.

[0046] For example, after receiving the traffic data text "vehicle driving trajectory coordinates", the system first calls the pre-deployed models A and B to convert it into semantic vectors, and calculates the cosine similarity between the vector and the preset candidate labels (such as "location data", "personal information", "important data"). The semantic matching score of model A for "personal information" is 0.85, and that of model B is 0.75. Then, the system retrieves the built-in dimension-aware weight matrix and extracts the independent weights of model A (0.6) and model B (0.4) in the data classification dimension. Next, the system multiplies and sums the semantic matching scores of each model with their corresponding independent weights to calculate the weighted score of the "personal information" label in the data classification dimension, and uses the Softmax function to normalize the weighted scores of all candidate labels. Finally, the system compares the normalized scores and selects "personal information" with the highest score as the target candidate label, outputting it as the initial prediction result of the traffic data text in the data classification dimension.

[0047] This invention, through the decoupling and introduction of a multi-dimensional perceptual weight matrix encompassing data type, data classification, and data security level, breaks through the limitations of traditional single-dimensional or global fixed weight scoring, enabling the precise utilization of the unique advantages of different pre-trained language models in different subdivisions. Simultaneously, by deeply integrating the semantic matching score output by the model with the independent weights of specific dimensions and eliminating dimensional bias through normalization, it significantly improves the objectivity and multi-dimensional adaptability of initial label selection, effectively reducing the impact of single-model misjudgments on initial prediction results, and fundamentally ensuring the accuracy and robustness of initial predictions for traffic data classification and grading.

[0048] In an optional embodiment of the present invention, the step of calculating the weight update amount of the pre-trained language model using the number of correct contributions and the number of incorrect contributions includes: The preset misclassification penalty coefficient is invoked, and the misclassification penalty coefficient and the number of errors are multiplied to obtain the weighted penalty component; The difference between the number of correct contributions and the weighted penalty component is determined as the net contribution numerator. The sum of the number of correct contributions and the number of incorrect contributions is determined as the denominator of the total contribution. The quotient of the net contribution numerator and the total contribution denominator is determined as the weight update amount of the pre-trained language model.

[0049] This invention introduces a preset misclassification penalty coefficient to asymmetrically penalize the erroneous predictions of the pre-trained language model. It integrates the number of correct contributions and the number of erroneous contributions with penalty effects into the ratio of the asymmetric net contribution component to the denominator component of the total participation frequency. This accurately calculates the weight update amount that can objectively reflect the actual performance quality and reliability of the model, providing a quantitative performance evaluation basis for the subsequent dynamic adjustment of model weights.

[0050] The preset misclassification penalty coefficient refers to a pre-set penalty adjustment factor used to amplify the cost of model prediction errors and to impose a weighted penalty on the model's illegal or incorrect prediction output.

[0051] Error contribution count refers to the cumulative frequency of predictions output by the pre-trained language model that violate the data governance rule mapping relationship (i.e., participate in error prediction) in the rule correction log.

[0052] The weighted penalty component refers to the penalty value used to quantify the negative impact of model misclassification, which is obtained by multiplying the preset misclassification penalty coefficient by the number of erroneous contributions.

[0053] The number of correct contributions refers to the cumulative frequency in the rule correction log where the prediction results output by the pre-trained language model are consistent with the mapping relationship of the data governance rules (i.e., support compliance rule labels).

[0054] The net contribution numerator refers to the value obtained by subtracting the weighted penalty component from the number of correct contributions, which is used to characterize the net positive performance of the model.

[0055] The denominator of the total contribution refers to the value obtained by adding the number of correct contributions and the number of incorrect contributions, which is used to characterize the total frequency of the model's cumulative participation in prediction.

[0056] Pre-trained language models refer to deep learning models that are pre-trained on large-scale text corpora and possess the ability to understand and classify text semantics.

[0057] The weight update amount is a quantitative ratio indicator used to indicate the direction and magnitude of weight adjustments in a pre-trained language model, calculated by dividing the numerator of the net contribution by the denominator of the total contribution.

[0058] For example, the system extracts historical performance data of model A within the current statistical period from the rule correction log, obtaining that model A made 8 correct contributions and 2 incorrect contributions, and retrieves the system's preset misclassification penalty coefficient of 1.5. The system first multiplies the misclassification penalty coefficient 1.5 with the number of incorrect contributions 2 to obtain a weighted penalty component of 3.0. Then, the system subtracts the number of correct contributions 8 from the weighted penalty component 3.0 to determine the net contribution numerator component of 5.0. At the same time, the system adds the number of correct contributions 8 to the number of incorrect contributions 2 to determine the total contribution denominator component of 10. Finally, the system divides the net contribution numerator component 5.0 with the total contribution denominator component 10 to obtain a quotient of 0.5, and determines this value of 0.5 as the weight update amount for model A, which is used for subsequent weight gain adjustment of model A.

[0059] This invention breaks through the limitations of traditional linear evaluation of model performance based solely on accuracy. By introducing a misclassification penalty coefficient, a fault-tolerant penalty mechanism is established, improving the system's sensitivity and penalty for model misjudgments. Simultaneously, bounded normalization is performed using the asymmetric net value of correct and incorrect contributions as the numerator and the total participation frequency as the denominator. This not only objectively and smoothly reflects the model's true performance quality under different historical sample sizes but also prevents unreasonable weight increases due to occasional prediction successes. This enhances the objectivity and anti-interference capability of weight updates, laying a solid quantitative foundation for subsequent dynamic updates of model weights and determination of the target language model.

[0060] In an optional embodiment of the present invention, the step of updating the dimension-aware weights of the pre-trained language model using the weight update amount to determine the target language model from the plurality of pre-trained language models includes: Perform an exponential operation with the natural constant as the base on the product of the preset update sensitivity coefficient and the weight update amount to obtain the exponential gain factor; A preset damping factor is retrieved, and the damping factor is multiplied with the independent weights of each pre-trained language model in different dimensions to obtain a weighted baseline component. The exponential update component is obtained by performing a multiplication calculation using the difference between the damping factor and one, the independent weights, and the exponential gain factor. The weighted benchmark component and the index update component are added together to obtain the original update weights; Retrieve the preset weight range constraints that include lower and upper limits, and perform interval truncation restriction processing on the original updated weights to obtain the updated dimension-aware weights; The updated dimension-aware weight matrix is ​​updated using the updated dimension-aware weights to generate the updated dimension-aware weight matrix. Based on the updated dimension-aware weight matrix, the target language model is determined from the multiple pre-trained language models.

[0061] This invention, through a composite weight update mechanism combining exponential gain calculation, damped smooth control, and interval truncation constraints, achieves nonlinear smooth evolution and numerical bounded constraints on the independent weights of the pre-trained language model in different dimensions, eliminates the impact of drastic weight fluctuations on system stability, and accurately selects the target language model with the best overall performance based on the dynamically evolved dimension-aware weight matrix.

[0062] The update sensitivity coefficient refers to a pre-set scaling factor used to adjust the sensitivity of weight updates to quantitative performance indicators.

[0063] Weight update refers to a quantitative indicator used to indicate the model's performance and adjustment direction, calculated based on the number of correct and incorrect contributions of the pre-trained language model.

[0064] The exponential gain factor is a value used to characterize nonlinear gain or attenuation effects, obtained by performing an exponential operation with the natural constant as the base on the product of the update sensitivity coefficient and the weight update amount.

[0065] The damping factor is a pre-set smoothing adjustment coefficient used to control the proportion of historical weights retained and the weights introduced by new gains.

[0066] Independent weights refer to the independent discourse power components that a specific pre-trained language model possesses before updating in a specific dimension, extracted from the dimension-aware weight matrix.

[0067] The weighted benchmark component refers to the smoothed value used to characterize the historical weight inheritance benchmark, which is calculated by multiplying the damping factor with the independent weights.

[0068] The exponential update component refers to the numerical value used to characterize the nonlinear increment introduced based on the latest performance, calculated by multiplying the difference between the damping factor and one, the independent weights, and the exponential gain factor.

[0069] The original update weights refer to the intermediate update weights obtained by summing the weighted benchmark components and the exponential update components without range constraints.

[0070] Weight range constraints that include lower and upper limits refer to the pre-set minimum and maximum threshold boundaries used to limit the reasonable range of model weight values.

[0071] Interval truncation constraint processing refers to the numerical constraint operation that forcibly limits or prunes the original update weights that exceed the preset numerical range to within the preset lower and upper limits.

[0072] The updated dimension-aware weights refer to the dimension-independent weights that meet the numerical range constraints and have completed the current round of evolution after being processed by interval truncation.

[0073] The dimension-aware weight matrix refers to a multi-dimensional matrix structure composed of the dimension-aware weights of each pre-trained language model under different business dimensions.

[0074] The updated dimension-aware weight matrix refers to the next-generation weight matrix structure generated after filling in the latest evolved dimension-aware weights of each pre-trained language model.

[0075] Pre-trained language models refer to deep learning models that are pre-trained on large-scale text corpora and possess the ability to understand and classify text semantics.

[0076] The target language model refers to the pre-trained language model that has the highest comprehensive weight performance in multiple dimensions and best meets the current compliance governance needs, selected based on comparative analysis of the updated dimension-aware weight matrix.

[0077] For example, the system obtains a pre-set update sensitivity coefficient of 0.1 and a weight update amount of 0.5 for model A, multiplies them by 0.05, and performs an exponential operation with the natural constant e as the base, to calculate an exponential gain factor of approximately 1.051. Simultaneously, the system retrieves a pre-set damping factor of 0.8 and multiplies it with the current independent weight of model A in the data classification dimension of 0.6 to obtain a weighted baseline component of 0.48. Then, the system calculates the difference between the damping factor and 0.2, and multiplies 0.2, the independent weight of 0.6, and the exponential gain factor of 1.051 to obtain an exponential update component of approximately 0.126. The system then adds the weighted baseline component of 0.48 and the exponential update component of 0.126 to obtain the original update weight of 0.606. Next, the system retrieves a pre-set weight range constraint interval [0.1, ...]. [0.9] Since the original update weight 0.606 is within this interval, after interval truncation and restriction processing, the updated dimension-aware weight is directly determined to be 0.606, and the corresponding position in the dimension-aware weight matrix is ​​updated using this value to generate the updated dimension-aware weight matrix; finally, the system extracts the weights of each model in different dimensions based on the updated dimension-aware weight matrix and accumulates them to calculate the comprehensive score, and determines the model A with the highest comprehensive score as the target language model.

[0078] This invention combines an exponential gain mechanism with a damping smoothing factor to achieve nonlinear dynamic adjustment of model weights based on performance feedback. This allows high-performing models to quickly accumulate weight advantages while effectively mitigating the severe impact of single evaluation fluctuations on the weight structure, ensuring the continuity and smoothness of the weight evolution process. Simultaneously, by introducing weight range constraints including lower and upper limits for interval truncation, it prevents numerical explosion or weight deadlock (i.e., excessive weight decay leading to model unrecoverableness) in extreme cases, ensuring the numerical stability of the weight matrix update. Finally, based on the dimension-aware weight matrix after evolutionary convergence, the target language model is determined, accurately selecting the optimal model with multi-dimensional comprehensive adaptation advantages, greatly improving the scientific rigor of model selection and the robustness of the classification and grading output system.

[0079] In an optional embodiment of the present invention, the step of updating the dimension-aware weight matrix using the updated dimension-aware weights to generate the updated dimension-aware weight matrix includes: The rule impact factor is determined based on the aforementioned data governance rule mapping relationship; The rule correction ratio is calculated based on the rule correction log. When the rule correction ratio is higher than the preset rule correction ratio threshold, the rule influence factor is incrementally calculated using the preset enhancement step size to obtain the updated rule influence factor. A weighted score is calculated using the semantic matching score and the updated dimension-aware weight, and the updated rule influence factor is added to the weighted score to obtain the enhanced candidate label score. Based on the enhanced candidate label score and the updated dimension-aware weight, the change in dimension-aware weight in a single iteration and the current iteration number are determined. The rule correction ratio, the change in the dimension-aware weight, and the current iteration number are compared with the preset rule correction ratio threshold, the preset weight stability threshold, and the preset maximum iteration number, respectively, to generate an iteration termination judgment result. When the iteration termination judgment result indicates that the rule correction ratio is lower than the preset rule correction ratio threshold, and / or the dimension-aware weight change is lower than the preset weight stability threshold, and / or the current iteration number reaches the preset maximum iteration number, the iteration is terminated and an updated dimension-aware weight matrix is ​​generated.

[0080] This invention introduces a dynamic step-size increment enhancement mechanism for rule-based influence factors and a multi-condition iteration termination judgment mechanism. When the consistency of multi-model predictions deviates significantly, the candidate label scores are dynamically biased and corrected through rule priors. During the closed-loop iteration process, the control flow is adaptively converged and terminated by comparing the rule correction ratio, weight change amount, and iteration number, thereby generating an updated dimension-aware weight matrix with high accuracy and stability.

[0081] Data governance rule mapping relationships refer to the pre-determined hard logical constraints used to regulate the compliance attributes of traffic data, expressed as the mapping rules between data field types and compliance labels.

[0082] The rule impact factor refers to the numerical weight determined based on the mapping relationship of data governance rules, which is used to dynamically add points or adjust the bias of candidate labels that conform to hard governance rules.

[0083] Rule correction logs refer to databases or log files used to record the correctness or incorrectness of predictions of each pre-trained language model, information on models involved in error prediction, and information on models that support compliance rule labels during the consistency verification process.

[0084] The rule correction ratio refers to the proportion of the number of predicted samples that have been forcibly corrected or modified by data governance rules in the current batch of data, calculated based on the rule correction log statistics, out of the total number of predicted samples.

[0085] The preset rule correction ratio threshold refers to the critical ratio value that is set in advance to trigger the rule forced intervention and enhancement mechanism or to determine whether the rule correction status tends to be compliant and stable.

[0086] The enhancement step size refers to a pre-set fixed increment value used to control the increase of the rule influence factor during a single incremental accumulation process.

[0087] The updated rule impact factor refers to the value with greater bias intervention intensity obtained by superimposing the original rule impact factor with the enhancement step size when the rule correction ratio exceeds the preset threshold.

[0088] Semantic matching score refers to the numerical value representing the probability of semantic similarity or the degree of matching between traffic data text and each candidate label, calculated by each pre-trained language model.

[0089] The updated dimension-aware weights refer to the dimension-independent weights of a specific model in a specific dimension, obtained after previous rounds of evolution, updates, and truncation constraints.

[0090] The weighted score refers to the comprehensive matching score before rule bias is introduced, obtained by performing multiplication and addition fusion calculation using semantic matching score and updated dimension-aware weight.

[0091] The enhanced candidate label score refers to the comprehensive candidate label score obtained by adding the updated rule influence factor as the bias increment and the weighted score, which incorporates the rule logic correction.

[0092] The change in dimension-aware weights refers to the absolute value or norm statistical value of the change in the weight values ​​of each dimension in the dimension-aware weight matrix before and after a single iteration calculation.

[0093] The current iteration count refers to the actual number of rounds executed in the current closed-loop calculation.

[0094] The preset weight stability threshold refers to the upper limit of the amount of change that is pre-set to determine whether the dimension-aware weight matrix has converged and stabilized and no longer undergoes drastic changes.

[0095] The preset maximum number of iterations refers to the upper limit of the number of rounds allowed for closed-loop computation.

[0096] The iteration termination judgment result refers to the control logic instruction generated after comparing the rule correction ratio, the change in dimension perception weight, and the current iteration number with their respective preset thresholds, which indicates whether to end the loop iteration.

[0097] The updated dimension-aware weight matrix refers to the stable matrix structure that is finally closed-loop converged and output after the iteration termination condition is met, and is used for subsequent target language model determination and inference decision-making.

[0098] For example, the system first sets the initial rule impact factor to 0.1 based on the data governance rule mapping relationship, and calculates the rule correction ratio of the current batch of data as 15% according to the rule correction log. Since 15% is higher than the preset rule correction ratio threshold of 10%, the system retrieves the preset enhancement step size of 0.05, adds it to the initial rule impact factor of 0.1, and obtains the updated rule impact factor of 0.15. Subsequently, the system calculates the weighted score by multiplying and adding the semantic matching score output by the model with the currently updated dimension-aware weight, and directly sums and superimposes the updated rule impact factor of 0.15 onto the weighted score of the candidate label that matches the compliance rule, generating the enhanced candidate label. The system selects candidate label scores; then, based on the enhanced candidate label scores, it recalculates the model contribution and updates the weights, obtaining a change in dimension-aware weights of 0.002 in a single iteration, and records the current iteration as the 3rd iteration; finally, the system compares the rule correction ratio of 15%, the change of 0.002, and the iteration number of 3 with the preset threshold of 10%, the preset weight stability threshold of 0.005, and the preset maximum iteration number of 10, respectively. Although the correction ratio exceeds the limit, since the change of 0.002 is lower than the weight stability threshold of 0.005, the system generates an iteration termination judgment result indicating that the termination condition is met, thereby terminating the closed-loop iteration and generating the finally converged updated dimension-aware weight matrix.

[0099] This invention, through the construction of a dynamic step-by-step increment mechanism for rule influence factors triggered by exceeding the rule correction ratio, can proactively introduce rule prior biases when the model collectively deviates from compliance requirements, forcibly correcting misjudgment tendencies and pulling back to the compliance trajectory, thus improving the system's adaptive correction capability for complex misjudgment scenarios. Simultaneously, the enhanced score is re-injected into the "score, weight, and verification" closed loop for iterative evolution, and a composite judgment is made using three dimensions of termination indicators: rule correction ratio, weight stability, and maximum iteration count. This ensures that the weight matrix fully converges to a stable optimal state while effectively preventing infinite loops and overcomputation. This significantly improves the compliance and accuracy of data classification and grading while guaranteeing the stability and execution efficiency of the algorithm convergence.

[0100] In an optional embodiment of the present invention, the step of determining the target language model from the plurality of pre-trained language models based on the updated dimension-aware weight matrix includes: The dimension-aware weights of each pre-trained language model under the data type dimension, the data classification dimension, and the data security level dimension are extracted from the updated dimension-aware weight matrix, and the dimension-aware weights of each pre-trained language model are accumulated to obtain the comprehensive weight score of each pre-trained language model. The target language model is determined from the multiple pre-trained language models by comparing the comprehensive weight scores of each pre-trained language model.

[0101] This invention extracts the weights of each pre-trained language model on multi-dimensional business attributes from the updated dimension-aware weight matrix and performs cross-dimensional cumulative calculations to quantitatively characterize the comprehensive performance capability and compliance adaptability of each model from different classification and grading perspectives. Then, through comprehensive score comparison, it accurately selects the target language model with the best global performance, providing a decision model with the best comprehensive advantages for the final traffic data classification and grading inference.

[0102] The updated dimension-aware weight matrix refers to the multidimensional matrix structure generated after the aforementioned closed-loop iterative evolution, update, and threshold constraint determination convergence, which contains the latest weight values ​​of each pre-trained language model in multiple dimensions.

[0103] Pre-trained language models refer to deep learning models that are pre-trained on large-scale text corpora and possess the ability to understand and classify text semantics.

[0104] The data type dimension refers to the classification perspective that characterizes traffic data text in terms of its physical or business functional attributes.

[0105] Data classification dimensions refer to the classification perspectives that characterize the compliance attributes of traffic data text in laws, regulations, or data governance systems.

[0106] The data security level dimension refers to the classification perspective that characterizes traffic data text in terms of security sensitivity or the degree of harm caused by leakage.

[0107] Dimension-aware weights refer to the independent discourse power components that a specific pre-trained language model now possesses under a specific business dimension, extracted from the dimension-aware weight matrix.

[0108] Cumulative calculation refers to the arithmetic operation of adding the perceived weights of the same pre-trained language model across the dimensions of data type, data classification, and data security level.

[0109] The overall weighted score refers to the total score obtained by accumulating the scores to characterize the overall performance and comprehensive applicability of a single pre-trained language model across all business dimensions.

[0110] The target language model refers to the optimal pre-trained language model selected based on the comprehensive weight score comparison, which has the strongest overall performance and best meets the needs of global data governance and classification.

[0111] For example, the system first extracts the latest dimension-aware weights of Model A and Model B in the data type dimension, data classification dimension, and data security level dimension from the updated dimension-aware weight matrix generated after iterative convergence. Specifically, the weights of Model A in the three dimensions are 0.85, 0.80, and 0.90, and the weights of Model B in the three dimensions are 0.70, 0.75, and 0.65, respectively. Subsequently, the system performs an additive summation calculation on the three weights of Model A, calculating a comprehensive weight score of 2.55 for Model A and 2.10 for Model B. Finally, the system compares Model A's 2.55 with Model B's 2.10, determining that Model A has the highest comprehensive score. Thus, Model A is identified as the final target language model for subsequent hierarchical and classification inference output of traffic data text.

[0112] This invention, through the aggregation of independent weights of various pre-trained language models across multiple dimensions such as data type, data classification, and data security level, overcomes the limitations of selecting models based solely on a single dimension. It provides a comprehensive evaluation of a model's generalization and adaptation capabilities to multiple compliance objectives from a global perspective, effectively reducing the risk of selecting a model with a high score in one dimension but poor performance in others. Simultaneously, the comprehensive weight score generated based on the aggregated calculation provides an objective, intuitive, and quantitative selection criterion, ensuring the scientific rigor and accuracy of the target language model establishment process and greatly enhancing the overall robustness and reliability of the final output classification and grading results.

[0113] In an optional embodiment of the present invention, the step of controlling the target language model to output the hierarchical and classification results of the traffic data text includes: The traffic data text is input into the target language model, and the target language model is used to calculate the prediction score of the traffic data text for each candidate label under the data type dimension, the data classification dimension, and the data security level dimension. Based on the predicted scores, target candidate labels are selected under each dimension, and the highest normalized score corresponding to the target candidate label is extracted as the confidence index. When the confidence index is determined to be lower than the preset confidence threshold, the target candidate label is adjudicated to obtain the adjudicated label; When the confidence index is determined to be greater than or equal to the confidence threshold, the target candidate label is determined as the adjudication label; Extract the data type dimension and the data classification dimension labels from the adjudication labels to generate the classification results; The classification result is generated by extracting the tags under the data security level dimension from the adjudication tags; Output the grading results and the classification results. In this embodiment of the invention, the selected target language model is controlled to perform multi-dimensional inference prediction on traffic data text, and a confidence verification and risk adjudication mechanism based on the highest normalized score is introduced to prevent the model from misjudging under low confidence, thereby accurately extracting and outputting traffic data classification and grading results that meet compliance requirements and business attributes.

[0114] Traffic data text refers to short text or field name data related to the traffic field that is to be identified, classified, and graded.

[0115] The target language model refers to the pre-trained language model with the strongest overall performance selected through closed-loop evolution of the aforementioned weights and comparison with the comprehensive score.

[0116] The data type dimension refers to the classification perspective that characterizes traffic data text in terms of its physical or business functional attributes.

[0117] Data classification dimensions refer to the classification perspectives that characterize the compliance attributes of traffic data text in laws, regulations, or data governance systems.

[0118] The data security level dimension refers to the classification perspective that characterizes traffic data text in terms of security sensitivity or the degree of harm caused by leakage.

[0119] Candidate labels refer to a pre-defined set of alternative labels used to characterize different categories, attributes, or safety levels of traffic data.

[0120] The prediction score refers to the probability or matching score calculated by the target language model based on the traffic data text and each candidate label in different dimensions.

[0121] The target candidate label refers to the candidate label with the highest score and the best match selected based on the predicted score under a specific dimension.

[0122] The normalized highest score refers to the dimensionless maximum score obtained after interval normalization mapping of the highest predicted score of the target candidate label in the corresponding dimension.

[0123] The confidence index is a quantitative indicator that uses the highest normalized score corresponding to the target candidate label to characterize the reliability and certainty of the model's prediction.

[0124] The preset confidence threshold refers to a critical evaluation value that is pre-set to measure whether the model's prediction results are reliable enough and whether a subsequent adjudication mechanism needs to be triggered.

[0125] The ruling refers to the process of calling a high-precision model, expert rules, or security engine to perform secondary verification and correction of the target candidate label when the confidence index is lower than a preset threshold.

[0126] The adjudication label refers to the authoritative adjudication label that is directly confirmed after the confidence threshold is determined or is finally determined after the adjudication mechanism corrects and corrects the error.

[0127] The classification result refers to the combination of compliance and business attribute tags extracted from the adjudication tags, representing the traffic data text under the data type dimension and data classification dimension.

[0128] The grading result refers to the compliance sensitivity level label extracted from the adjudication label, which represents the traffic data text under the data security level dimension.

[0129] For example, the system inputs the traffic data text "real-time GPS trajectory of vehicles" into a predefined target language model. The target language model calculates a prediction score of 0.92 for "location data" in the data type dimension, 0.85 for "personal information" in the data classification dimension, and 0.60 for "important data" in the data security level dimension. The system selects the labels corresponding to the highest scores as target candidate labels and extracts the normalized highest scores of 0.92, 0.85, and 0.60 as confidence indicators. Subsequently, the system uses these three confidence indicators... The confidence level indicators are compared with the preset confidence threshold of 0.75. If the data type dimension (0.92) and data classification dimension (0.85) are greater than 0.75, "location data" and "personal information" are directly identified as adjudication labels. If the data security level dimension (0.60) is lower than 0.75, the preset high-precision adjudication engine is called to verify and adjudicate "important data", confirm and generate the adjudication label "important data". Finally, the system extracts "location data" and "personal information" to generate classification results, extracts "important data" to generate hierarchical results, and outputs them to external terminals in a formatted manner.

[0130] This invention, through the establishment of a control chain of "prediction screening, confidence verification, low-confidence adjudication, and multi-dimensional decoupled output," changes the traditional mode of language models directly and blindly outputting the final result. By introducing the normalized highest score as a confidence index, it can accurately quantify the model's predictive confidence across various dimensions and effectively identify potential misjudgment risks. The adjudication mechanism introduced for low-confidence predictions provides a secondary fallback correction, greatly reducing output illusions and classification errors caused by semantic ambiguity or boundary samples, ensuring that the final output data classification and grading results have extremely high compliance, accuracy, and system robustness.

[0131] To enable those skilled in the art to better understand the embodiments of the present invention, an example is used below to illustrate the embodiments of the present invention.

[0132] Step S1: Multi-model dimensional perception weighted fusion; For any traffic data text The objective of this invention is to predict its three-dimensional compliance label:

[0133] in, These represent the data type, data category, and data security level, respectively.

[0134] Let the model set be:

[0135] Each pre-trained language model For candidate tags Output semantic matching score .

[0136] To address the semantic differences across different classification dimensions, independent weights are assigned to each model across different dimensions, constructing a dimension-aware weight matrix:

[0137] For any tag In dimension The following fusion score is:

[0138] Where W represents the dimension-aware weight matrix; K represents the total number of pre-trained language models invoked, where k∈1, 2, ..., K represents the k-th pre-trained language model; t represents the data type dimension, c represents the data classification dimension, and l represents the data security level dimension; represents the independent weights of the k-th pre-trained language model in dimension d (d∈{t, c, l}); x represents the received traffic data text; yi represents the i-th candidate label; sk(x, yi) represents the semantic matching score calculated by the k-th pre-trained language model for the traffic data text x against the candidate label yi; This represents the weighted score (fusion score) of the candidate label yi in dimension d.

[0139] After normalizing the fusion scores, the label with the highest score is selected as the initial prediction result. Simultaneously, the following calculations are performed: Confidence index (normalized maximum score); Residual indicator (the difference in scores between the first two labels).

[0140] Step S2: Weak rule correction mechanism; Based on the preset data governance rules mapping relationship:

[0141] R refers to the data governance rule mapping relationship; t refers to the data type (or data type field) of the input traffic data text; cr refers to the data classification specification label corresponding to data type t as determined by the data governance rule mapping relationship; lr refers to the data security level specification label corresponding to data type t as determined by the data governance rule mapping relationship.

[0142] Perform consistency verification on the model prediction results: If the prediction results violate the rule constraints, a correction is performed; Simultaneously record: The set of error models (models involved in error prediction); The correct set of models (models that support rule labels).

[0143] This process transforms rules from "constraints" into "feedback signals".

[0144] Step S3: Model contribution evaluation; Based on rule-corrected logs, the behavior of each model across different dimensions is statistically analyzed, including: Correct number of contributions ; Number of incorrect contributions .

[0145] Further contribution ratio analysis is introduced into the data type dimension. By identifying high-contribution error models through the model contribution ratio and statistical distribution, the ability to constrain key misjudgment models is enhanced.

[0146] Step S4: Adaptive weight update mechanism; Based on the statistical results of model contributions, an exponential update mechanism is used to dynamically adjust the model weights.

[0147] Define the update quantity as:

[0148] The model weights are updated as follows:

[0149] in: Δ refers to the weight update amount of the pre-trained language model; C refers to the number of correct contributions of the pre-trained language model obtained from the rule correction log; W refers to the number of incorrect contributions of the pre-trained language model obtained from the rule correction log; γ refers to the preset misclassification penalty coefficient; C-γW refers to the calculated net contribution numerator component; C+W refers to the calculated total contribution denominator component. The independent weights of the m-th pre-trained language model in a specific dimension at the t-th iteration (i.e., the weights before the update). The dimension-aware weights of the m-th pre-trained language model are updated in the (t+1)-th iteration; α is the preset damping factor. The weighted baseline component is calculated; η is the preset update sensitivity coefficient; exp() is the exponential operation with the natural constant as the base, where exp(ηΔ) is the calculated exponential gain factor; The calculated exponential update component is referred to as wmin; the lower limit of the preset weight range constraint is referred to as wmax; the upper limit of the preset weight range constraint is referred to as wmax; and clip(·, wmin, wmax) is the truncation function that performs interval truncation constraint processing on the original update weights.

[0150] The following stabilization mechanisms are also introduced: The learning rate decreases with the number of iterations. Smooth weight updates; Numerical range restrictions.

[0151] This mechanism amplifies the error penalty effect through an exponential function, causing the weights of models that frequently violate the rules to decay rapidly, while appropriately enhancing the correct models, thereby accelerating convergence.

[0152] Step S5: Dynamic Enhancement and Iterative Optimization of Rule Priors Calculate the current rule correction ratio: When it exceeds a preset threshold, a rule enhancement mechanism is introduced:

[0153] in: This refers to the rule impact factor in the t-th iteration (i.e., the rule impact factor before the update). δ refers to the rule influence factor updated in the (t+1)th iteration; δ refers to the preset enhancement step size used to perform incremental calculations on the rule influence factor. This refers to the upper limit value of the preset rule influence factor; This refers to a constraint function that minimizes the rule's influence factor to prevent it from increasing infinitely beyond the system's preset upper limit.

[0154] By additively enhancing the rule label scores, the candidate label ranking structure is changed, allowing the rules to gradually dominate the prediction results in scenarios where the model consistently misjudges.

[0155] at the same time: In cases of low confidence, a high-precision model is introduced for adjudication; Improve prediction stability and robustness.

[0156] Iteration termination condition Repeat steps S1 to S5 until any of the following conditions are met: The rule correction rate is below the threshold; The model weight changes tend to stabilize; The maximum number of iterations has been reached.

[0157] The final output is the compliance classification result of the traffic data.

[0158] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0159] Reference Figure 2 The diagram illustrates a structural block diagram of a grading and classification device for traffic data provided in an embodiment of the present invention, which may specifically include the following modules: The initial prediction result output module 201 is used to receive traffic data text, call multiple pre-trained language models, and output multiple initial prediction results for the traffic data text; the multiple initial prediction results correspond one-to-one with the multiple pre-trained language models. The rule correction log generation module 202 is used to determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification. The weight update calculation module 203 is used to use the rule correction log to count the number of correct contributions and the number of incorrect contributions of the pre-trained language model, and to calculate the weight update of the pre-trained language model through the number of correct contributions and the number of incorrect contributions. The target language model determination module 204 is used to update the dimension-aware weights of the pre-trained language model using the weight update amount, and determine the target language model from multiple pre-trained language models. The result output module 205 is used to control the target language model to output the hierarchical and classification results of the traffic data text.

[0160] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0161] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 3As shown, it includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304. Memory 303 is used to store computer programs; When the processor 301 executes the program stored in the memory 303, it implements any of the classification and grading methods for the traffic data described in the above embodiments: The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0162] The communication interface is used for communication between the aforementioned terminal and other devices.

[0163] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0164] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be 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, or discrete hardware components.

[0165] like Figure 4 As shown, in another embodiment of the present invention, a computer-readable storage medium 401 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the classification and grading method for the traffic data described in the above embodiments.

[0166] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described embodiments of the classification and grading method for the traffic data, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0167] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0168] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0170] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for grading and classifying the traffic data, characterized in that, include: Receive traffic data text, call multiple pre-trained language models, and output multiple initial prediction results for the traffic data text; Each of the initial prediction results corresponds one-to-one with one of the pre-trained language models; Determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification; The corrected logs are used to count the number of correct and incorrect contributions of the pre-trained language model, and the weight update amount of the pre-trained language model is calculated based on the number of correct and incorrect contributions. The dimension-aware weights of the pre-trained language model are updated using the weight update amount, and the target language model is determined from the multiple pre-trained language models. The target language model is controlled to output the hierarchical and classification results of the traffic data text.

2. The method according to claim 1, characterized in that, The step of calling multiple pre-trained language models to output multiple initial prediction results for the traffic data text includes: Multiple pre-trained language models are invoked to perform semantic matching and vector similarity calculation on the traffic data text, thereby obtaining the semantic matching scores of the pre-trained language models for each candidate label of the traffic data text. Determine the dimension-aware weight matrix, which includes data type dimension, data classification dimension, and data security level dimension; Extract the independent weights of each of the pre-trained language models under the data type dimension, the data classification dimension, and the data security level dimension; Using the semantic matching score and the independent weight, the weighted score of each candidate label under the data type dimension, the data classification dimension and the data security level dimension is calculated; Based on the weighted score after normalization, target candidate labels are selected and used as the initial prediction results.

3. The method according to claim 2, characterized in that, The step of calculating the weight update amount of the pre-trained language model using the number of correct contributions and the number of incorrect contributions includes: The preset misclassification penalty coefficient is invoked, and the misclassification penalty coefficient and the number of errors are multiplied to obtain the weighted penalty component; The difference between the number of correct contributions and the weighted penalty component is determined as the net contribution numerator. The sum of the number of correct contributions and the number of incorrect contributions is determined as the denominator of the total contribution. The quotient of the net contribution numerator and the total contribution denominator is determined as the weight update amount of the pre-trained language model.

4. The method according to claim 3, characterized in that, The step of updating the dimension-aware weights of the pre-trained language model using the weight update amount, and determining the target language model from multiple pre-trained language models, includes: Perform an exponential operation with the natural constant as the base on the product of the preset update sensitivity coefficient and the weight update amount to obtain the exponential gain factor; A preset damping factor is retrieved, and the damping factor is multiplied with the independent weights of each pre-trained language model in different dimensions to obtain a weighted baseline component. The exponential update component is obtained by performing a multiplication calculation using the difference between the damping factor and one, the independent weights, and the exponential gain factor. The weighted benchmark component and the index update component are added together to obtain the original update weights; Retrieve the preset weight range constraints that include lower and upper limits, and perform interval truncation restriction processing on the original updated weights to obtain the updated dimension-aware weights; The updated dimension-aware weight matrix is ​​updated using the updated dimension-aware weights to generate the updated dimension-aware weight matrix. Based on the updated dimension-aware weight matrix, the target language model is determined from the multiple pre-trained language models.

5. The method according to claim 4, characterized in that, The step of updating the dimension-aware weight matrix using the updated dimension-aware weights to generate the updated dimension-aware weight matrix includes: The rule impact factor is determined based on the aforementioned data governance rule mapping relationship; The rule correction ratio is calculated based on the rule correction log. When the rule correction ratio is higher than the preset rule correction ratio threshold, the rule influence factor is incrementally calculated using the preset enhancement step size to obtain the updated rule influence factor. A weighted score is calculated using the semantic matching score and the updated dimension-aware weight, and the updated rule influence factor is added to the weighted score to obtain the enhanced candidate label score. Based on the enhanced candidate label score and the updated dimension-aware weight, the change in dimension-aware weight in a single iteration and the current iteration number are determined. The rule correction ratio, the change in the dimension-aware weight, and the current iteration number are compared with the preset rule correction ratio threshold, the preset weight stability threshold, and the preset maximum iteration number, respectively, to generate an iteration termination judgment result. When the iteration termination judgment result indicates that the rule correction ratio is lower than the preset rule correction ratio threshold, and / or the dimension-aware weight change is lower than the preset weight stability threshold, and / or the current iteration number reaches the preset maximum iteration number, the iteration is terminated and an updated dimension-aware weight matrix is ​​generated.

6. The method according to claim 4 or 5, characterized in that, The step of determining the target language model from multiple pre-trained language models based on the updated dimension-aware weight matrix includes: The dimension-aware weights of each pre-trained language model under the data type dimension, the data classification dimension, and the data security level dimension are extracted from the updated dimension-aware weight matrix, and the dimension-aware weights of each pre-trained language model are accumulated to obtain the comprehensive weight score of each pre-trained language model. The target language model is determined from the multiple pre-trained language models by comparing the comprehensive weight scores of each pre-trained language model.

7. The method according to claim 6, characterized in that, The steps of controlling the target language model to output the hierarchical and classification results of the traffic data text include: The traffic data text is input into the target language model, and the target language model is used to calculate the prediction score of the traffic data text for each candidate label under the data type dimension, the data classification dimension, and the data security level dimension. Based on the predicted scores, target candidate labels are selected under each dimension, and the highest normalized score corresponding to the target candidate label is extracted as the confidence index. When the confidence index is determined to be lower than the preset confidence threshold, the target candidate label is adjudicated to obtain the adjudicated label; When the confidence index is determined to be greater than or equal to the confidence threshold, the target candidate label is determined as the adjudication label; Extract the data type dimension and the data classification dimension labels from the adjudication labels to generate the classification results; The classification result is generated by extracting the tags under the data security level dimension from the adjudication tags; Output the grading results and the classification results.

8. A device for grading and classifying the traffic data, characterized in that, include: The initial prediction result output module is used to receive traffic data text, call multiple pre-trained language models, and output multiple initial prediction results for the traffic data text; the multiple initial prediction results correspond one-to-one with the multiple pre-trained language models. The rule correction log generation module is used to determine the data governance rule mapping relationship, perform consistency verification on the initial prediction result according to the data governance rule mapping relationship, and generate a rule correction log to characterize the verification result of the consistency verification. The weight update calculation module is used to use the rule correction log to count the number of correct contributions and the number of incorrect contributions of the pre-trained language model, and to calculate the weight update of the pre-trained language model based on the number of correct contributions and the number of incorrect contributions. The target language model determination module is used to update the dimension-aware weights of the pre-trained language model using the weight update amount, and determine the target language model from multiple pre-trained language models. The results output module is used to control the target language model to output the hierarchical and classification results of the traffic data text.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the method as described in any one of claims 1-7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the method as described in any one of claims 1-7.