Business data processing method and related device

By performing data augmentation and smoothing on unlabeled business data, the problem of the limited number of labeled samples was solved, thereby improving the accuracy and performance of the classification model.

CN123158205APending Publication Date: 2026-11-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510669376.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In classification models that rely on a large amount of labeled business data for training, the high cost and high professional requirements of data annotation result in a limited number of labeled samples, leading to poor classification performance.

Method used

By acquiring labeled and unlabeled business data, data augmentation is performed. The initial classification model is used to classify and predict the weakly augmented target data. The data is then smoothed by combining historical data features and predicted labels to obtain training labels. The initial classification model is then trained to form the target classification model.

Benefits of technology

By effectively utilizing the training labels of unlabeled business data to supplement missing business labels, prediction errors can be reduced, and the accuracy and performance of classification models can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158205A_ABST
    Figure CN123158205A_ABST
Patent Text Reader

Abstract

This application discloses a business data processing method and related equipment. The method includes: performing different data augmentations on unlabeled business data to obtain target weakly augmented data and target strongly augmented data; smoothing the predicted labels corresponding to the target weakly augmented data based on historical data features and historical predicted labels corresponding to historical weakly augmented data, and data features corresponding to the target weakly augmented data, to obtain training labels corresponding to the target weakly augmented data; and training an initial classification model based on the predicted labels corresponding to labeled business data, the training labels corresponding to the target weakly augmented data, and the predicted labels corresponding to the target strongly augmented data to obtain a target classification model. Using this application embodiment, a high-performance classification model can be trained using a small amount of labeled business data, thereby improving the classification accuracy of business data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to business data processing methods, apparatus, readable media, devices and program products. Background Technology

[0002] In business scenarios requiring classification models, these models often rely on a large amount of labeled business data (i.e., labeled samples) for training to achieve optimal classification results. However, for scenarios with high data annotation costs and demanding professional expertise, labeling samples is difficult, resulting in a limited number of samples. Consequently, classification models trained for these scenarios often perform poorly. Therefore, how to train a high-performance classification model using a small amount of labeled business data to improve the accuracy of classifying business data is a pressing technical problem that needs to be solved. Summary of the Invention

[0003] This application provides a business data processing method, apparatus, readable medium, device, and program product, which can train a high-performance classification model using a small amount of labeled business data to improve the classification accuracy of business data.

[0004] On one hand, embodiments of this application provide a business data processing method, including:

[0005] Acquire labeled and unlabeled business data, and perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data;

[0006] The initial classification model is invoked to perform classification prediction on weakly enhanced target data, strongly enhanced target data, and labeled business data respectively, to obtain the data features and predicted labels corresponding to weakly enhanced target data, the predicted labels corresponding to strongly enhanced target data, and the predicted labels corresponding to labeled business data.

[0007] Based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, the predicted labels corresponding to the target weakly enhanced data are smoothed to obtain the training labels corresponding to the target weakly enhanced data; among them, the historical data features and historical predicted labels are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through the initial classification model.

[0008] The target classification model is obtained by training the initial classification model based on the training labels corresponding to the weakly augmented target data, the predicted labels corresponding to the strongly augmented target data, and the predicted labels corresponding to the labeled business data.

[0009] On one hand, embodiments of this application provide a business data processing apparatus, which includes an acquisition unit, a calling unit, a processing unit, and a training unit, wherein:

[0010] The acquisition unit is used to acquire labeled and unlabeled business data, and to perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data.

[0011] The calling unit is used to call the initial classification model to perform classification prediction on the target weakly enhanced data, the target strongly enhanced data, and the labeled business data respectively, and to obtain the data features and predicted labels corresponding to the target weakly enhanced data, the predicted labels corresponding to the target strongly enhanced data, and the predicted labels corresponding to the labeled business data.

[0012] The processing unit is used to smooth the predicted label corresponding to the target weakly enhanced data based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, as well as the data features corresponding to the target weakly enhanced data, to obtain the training label corresponding to the target weakly enhanced data; wherein, the historical data features and historical predicted labels are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through the initial classification model.

[0013] The training unit is used to train the initial classification model to obtain the target classification model based on the training labels corresponding to the weakly augmented target data, the predicted labels corresponding to the strongly augmented target data, and the predicted labels corresponding to the labeled business data.

[0014] In one embodiment of this application, based on the aforementioned scheme, when the processing unit smooths the predicted label corresponding to the target weakly enhanced data based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, to obtain the training label corresponding to the target weakly enhanced data, it can also be used to perform: obtaining the feature similarity between the historical data features corresponding to the historical weakly enhanced data and the data features corresponding to the target weakly enhanced data; adjusting the predicted label corresponding to the target weakly enhanced data based on the feature similarity and the historical predicted labels corresponding to the historical weakly enhanced data to obtain the training label corresponding to the target weakly enhanced data; wherein, the adjustment range of the historical predicted labels corresponding to the historical weakly enhanced data to the predicted label corresponding to the target weakly enhanced data is proportional to the feature similarity corresponding to the historical weakly enhanced data.

[0015] In one embodiment of this application, based on the aforementioned scheme, when the training unit trains the initial classification model to obtain the target classification model according to the training labels corresponding to the target weakly enhanced data, the predicted labels corresponding to the target strongly enhanced data, and the predicted labels corresponding to the labeled business data, it can specifically perform the following: obtaining an unlabeled prediction loss value based on the training labels corresponding to the target weakly enhanced data and the predicted labels corresponding to the target strongly enhanced data; obtaining a labeled prediction loss value based on the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data; obtaining a classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value; and adjusting the model parameters of the initial classification model according to the classification loss value to obtain the target classification model.

[0016] In one embodiment of this application, based on the aforementioned scheme, when the training unit obtains the classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value, it can also be used to perform the following: obtain the data features corresponding to the target strongly enhanced data obtained by classifying and predicting the target strongly enhanced data; obtain the data contrast loss value based on the training label corresponding to the target weakly enhanced data and the data features corresponding to the target strongly enhanced data; and obtain the classification loss value based on the unlabeled prediction loss value, the labeled prediction loss value and the data contrast loss value.

[0017] In one embodiment of this application, based on the aforementioned scheme, when the training unit obtains the data comparison loss value based on the training labels corresponding to the target weakly enhanced data and the data features corresponding to the target strongly enhanced data, it can further be used to perform the following: constructing a label similarity matrix based on the training labels corresponding to the target weakly enhanced data; constructing a feature similarity matrix based on the data features corresponding to the first enhanced data included in the target strongly enhanced data and the data features corresponding to the second enhanced data included in the target strongly enhanced data; wherein the first enhanced data and the second enhanced data are obtained by performing different strong enhancements on the unlabeled business data; comparing the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value.

[0018] In one embodiment of this application, the number of unlabeled service data includes multiple data sets. Based on the aforementioned scheme, when the training unit constructs a label similarity matrix based on the training labels corresponding to the target weakly augmented data, it can also specifically perform the following: constructing an initial data matrix for any unlabeled service data among the multiple unlabeled service data; wherein each element in the initial data matrix corresponds one-to-one with each unlabeled service data among the multiple unlabeled service data; filling the corresponding elements in the initial data matrix with the label similarity between the training labels of the target weakly augmented data corresponding to any unlabeled service data and the training labels of the target weakly augmented data corresponding to each unlabeled service data, to obtain the target data matrix of any unlabeled service data; and obtaining the label similarity matrix based on the target data matrices of each unlabeled service data.

[0019] In one embodiment of this application, based on the aforementioned scheme, when the training unit fills the corresponding elements in the initial data matrix with the label similarity between the training label of any unlabeled service data corresponding to the target weak augmentation data and the training label of each unlabeled service data corresponding to the target weak augmentation data, to obtain the target data matrix of any unlabeled service data, it can specifically perform the following: if the label similarity is greater than or equal to a preset similarity, then fill the label similarity into the elements corresponding to each unlabeled service data in the initial data matrix; if the label similarity is less than the preset similarity, then fill the preset value into the elements corresponding to each unlabeled service data in the initial data matrix.

[0020] In one embodiment of this application, the number of unlabeled service data includes multiple data sets. Based on the aforementioned scheme, when the training unit constructs a feature similarity matrix based on the data features corresponding to the first enhanced data included in the target strongly enhanced data and the data features corresponding to the second enhanced data included in the target strongly enhanced data, it can also specifically perform the following: constructing an initial similarity matrix for any unlabeled service data among the multiple unlabeled service data; wherein each element in the initial similarity matrix corresponds one-to-one with each unlabeled service data among the multiple unlabeled service data; filling the initial similarity matrix based on the data features of the first enhanced data corresponding to any unlabeled service data, the data features of the second enhanced data corresponding to any unlabeled service data, and the data features of the first enhanced data corresponding to other unlabeled service data among the multiple unlabeled service data to obtain a target similarity matrix for any unlabeled service data; and obtaining a feature similarity matrix based on the target similarity matrices of each unlabeled service data.

[0021] In one embodiment of this application, based on the aforementioned scheme, when the training unit fills the initial similarity matrix based on the data features of any unlabeled service data corresponding to the first enhanced data, the data features of any unlabeled service data corresponding to the second enhanced data, and the data features of other unlabeled service data corresponding to the first enhanced data among multiple unlabeled service data, to obtain the target similarity matrix of any unlabeled service data, it can specifically perform the following: filling the element in the initial similarity matrix corresponding to any unlabeled service data with the similarity between the data features of any unlabeled service data corresponding to the first enhanced data and the data features of any unlabeled service data corresponding to the second enhanced data; and filling the element in the initial similarity matrix corresponding to other unlabeled service data with the similarity between the data features of any unlabeled service data corresponding to the first enhanced data and the data features of other unlabeled service data corresponding to the first enhanced data, to obtain the target similarity matrix of any unlabeled service data.

[0022] In one embodiment of this application, based on the aforementioned scheme, when the training unit compares the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value, it can specifically perform the following: compare the similarity contained in each row of the label similarity matrix with the similarity contained in the same row of the feature similarity matrix to obtain the similarity loss value; and obtain the data comparison loss value based on multiple similarity loss values.

[0023] In one embodiment of this application, the number of unlabeled service data includes multiple types. Based on the aforementioned scheme, when the training unit obtains the unlabeled prediction loss value based on the training label corresponding to the target weakly enhanced data and the predicted label corresponding to the target strongly enhanced data, it can specifically perform the following: if the maximum probability contained in the training label of any unlabeled service data corresponding to the target weakly enhanced data is greater than or equal to the probability threshold, then any unlabeled service data is determined as the target unlabeled service data; and the label prediction loss value is calculated based on the training label of the target weakly enhanced data corresponding to the target unlabeled service data and the predicted label of the target strongly enhanced data corresponding to the target unlabeled service data.

[0024] In one embodiment of this application, based on the aforementioned scheme, when the acquisition unit performs different data enhancements on unlabeled service data to obtain target weakly enhanced data and target strongly enhanced data, it can specifically perform the following: perform weak enhancement processing on unlabeled service data to obtain target weakly enhanced data; perform strong enhancement processing on unlabeled service data to obtain target strongly enhanced data; wherein, the data transformation magnitude of the strong enhancement processing on the unlabeled service data is greater than the data transformation magnitude of the weak enhancement processing on the unlabeled service data.

[0025] In one embodiment of this application, based on the aforementioned scheme, when the acquisition unit performs strong enhancement processing on the unlabeled service data to obtain target strongly enhanced data, it can specifically perform the following: perform a first strong enhancement on the unlabeled service data to obtain first enhanced data; perform a second strong enhancement on the unlabeled service data to obtain second enhanced data; wherein the data transformation method corresponding to the second strong enhancement is different from the data transformation method corresponding to the first strong enhancement; and generate target strongly enhanced data containing the first enhanced data and the second enhanced data.

[0026] In one embodiment of this application, the number of unlabeled service data includes multiple types, and the historical data features and historical prediction labels corresponding to the historical weak enhancement data are stored in the weak enhancement database. Based on the aforementioned scheme, the processing unit can also be used to perform the following: if a training label of the target weak enhancement data corresponding to any unlabeled service data is detected, the data features and prediction labels of the target weak enhancement data corresponding to any unlabeled service data are written into the weak enhancement database.

[0027] In one embodiment of this application, based on the aforementioned scheme, when the processing unit writes the data features and predicted labels of the target weak enhancement data corresponding to any unlabeled service data into the weak enhancement database, it can specifically perform the following: if the number of weak enhancement data corresponding to the data features and predicted labels contained in the weak enhancement database reaches a preset threshold, then obtain the candidate historical weak enhancement data with the earliest writing time in the weak enhancement database; delete the historical data features and historical predicted labels corresponding to the candidate historical weak enhancement data from the weak enhancement database, so as to write the data features and predicted labels of the target weak enhancement data corresponding to any unlabeled service data into the weak enhancement database.

[0028] On one hand, embodiments of this application provide an electronic device, which includes an input interface and an output interface, and further includes:

[0029] A processor, adapted to implement one or more instructions; and,

[0030] A computer storage medium storing one or more instructions, the one or more instructions being adapted to be loaded by the processor and executed as described above for processing business data.

[0031] On the one hand, embodiments of this application provide a computer-readable medium storing computer program instructions, which, when executed by a processor, are used to perform the aforementioned business data processing method.

[0032] On one hand, embodiments of this application provide a computer program product or computer program, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, and when the computer instructions are executed by the processor, they are used to perform the above-mentioned business data processing method.

[0033] In the technical solution provided in the embodiments of this application, by training the initial classification model based on the predicted labels corresponding to labeled business data, the training labels corresponding to weakly augmented target data, and the predicted labels corresponding to strongly augmented target data, the training labels corresponding to weakly augmented target data can be effectively introduced as business labels missing in the unlabeled business data for model training. This allows the strongly augmented target data corresponding to the unlabeled business data to also participate in the training of the initial classification model as labeled business data. Furthermore, abundant labeled business data is conducive to training a classification model with better performance, thereby greatly improving the classification accuracy of the trained target classification model for business data.

[0034] Meanwhile, this embodiment obtains training labels by smoothly adjusting its own predicted labels by integrating its own data features with those of other data and predicted labels. This method effectively reduces the prediction error between the final training labels and the true labels, effectively avoiding the problem in existing solutions where over-reliance on the model's category prediction quality leads to the accumulation of prediction errors and affects model training performance. Therefore, this embodiment, through smoothing, can effectively improve the accuracy of the training labels used for model training. More accurate training labels are beneficial for subsequently training a higher-performing classification model, thereby improving the classification accuracy of the classification model for business data. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a schematic diagram of the architecture of a business data processing system provided in an embodiment of this application;

[0037] Figure 2 This is a flowchart illustrating a business data processing method provided in an embodiment of this application;

[0038] Figure 3 This is a flowchart illustrating another business data processing method provided in an embodiment of this application;

[0039] Figure 4 This is a schematic diagram of the encoder structure in a classification model provided in an embodiment of this application;

[0040] Figure 5 This is a schematic diagram of the structure of a classifier in a classification model provided in an embodiment of this application;

[0041] Figure 6 This is a data update process for a weakly enhanced database provided in an embodiment of this application;

[0042] Figure 7 This is a schematic diagram of the triggering process for a smoothing process provided in an embodiment of this application;

[0043] Figure 8 This is a schematic diagram of a data mining framework for unlabeled business data provided in an embodiment of this application;

[0044] Figure 9 This is a schematic diagram of the structure of a business data processing device provided in an embodiment of this application;

[0045] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0046] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0047] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0048] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0049] The flowcharts shown in the accompanying diagrams are merely illustrative and do not necessarily include all content and operations, nor do they necessarily have to be executed in the described order. For example, some operations may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0050] It should also be noted that "multiple" as mentioned in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0051] In business scenarios that require the application of classification models, the classification models used need to be trained on a large amount of labeled business data (i.e., labeled samples) in order to achieve better classification results.

[0052] However, for business scenarios such as medical diagnostic assistance, financial risk control, and geographic remote sensing information identification, data annotation is costly and requires a high level of expertise, resulting in a limited number of labeled samples. Classification models trained on a limited number of labeled samples often perform poorly.

[0053] Based on this, this application provides a business data processing scheme. After acquiring labeled and unlabeled business data, the scheme further acquires target weakly augmented data and target strongly augmented data corresponding to the unlabeled business data. Subsequently, during model training, an initial classification model is first invoked to classify and predict the target weakly augmented data, obtaining corresponding data features and predicted labels. Based on historical data features and historical predicted labels corresponding to historical weakly augmented data, as well as the data features corresponding to the target weakly augmented data, the predicted labels corresponding to the target weakly augmented data are smoothed to obtain training labels corresponding to the target weakly augmented data. Finally, based on the predicted labels of the labeled business data, the training labels corresponding to the target weakly augmented data, and the training labels corresponding to the target strongly augmented data, the initial classification model is trained to obtain a target classification model, which is then used to classify and predict the business data to be classified.

[0054] Specifically, applying different data augmentations to unlabeled business data yields target weakly augmented data and target strongly augmented data corresponding to the unlabeled business data. The historical data features and historical predicted labels corresponding to the historical weakly augmented data are obtained by classifying and predicting the historical weakly augmented data corresponding to the historical unlabeled business data using an initial classification model.

[0055] It is clear that the target classification model in this solution is trained using predicted labels corresponding to labeled business data, training labels corresponding to weakly augmented target data, and predicted labels corresponding to strongly augmented target data. The training labels corresponding to the weakly augmented target data can be used as the missing business labels in the unlabeled business data for model training. Therefore, the training labels corresponding to the weakly augmented target data effectively supplement the missing business labels in the unlabeled business data, allowing the strongly augmented target data corresponding to the unlabeled business data to participate in the initial classification model training as labeled business data. Furthermore, the classification model trained on abundant labeled business data exhibits superior performance, significantly improving the accuracy of the classification model in classifying business data.

[0056] Furthermore, compared to existing solutions that directly use the predicted labels obtained from classifying unlabeled business data as the missing business labels for model training, this solution uses training labels based on historical data features and predicted labels corresponding to historical weakly augmented data, as well as data features corresponding to the target weakly augmented data, and then smooths the predicted labels corresponding to the target weakly augmented data. This method of integrating its own data features with those of other data and predicted labels to smooth its own predicted labels effectively reduces the prediction error of the predicted labels corresponding to the target weakly augmented data. It avoids the problem in existing solutions where over-reliance on the model's category prediction quality leads to the accumulation of prediction errors for unlabeled samples, thus affecting the model training effect. Therefore, this solution, by smoothing the predicted labels corresponding to the target weakly augmented data, can effectively improve the accuracy of the training labels used for model training, which is beneficial for training a higher-performing classification model and ultimately improving the classification accuracy of the business data.

[0057] Based on the above-described business data processing method, this application provides a business data processing system, which can be found in [reference needed]. Figure 1 , Figure 1 The business data processing system shown may include terminal devices 101 and servers 102. The number of terminal devices 101 may include at least one, and the number of servers 102 may include at least one. A communication connection is established between any terminal device and any server. Terminal devices 101 may include any one or more of the following: sensors, smartphones, tablets, laptops, desktop computers, smart in-vehicle devices, and smart wearable devices. Terminal devices 101 may run browser access applications, and may also run various other applications (APPs), such as shopping clients, payment clients, game clients, virtual interaction clients, multimedia playback clients, social clients, information flow clients, etc.

[0058] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminal device 101 and server 102 can communicate directly or indirectly via wired or wireless communication; this application does not impose any restrictions on this.

[0059] In one embodiment, the above-described business data processing method may be performed solely by... Figure 1 The server 102 in the business data processing system described above executes the following process: Server 102 can acquire labeled and unlabeled business data, and further acquire the target weakly augmented data and target strongly augmented data corresponding to the unlabeled business data; then, server 102 can call the initial classification model to perform classification prediction on the target weakly augmented data, target strongly augmented data, and labeled business data respectively, obtaining the data features and predicted labels corresponding to the target weakly augmented data, the predicted labels corresponding to the target strongly augmented data, and the predicted labels corresponding to the labeled business data; based on the historical data features and historical predicted labels corresponding to the historical weakly augmented data, and the data features corresponding to the target weakly augmented data, the predicted labels corresponding to the target weakly augmented data are smoothed to obtain the training labels corresponding to the target weakly augmented data; finally, server 102 can train the initial classification model based on the training labels corresponding to the target weakly augmented data, the predicted labels corresponding to the target strongly augmented data, and the predicted labels corresponding to the labeled business data to obtain the target classification model.

[0060] Alternatively, the above-mentioned business data processing method can also be solely provided by... Figure 1 The terminal device 101 in the business data processing system shown executes the process. The specific execution process can be found in the specific execution process of the server 102 mentioned above, and will not be repeated here.

[0061] In another embodiment, the above-described business data processing method can be provided by Figure 1 The terminal device 101 and server 102 in the business data processing system shown jointly execute the following process: Server 102 can acquire labeled and unlabeled business data, and further acquire the target weakly augmented data and target strongly augmented data corresponding to the unlabeled business data; then, server 102 can call the initial classification model to perform classification prediction on the target weakly augmented data, target strongly augmented data, and labeled business data respectively, obtaining the data features and predicted labels corresponding to the target weakly augmented data, the predicted labels corresponding to the target strongly augmented data, and the predicted labels corresponding to the labeled business data. Based on the historical data features and historical predicted labels corresponding to the historical weakly augmented data, and the data features corresponding to the target weakly augmented data, the predicted labels corresponding to the target weakly augmented data are smoothed to obtain the training labels corresponding to the target weakly augmented data; finally, server 102 can train the initial classification model based on the training labels corresponding to the target weakly augmented data, the predicted labels corresponding to the target strongly augmented data, and the predicted labels corresponding to the labeled business data to obtain the target classification model.

[0062] Optionally, if the terminal device 101 detects business data to be classified, it can send the business data to be classified to the server 102; the server 102 receives the business data to be classified, calls the target classification model to perform classification prediction on the business data to be classified, obtains the business label of the business data to be classified, and sends the business label of the business data to the terminal device 101.

[0063] Optionally, the tagged service data can be obtained by labeling service data through terminal device 101. Terminal device 101 can then send the tagged service data to server 102, so that server 102 can obtain the tagged service data.

[0064] It should be noted that the embodiments of this application can be applied to various application scenarios that require data classification, including but not limited to medical, smart e-commerce, smart logistics, smart transportation and other business scenarios that may require data classification in the scenario, and are not limited thereto.

[0065] For example, the embodiments of this application can be applied to electronic payment scenarios. Electronic payment involves a large number of merchants, so a classification model is needed to identify merchant categories. In the initial stage, the categories of merchant data can be manually labeled to obtain a small amount of labeled merchant data (i.e., labeled business data). Subsequently, the above-mentioned scheme can be adopted to train a classification model for identifying merchant categories based on labeled merchant data and unlabeled merchant data (i.e., unlabeled business data).

[0066] For example, the embodiments of this application can be applied to medical diagnostic assistance scenarios, in which a classification model is needed to identify disease types in medical images. Initially, professional doctors can label the disease types in medical images to obtain a small number of labeled medical images (i.e., labeled business data). Subsequently, the above-mentioned scheme can be adopted to train a classification model for identifying disease types based on labeled and unlabeled medical images (i.e., unlabeled business data).

[0067] Meanwhile, in specific embodiments of this application, if business data, business tags, or other data or information involve objects, when the embodiments of this application are applied to specific products or technologies, permission or consent from the objects is required, and the collection, use, and processing of related data or information must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0068] Based on the above-described business data processing scheme and system, this application provides a business data processing method. See also... Figure 2 This is a flowchart illustrating a business data processing method provided in an embodiment of this application. Figure 2 The business data processing method shown can be derived from... Figure 1 The method is executed by a server or terminal device in the business data processing system shown. In this embodiment, the method is described using the example of it being executed by a server.

[0069] in, Figure 2 The business data processing method shown may include steps S201 to S204:

[0070] S201: Obtain labeled and unlabeled business data, and perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data.

[0071] In this application embodiment, business data may include data generated in a business scenario. Business data may be unimodal data or multimodal data, without limitation. Here, modality refers to data type, such as text, image, audio, etc. Unimodal data refers to data containing only a single data type, such as text data containing only text. Multimodal data refers to data containing at least two data types, such as video data (containing images, text, and audio).

[0072] Labeled business data refers to business data containing business labels, also known as labeled samples in model training. Unlabeled business data refers to business data without business labels, also known as unlabeled samples in model training. Business labels represent the data category of the business data. The business labels in labeled business data can be manually annotated. For example, in a text sentiment classification scenario, the data categories of business data could include happy, angry, sad, calm, and grief-stricken. In practice, business labels can be presented using a probability distribution, where the probability of the data category represented by the business label is 1, and the probability of other preset categories is 0.

[0073] Data augmentation is a method of generating additional samples for model training by making various modifications to existing samples. Data augmentation can effectively increase the diversity of training samples, enabling the model to learn "transformation invariance," that is, the model's ability to recognize that two training samples, even after different augmentations, still belong to the same training sample. This improves the model's robustness, generalization ability, and adaptability to potentially mutated data in semi-supervised learning tasks. Semi-supervised learning, in particular, is a method of training a model using a small number of labeled samples and a large number of unlabeled samples.

[0074] In this embodiment, different data enhancements can include weak enhancements and strong enhancements. Weak enhancement processing can be performed on unlabeled service data to obtain target weakly enhanced data, and strong enhancement processing can be performed on unlabeled service data to obtain target strongly enhanced data. It should be noted that this embodiment does not limit the number of times weak enhancement processing or strong enhancement processing is performed on unlabeled service data. The same unlabeled service data can also undergo multiple identical or different weak enhancements, and the same unlabeled service data can also undergo multiple identical or different strong enhancements.

[0075] Among them, strong enhancement processes involve greater data transformations on unlabeled business data than weak enhancement processes. Specifically, weak enhancements mainly involve simpler and smaller transformations that typically do not significantly alter the samples; for example, flipping, cropping, rotating, or scaling image samples, and synonym replacement or random insertion for text samples. Strong enhancements, on the other hand, involve more diverse and larger-scale sample transformations, sometimes resulting in significant changes to the samples; for example, erasing, adding noise, or randomly occluding image samples, and back translation or sentence mixing for text samples.

[0076] In some embodiments, the specific process of strong enhancement processing may include: performing a first strong enhancement on unlabeled service data to obtain first enhanced data; performing a second strong enhancement on unlabeled service data to obtain second enhanced data; and generating target strongly enhanced data containing the first enhanced data and the second enhanced data.

[0077] The data transformation method corresponding to the second strongest enhancement is different from that corresponding to the first strongest enhancement. For example, if the data transformation method corresponding to the first strongest enhancement is to add noise to the image, then the data transformation method corresponding to the second strongest enhancement can be random occlusion, which is a different data transformation method from that corresponding to the first strongest enhancement.

[0078] S202, invoke the initial classification model to perform classification prediction on the target weakly enhanced data, target strongly enhanced data, and labeled business data respectively, and obtain the data features and predicted labels corresponding to the target weakly enhanced data, the predicted labels corresponding to the target strongly enhanced data, and the predicted labels corresponding to the labeled business data.

[0079] In this embodiment, the predicted label corresponding to the weakly augmented target data may specifically include: the probability that the data category of the unlabeled business data corresponding to the weakly augmented target data belongs to each preset category. The preset categories can be manually set or set by the terminal device or server in the aforementioned business data processing system, and are not limited here. Specifically, the preset categories can be obtained based on manually labeled data categories, and the preset categories can be different in different business scenarios. The predicted labels corresponding to the strongly augmented target data and the predicted labels corresponding to labeled business data are similarly described and will not be elaborated here.

[0080] In one embodiment, the specific process of the initial classification model classifying and predicting target weakly augmented data may include: calling the initial classification model to extract features from the target weakly augmented data to obtain the data features corresponding to the target weakly augmented data; and classifying the data features of the target weakly augmented data to obtain the predicted label corresponding to the target weakly augmented data. The classification and prediction process for target strongly augmented data and for labeled business data is similar and will not be elaborated here.

[0081] S203. Based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, the predicted labels corresponding to the target weakly enhanced data are smoothed to obtain the training labels corresponding to the target weakly enhanced data.

[0082] In this embodiment of the application, the historical data features and historical predicted labels corresponding to the historical weakly enhanced data are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through an initial classification model. The historical weakly enhanced data is obtained by weakly enhancing the historical unlabeled business data. The historical unlabeled business data can be the unlabeled business data before the current unlabeled business data in step S201.

[0083] In one embodiment, the specific process of smoothing may include: obtaining the feature similarity between the historical data features corresponding to the historical weak augmentation data and the data features corresponding to the target weak augmentation data; if the feature similarity is greater than or equal to the similarity threshold, then obtaining the training label of the target weak augmentation data based on the historical predicted label of the historical weak augmentation data and the predicted label of the target weak augmentation data.

[0084] The similarity threshold can be set manually or by the terminal devices or servers in the aforementioned business data processing system; no limitation is made here.

[0085] Optionally, the average or weighted average of the historical predicted labels of the historical weak augmentation data and the predicted labels of the target weak augmentation data can be calculated, and the calculated average or weighted average can be used as the training label of the target weak augmentation data.

[0086] Specifically, data features are used to characterize the features of business data. Similar data features indicate similar business data; correspondingly, similar business data are also highly likely to belong to the same data category, meaning the probability distribution of similar business data across various preset categories should also be similar. Optionally, when setting the similarity threshold, it can be set relatively high, such as 90%, 0.95, or 0.98. This allows for smoothing the predicted label of the target weakly augmented data using historical predicted labels corresponding to historical weakly augmented data that are highly similar to the target weakly augmented data. This effectively reduces the prediction error of the target weakly augmented data's predicted label while preventing the historical predicted labels of historical weakly augmented data from introducing new errors into the target weakly augmented data's predicted label during the smoothing process, thus improving the accuracy of the training labels.

[0087] In another embodiment, the smoothing process may include: first, obtaining the feature similarity between the historical data features corresponding to the historical weak enhancement data and the data features corresponding to the target weak enhancement data; then, adjusting the predicted label corresponding to the target weak enhancement data based on the feature similarity and the predicted label corresponding to the historical weak enhancement data to obtain the training label corresponding to the target weak enhancement data.

[0088] Among them, the adjustment range of the historical predicted labels corresponding to the historical weakly enhanced data to the predicted labels corresponding to the target weakly enhanced data is directly proportional to the feature similarity corresponding to the historical weakly enhanced data.

[0089] As mentioned above, the probability distribution of similar business data in each preset category should also be similar. Therefore, the adjustment range of the prediction label corresponding to the target weakly enhanced data can be increased accordingly for historical weakly enhanced data with high similarity to the target weakly enhanced data features.

[0090] In this way, the process of adjusting the predicted labels of the target weakly augmented data allows for reasonable reference to the predicted labels of historical weakly augmented data. This effectively reduces the prediction error of the target weakly augmented data's predicted labels, resulting in more accurate training labels, while avoiding the introduction of new errors due to over-referencing historical predicted labels of dissimilar historical weakly augmented data. Therefore, this approach effectively improves the accuracy of training labels, which is beneficial for training a higher-performing classification model and ultimately enhancing the model's accuracy in classifying business data.

[0091] S204. Based on the training labels corresponding to the weakly enhanced target data, the predicted labels corresponding to the strongly enhanced target data, and the predicted labels corresponding to the labeled business data, the initial classification model is trained to obtain the target classification model.

[0092] In this embodiment, classification prediction can be performed on the business data to be classified based on a target classification model. Here, the business data to be classified refers to business data whose data category needs to be clearly defined. By performing classification prediction on the business data to be classified based on the target classification model, the predicted label of the business data to be classified can be obtained.

[0093] Optionally, the preset category corresponding to the highest probability among the predicted labels of the business data to be classified can be used as the data category of the business data to be classified. Optionally, the data category of the business data to be classified can also be obtained based on the preset category corresponding to the probability greater than the preset probability among the predicted labels of the business data to be classified; this is not limited here.

[0094] In this embodiment of the application, the specific training process of the target classification model may include: calculating the classification loss value based on the predicted label corresponding to the labeled business data, the training label corresponding to the weakly enhanced target data, and the predicted label corresponding to the strongly enhanced target data; and then adjusting the model parameters of the initial classification model based on the classification loss value to obtain the target classification model.

[0095] In one embodiment, the process of calculating the classification loss value may include: obtaining an unlabeled prediction loss value based on the training labels corresponding to the weakly augmented target data and the predicted labels corresponding to the strongly augmented target data; obtaining a labeled prediction loss value based on the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data; and finally, obtaining a classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value, and adjusting the model parameters of the initial classification model based on the classification loss value to obtain the target classification model.

[0096] The labeled prediction loss can be obtained by calculating the loss difference between the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data. For example, the cross-entropy loss between the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data can be calculated, and then the calculated cross-entropy loss value can be used as the labeled prediction loss value. Optionally, other multi-class loss functions can also be used to calculate the loss difference between the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data; this is not limited here.

[0097] Alternatively, the unlabeled prediction loss can be obtained by calculating the loss difference between the training labels corresponding to the weakly augmented data and the predicted labels corresponding to the strongly augmented data. For example, the cross-entropy loss between the training labels corresponding to the weakly augmented data and the predicted labels corresponding to the strongly augmented data can be calculated, and then the calculated cross-entropy loss can be used as the labeled prediction loss. Optionally, other multi-class loss functions can also be used to calculate the loss difference between the training labels corresponding to the weakly augmented data and the predicted labels corresponding to the strongly augmented data; this is not limited here.

[0098] Specifically, both weakly augmented and strongly augmented target data originate from unlabeled business data. Therefore, the training labels of the weakly augmented target data can serve as the missing business labels for the unlabeled business data. By obtaining the unlabeled prediction loss value as described above, the strongly augmented target data corresponding to the unlabeled business data can also participate in the initial classification model training as labeled business data. This effectively increases the number of labeled samples, and abundant labeled business data is beneficial for training a higher-performing classification model, thereby significantly improving the classification accuracy of the business data. Furthermore, by introducing strongly augmented target data and obtaining the unlabeled prediction loss value based on the prediction labels corresponding to the strongly augmented target data, this solution enhances the diversity of business data, thereby avoiding overfitting during model training and further improving the performance of the trained classification model, ultimately enhancing its classification accuracy for the business data.

[0099] In this embodiment, by training the initial classification model based on the predicted labels corresponding to labeled business data, the training labels corresponding to weakly augmented target data, and the predicted labels corresponding to strongly augmented target data, the training labels corresponding to weakly augmented target data can be effectively introduced as business labels missing from unlabeled business data for model training. This allows strongly augmented target data corresponding to unlabeled business data to also participate in the training of the initial classification model as labeled business data. Furthermore, abundant labeled business data is beneficial for training a classification model with better performance, thereby greatly improving the accuracy of the trained target classification model in classifying business data.

[0100] Furthermore, the training labels in this embodiment are obtained by smoothing the predicted labels corresponding to the target weakly enhanced data, based on historical data features and historical predicted labels corresponding to historical weakly enhanced data, and data features corresponding to the target weakly enhanced data. This method of smoothing the predicted labels by combining its own data features with data features and predicted labels from other data can effectively reduce the prediction error of the predicted labels corresponding to the target weakly enhanced data. This avoids the problem in existing solutions where over-reliance on the model's category prediction quality leads to the accumulation of prediction errors for unlabeled samples, thus affecting the model training effect. Therefore, this embodiment, through smoothing, can effectively improve the accuracy of the training labels ultimately used for model training. More accurate training labels are beneficial for subsequently training a higher-performing classification model, thereby improving the classification accuracy of the classification model for business data.

[0101] Based on the above business data processing scheme and system, this application provides another business data processing method. See also... Figure 3 This is a flowchart illustrating another business data processing method provided in an embodiment of this application. Figure 3 The business data processing method shown can be derived from... Figure 1 The method is executed by a server or terminal device in the business data processing system shown. In this embodiment, the method is described using the example of execution by a server. Figure 2 The method shown has been extended.

[0102] in, Figure 3 The business data processing method shown may include the following steps S301 to S308:

[0103] S301: Obtain labeled and unlabeled business data, and perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data.

[0104] In the embodiments of this application, the specific implementation of step S301 can be found in step S201, and will not be repeated here.

[0105] S302, invoke the initial classification model to perform classification prediction on the target weakly enhanced data, the target strongly enhanced data, and the labeled business data respectively, and obtain the data features and predicted labels corresponding to the target weakly enhanced data, the target strongly enhanced data, and the predicted labels corresponding to the labeled business data.

[0106] In this embodiment of the application, the specific process of the initial classification model classifying and predicting each piece of data (including weakly enhanced target data or strongly enhanced target data) may include: encoding each piece of data to obtain the encoded features corresponding to each piece of data; performing feature mapping on the encoded features corresponding to each piece of data to obtain the data features corresponding to each piece of data; and performing classification processing on the encoded features corresponding to each piece of data to obtain the predicted labels corresponding to each piece of data.

[0107] The feature dimension of each data feature is different from the feature dimension of the corresponding coding feature. The feature dimension of each data feature can be greater than or less than the feature dimension of the corresponding coding feature, which is not limited here.

[0108] In a specific implementation, the initial classification model can include an encoder, a mapper, and a classifier. The encoder is used to extract encoded features; the classifier receives the encoded features extracted by the feature encoder and maps them to a preset category space; and the mapper receives the encoded features extracted by the feature encoder and maps them to another space with a lower or higher feature dimension to obtain data features.

[0109] Optionally, the specific process of the initial classification model to classify and predict labeled business data may include: encoding the business data contained in the labeled business data to obtain the encoded features corresponding to the labeled business data; and classifying the encoded features corresponding to the labeled business data to obtain the predicted labels corresponding to each data point.

[0110] For specific implementation details, please refer to the appendix. Figure 4 This diagram illustrates the structure of an encoder in a classification model. When the business data generated in a business scenario is all text, a suitable encoder can be selected, such as... Figure 4 The encoder of the structure serves as the encoder in the classification model. For example... Figure 4 As shown, the encoder 401 includes a multi-head attention layer 402, an addition and normalization layer 403, a fully connected layer 404, and an addition and normalization layer 405 connected in sequence; wherein, the addition and normalization layer 402 has a skip connection with the input end of the multi-head attention layer 401, and the addition and normalization layer 404 has a skip connection with the fully connected layer 403.

[0111] like Figure 4 As shown, the text input to the classification model is processed by the word embedding transformation module 406 to obtain the text's embedding vector (including word embedding vector, segment embedding vector, and position embedding vector). Then, the text's embedding vector is input to the encoder 401 so that the encoder 401 performs feature encoding on the text's embedding vector to obtain the text's feature vector (i.e., encoded features) in the high-dimensional space.

[0112] Optionally, the classification model may contain multiple encoders, with each encoder connected in sequence, and the input of the current encoder can be the output of the previous encoder.

[0113] It should be noted that, Figure 4 This encoder structure is only applicable when the samples in the business scenario involve text. When the business data generated in the scenario involves other modalities, only the encoder for the corresponding modality needs to be selected. For example, a Multi-Layer Perceptron (MLP) can be selected as the encoder for the numerical modality, and a Residual Network (ResNet) as the encoder for the image modality. Optionally, for business scenarios involving multimodal business data, the outputs of multiple single-modal encoders can be concatenated to form the corresponding multimodal encoder, thereby obtaining the encoded features corresponding to the multimodal business data.

[0114] In addition, please see the appendix. Figure 5 This illustrates a schematic diagram of the classifier structure in a classification model. For example... Figure 5 As shown, the classification model contains an input layer 501, a hidden layer 502, and an activation function layer 503; the activation function layer 503 contains the output layer 504 of the classifier. In practical applications, the activation function in the activation function layer 503 can specifically be softmax (an activation function commonly used in multi-class classification problems).

[0115] Specifically, in the classification model, after the encoder inputs the encoded features into the input layer 501, the input layer 501 inputs the encoded features into the hidden layer 502. The hidden layer 502 performs a nonlinear transformation on the encoded features to map the high-dimensional encoded features into a space where the feature dimension is equal to the number of preset categories. Finally, the feature vector obtained by the nonlinear transformation is processed by the activation function layer 503 to obtain the prediction probability for each preset category. The prediction probability of each preset category is then output by the output layer 504, thereby obtaining the predicted label.

[0116] Finally, in the classification model, the mapper is also connected to the encoder's output to receive the encoded features extracted by the encoder. The mapper maps the encoded features to another low-dimensional space to further extract feature representations of the business data. In practical applications, an MLP can be used as the mapper, and its structure is similar to... Figure 5 The classifier shown has a similar structure, but an additional activation function can be added after each hidden layer, and softmax can be discarded.

[0117] S303, based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, the predicted labels corresponding to the target weakly enhanced data are smoothed to obtain the training labels corresponding to the target weakly enhanced data.

[0118] In the embodiments of this application, the specific implementation of step S303 can be found in step S203, and will not be repeated here.

[0119] In one embodiment, the data features and predicted labels corresponding to historical weak augmentation data are stored in a weak augmentation database, and the number of unlabeled business data can be multiple. Therefore, if a training label corresponding to the target weak augmentation data for any unlabeled business data is detected, the data features and predicted labels corresponding to the target weak augmentation data for any unlabeled business data can be written into the weak augmentation database as historical data features and historical predicted labels corresponding to historical weak augmentation data.

[0120] Specifically, model training usually involves multiple rounds of training. In each round of training, the model parameters of the initial classification model are updated to obtain the updated classification model. The updated classification model can then be used as the initial classification model for the next round of training until the updated classification model obtained in the last round of training is obtained, and the updated classification model corresponding to the last round of training is used as the target classification model.

[0121] Therefore, after each training round, the model parameters of the initial classification model will be updated, and correspondingly, the model performance of the initial classification model will be updated after each training round. Thus, the latest obtained data features and predicted labels can more accurately reflect the current model performance of the initial classification model. Therefore, in this embodiment, after smoothing the current unlabeled business data (i.e., any unlabeled business data) (i.e., detecting the corresponding training label), the data features and predicted labels of the corresponding target weak augmentation data are written into the weak augmentation database. This allows the data to be smoothed subsequently based on the latest obtained data features and predicted labels. This makes the smoothing process more suitable for the current model performance of the initial classification model, making the smoothing process more consistent with the current state of the initial classification model, which is conducive to further improving the accuracy of the training labels obtained through smoothing.

[0122] Optionally, the storage area in the weak enhancement database is limited. Therefore, if the number of weak enhancement data corresponding to the data features and prediction labels contained in the weak enhancement database reaches a preset threshold, the earliest written candidate historical weak enhancement data in the weak enhancement database can be obtained. Then, the historical data features and historical prediction labels corresponding to the candidate historical weak enhancement data are deleted from the weak enhancement database so that the data features and prediction labels of the target weak enhancement data corresponding to any unlabeled business data can be written into the weak enhancement database.

[0123] The preset threshold can be set manually or by the terminal equipment or server in the aforementioned business data processing system; no limitation is made here.

[0124] Specifically, the accuracy of data features and predicted labels obtained by training an early initial classification model is definitely lower than the accuracy of data features and predicted labels obtained by training an early initial classification model. Therefore, this embodiment achieves a first-in, first-out (FIFO) system for data features and predicted labels by deleting the historical data features and predicted labels corresponding to the earliest candidate historical weak augmentation data and then writing in the latest data features and predicted labels. This timely updates the weak augmentation database, improving the accuracy of the data features and predicted labels stored in the database, thus facilitating better smoothing and obtaining more accurate training labels.

[0125] For specific implementation details, please refer to the appendix. Figure 6 This illustrates a data update process for a weakly augmented database. A preset threshold of K, where K is a positive integer, can be set. For example... Figure 6 As shown, the weak augmentation database 601 already contains K historical weak augmentation data points, each corresponding to a predicted label and data feature; among them, the historical predicted labels and historical data features corresponding to each historical weak augmentation data point are... Figure 6 The two different colored spheres are used to represent this, and will not be elaborated further.

[0126] When the predicted label and data features of the target weakly augmented data corresponding to the b-th unlabeled business data need to be written into the weakly augmented database 601, such as Figure 6 As shown, the historical predicted label and historical data features corresponding to the first historical weakly enhanced data with the earliest writing time need to be written from the weakly enhanced database 601; where b is a positive integer. Then, the predicted label and data features of the target weakly enhanced data corresponding to the b-th unlabeled business data are written into the weakly enhanced database 601.

[0127] Optionally, considering that the number of samples corresponding to the data features and predicted labels stored in the weak augmentation database is relatively small, there may be a situation where the predicted labels of the target weak augmentation data can only be smoothed based on the historical data features and historical predicted labels corresponding to historical weak augmentation data with low feature similarity to the target weak augmentation data, thereby increasing the label error.

[0128] Therefore, it can be set that if the number of weakly enhanced data corresponding to the data features and predicted labels stored in the weakly enhanced database reaches a specified number, then step S303 will be triggered. The specified number can be manually set, or it can be set by the terminal device or server in the aforementioned business data processing system; this is not limited here. The specified number can be the same as or different from a preset threshold; this is not limited here either.

[0129] Specifically, by setting a specified number of weakly augmented data points in the weakly augmented database before triggering smoothing, the problem of increased label error caused by smoothing predicted labels when the data in the weakly augmented database is insufficient can be effectively avoided. Therefore, this embodiment can effectively ensure the accuracy of the training labels obtained through smoothing, which is conducive to subsequent training to obtain a better-performing classification model and improve the classification accuracy of business data.

[0130] For specific implementation details, please refer to the appendix. Figure 7 This diagram illustrates a triggering process for smoothing. A specified number, K, can be set to be the same as a preset threshold. Figure 7 As shown, at the start of model training, the weak augmentation database 601 contains no data. In the early stages of model training, if the data features and predicted labels of any unlabeled business data corresponding to the target weak augmentation data are detected, these data features and predicted labels can be written into the weak augmentation database 601.

[0131] After that, as Figure 7 As shown, if the number of weakly enhanced data corresponding to the data features and predicted labels stored in the weakly enhanced database 601 reaches K, then the relevant steps of smoothing processing can be triggered.

[0132] S304. Based on the business labels contained in the labeled business data and the prediction labels corresponding to the labeled business data, the labeled prediction loss value is obtained.

[0133] In the embodiments of this application, the specific implementation of step S305 can be found in step S204 regarding the specific process of obtaining the labeled prediction loss value, which will not be repeated here.

[0134] In practice, for each round of training of the initial classification model, the training sample set may include B labeled business data. and μB of unlabeled business data Where μ, B, and b are positive integers, b is less than or equal to μB, and y b x represents the business label contained in the b-th labeled business data. b y represents the business data contained in the b-th labeled business data. b It is business data x b The number of unlabeled business data is μ times that of labeled business data.

[0135] The formula for calculating the labeled prediction loss value during each training round is shown in (1-1):

[0136]

[0137] Among them, L x The label prediction loss value is represented; h represents the classifier in the initial classification model corresponding to this round of training; f represents the encoder in the initial classification model corresponding to this round of training; hof(x b Then x represents b The output result obtained after successive processing by the encoder and classifier (i.e., hof), i.e., x b The corresponding predicted label contains x b The probability that a data category belongs to each preset category. H is the cross-entropy loss function.

[0138] S305. Based on the training labels corresponding to the weakly enhanced target data and the predicted labels corresponding to the strongly enhanced target data, the unlabeled prediction loss value is obtained.

[0139] In the embodiments of this application, the specific implementation of step S303 can be found in step S204 regarding the specific process of obtaining the unlabeled prediction loss value, which will not be repeated here.

[0140] In one embodiment, the number of unlabeled service data may include multiple data sets. The process of obtaining the unlabeled prediction loss value may specifically include: if the maximum probability contained in the training label of the target weak augmentation data corresponding to any unlabeled service data is greater than or equal to a probability threshold, then any unlabeled service data is determined as the target unlabeled service data; then, based on the training label of the target weak augmentation data corresponding to the target unlabeled service data and the predicted label of the target strong augmentation data corresponding to the target unlabeled service data, the unlabeled prediction loss value is calculated.

[0141] The probability threshold can be set manually or by the terminal devices or servers in the aforementioned business data processing system; no limitation is made here. To select training labels with high confidence for model training, the probability threshold can be set relatively high, such as 0.9 or 0.95.

[0142] Furthermore, the unlabeled prediction loss value can be obtained by calculating the loss difference between the training label of the target weakly augmented data corresponding to the target unlabeled service data and the predicted label of the target strongly augmented data corresponding to the target unlabeled service data. The specific calculation method for the loss difference between labels can be found in step S204, and will not be elaborated here.

[0143] Specifically, if the maximum probability in the training labels is relatively high, it indicates that the model's prediction results are relatively certain, and the training labels have high reliability. Therefore, this embodiment can select training labels with high confidence for subsequent model training by judging whether the maximum probability in the training labels is greater than or equal to a probability threshold. This avoids using low-quality labels for model training, thereby further improving the accuracy and reliability of the final training labels used for model training. More accurate and reliable training labels are conducive to training a better-performing classification model, which in turn helps to further improve the classification accuracy of the classification model for business data.

[0144] In the specific implementation, following the example in step S304, the formula (1-2) for calculating the unlabeled prediction loss is as follows:

[0145]

[0146] in, Unlabeled prediction loss; τ q represents the probability threshold, which is a hyperparameter in model training (a parameter that needs to be pre-set and remains unchanged during training); b This represents the training label for the target weak augmentation data corresponding to the b-th unlabeled business data in the sample set of this training round; maxq b For training labels q b The maximum probability contained in it; I(maxq) b ≥τ) means that only training labels with the highest probability greater than or equal to the probability threshold are selected for calculation.

[0147] And strong enhancement (u b ) represents the strongly enhanced data obtained by strongly enhancing the b-th unlabeled business data; then, hof(strong enhancement(u) b )) represents the predicted label of the strongly enhanced data corresponding to the b-th unlabeled business data.

[0148] S306. Based on the training labels corresponding to the weakly enhanced target data and the data features corresponding to the strongly enhanced target data, the data comparison loss value is obtained.

[0149] In this embodiment of the application, the specific process of obtaining the data comparison loss value may include: constructing a label similarity matrix based on the training labels corresponding to the target weakly enhanced data; and constructing a feature similarity matrix based on the data features corresponding to the first enhanced data contained in the target strongly enhanced data and the data features corresponding to the second enhanced data contained in the target strongly enhanced data; and then comparing the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value.

[0150] The first enhanced data and the second enhanced data are obtained by performing different strong enhancements on the unlabeled business data. Specifically, performing one strong enhancement on the unlabeled business data yields the first enhanced data, and performing another strong enhancement on the unlabeled business data yields the second enhanced data.

[0151] In one embodiment, the specific construction process of the label similarity matrix may include: constructing an initial data matrix for any unlabeled business data from multiple unlabeled business data sets; wherein each element in the initial data matrix corresponds one-to-one with each unlabeled business data set in the multiple unlabeled business data sets. Then, the label similarity between the training labels of the target weak augmentation data corresponding to any unlabeled business data set and the training labels of the target weak augmentation data corresponding to each unlabeled business data set is used to fill the corresponding elements in the initial data matrix to obtain the target data matrix for any unlabeled business data set; finally, based on the target data matrices of each unlabeled business data set, the label similarity matrix is ​​obtained.

[0152] The initial data matrix can be a row vector, meaning it can be a 1×n matrix with 1 row and n columns, where n is the same as the number of unlabeled business data items. Alternatively, the initial data matrix can be a column vector, meaning it can be an n×1 matrix with n rows and 1 column.

[0153] Therefore, the specific method for obtaining the label similarity matrix based on each target data matrix can include: concatenating the target data matrices corresponding to multiple unlabeled business data to obtain the label similarity matrix. The label similarity matrix is ​​an n×n matrix. Specifically, the matrix concatenation can be performed by stacking the target data matrices in sequence. If the target data matrix is ​​a row vector, this process can be called vertical stacking of row vectors or row concatenation of matrices; if the target data matrix is ​​a column vector, this process can be called horizontal stacking of column vectors or column concatenation of matrices.

[0154] Optionally, the specific process of filling the label similarity into the initial data matrix may include: if the label similarity is greater than or equal to the preset similarity, then fill the label similarity into the elements corresponding to each unlabeled business data in the initial data matrix; if the label similarity is less than the preset similarity, then fill the preset value into the elements corresponding to each unlabeled business data in the initial data matrix.

[0155] The preset similarity and preset values ​​can be set manually or by the terminal devices or servers in the aforementioned business data processing system, and are not limited here.

[0156] In practice, a preset value of 0 can be set. Continuing with the example above, the formula (1-3) for constructing the tag similarity matrix is ​​as follows:

[0157]

[0158] in, This represents the element value in the b-th row and j-th column of the label similarity matrix. The label similarity matrix is ​​a μB × μB matrix, and each row in the label similarity matrix corresponds to the target data matrix for each unlabeled business data; T is a preset value; q j This represents the training label for the target weak augmentation data corresponding to the j-th unlabeled business data in the sample set of this round of training.

[0159] When b = j, the training label q corresponding to the unlabeled business data itself is calculated. b With q b The similarity between them is 1; when b≠j and q b ·q j When ≥T, directly use q b ·q j (i.e., q) b With q b The similarity between them is used as the element value of the element in the b-th row and j-th column; while for other cases (including b≠j and q), the similarity between them is used as the element value. b ·q j<T), then 0 is taken as the element value of the element in the b-th row and the j-th column.

[0160] Specifically, through formula (1-3), the connections between unlabeled business data with high label similarity can be screened and retained in the label similarity matrix; in this way, in the subsequent contrastive learning with the feature similarity matrix, it can effectively promote the feature representations of unlabeled data with high label similarity to be more similar, and prevent the feature representations of unlabeled business data with low label similarity from being more similar; and the subsequent model training based on the data contrastive loss value between the label similarity matrix and the feature similarity matrix will also make the classification model train in the direction of promoting the feature representations of samples with similar labels to be similar, which is beneficial to training a classification model with better performance. Among them, contrastive learning is an unsupervised learning method that learns useful feature representations by allowing the model to distinguish similar and different samples.

[0161] In one embodiment, the construction process of feature similarity may include: first, for any unlabeled business data in multiple unlabeled business data, constructing an initial similarity matrix; wherein each element in the initial similarity matrix corresponds to each unlabeled business data in the multiple unlabeled business data one by one; then, based on the data features of the first enhanced data corresponding to any unlabeled business data, the data features of the second enhanced data corresponding to any unlabeled business data, and the data features of the first enhanced data corresponding to other unlabeled business data in the multiple unlabeled business data, performing filling processing on the initial similarity matrix to obtain a target similarity matrix of any unlabeled business data; finally, based on the target similarity matrix of each unlabeled business data, obtaining a feature similarity matrix.

[0162] Wherein, the initial similarity matrix may be a row vector or a column vector. Optionally, if the initial data matrix is a row vector, the initial similarity matrix should also be a row vector, and if the initial data matrix is a column vector, the initial similarity matrix should also be a column vector.

[0163] Then, the specific manner of obtaining the feature similarity matrix based on each target similarity matrix may include: performing matrix splicing on the target similarity matrices corresponding to the multiple unlabeled business data respectively to obtain a feature similarity matrix. Wherein, the feature similarity matrix is an n×n matrix.

[0164] Optionally, the specific process of filling may include: filling the elements corresponding to any unlabeled business data in the initial similarity matrix with the similarity between the data features of any unlabeled business data corresponding to the first enhanced data and the data features of any unlabeled business data corresponding to the second enhanced data; and filling the elements corresponding to other unlabeled business data in the initial similarity matrix with the similarity between the data features of any unlabeled business data corresponding to the first enhanced data and the data features of other unlabeled business data corresponding to the first enhanced data, thereby obtaining the target similarity matrix of any unlabeled business data.

[0165] In practical applications, the formula (1-4) for constructing the feature similarity matrix is ​​shown below:

[0166]

[0167] in, This represents the element value of the element in the b-th row and j-th column of the feature similarity matrix. The feature similarity matrix is ​​a μB×μB matrix, and each row in the label similarity matrix corresponds to the target similarity matrix of each unlabeled business data.

[0168] For the b-th unlabeled business data, after performing two different strong enhancements, we can obtain the first enhanced data and the second enhanced data. After the first enhanced data is processed successively by the encoder and mapper, the corresponding data feature z can be obtained. b The second augmented data, after being processed successively by the encoder and mapper, yields the corresponding data feature z. b Furthermore, t is the temperature parameter in the model distillation, which is a hyperparameter.

[0169] In one embodiment, if each row of the label similarity matrix is ​​a target data matrix for each unlabeled data point, and each row of the feature similarity matrix is ​​a target similarity matrix for each unlabeled data point, the process of obtaining the data comparison loss value may include: comparing the similarity contained in each row of the label similarity matrix with the similarity contained in the same row of the feature similarity matrix to obtain a similarity loss value; and obtaining a data comparison loss value based on multiple similarity loss values.

[0170] Specifically, the similarity loss value can be obtained by calling a multi-classification loss function and calculating the loss value between the similarity contained in each row of the label similarity matrix and the similarity contained in the same row of the feature similarity matrix.

[0171] The multi-class loss function may include at least one of the following functions used for multi-class classification: cross-entropy loss, softmax loss (a loss function used for multi-class classification), Kullback-Leibler (KL divergence, a method for measuring the difference between two probability distributions), etc., without limitation.

[0172] Optionally, if each column of the label similarity matrix is ​​the target data matrix for each unlabeled data point, and each column of the feature similarity matrix is ​​the target similarity matrix for each unlabeled data point, then the similarity contained in each column of the label similarity matrix can be compared with the similarity contained in the same column of the feature similarity matrix to obtain a similarity loss value; a data comparison loss value can then be obtained based on multiple similarity loss values.

[0173] In practical applications, the formula for calculating the data contrast loss value (1-5) is as follows:

[0174]

[0175] in, To compare the loss values ​​of the data, W b q W represents the b-th row of the label similarity matrix. b z This represents the b-th row in the feature similarity matrix. H(W) b q W b z The calculation is the cross-entropy loss value (i.e. the similarity loss value of the b-th row) of the two matrices in the b-th row (representing the b-th unlabeled business data).

[0176] Specifically, by comparing rows to calculate the loss value, it is possible to accurately calculate the loss value between the similarity of each unlabeled business data in probability distribution and its similarity in feature representation, which is conducive to calculating a more accurate data comparison loss value.

[0177] S307, the classification loss value is obtained based on the unlabeled prediction loss value, the labeled prediction loss value, and the data comparison loss value.

[0178] In this embodiment of the application, the unlabeled prediction loss value, the labeled prediction loss value, and the data comparison loss value can be weighted and summed to obtain the classification loss value; wherein, the initial weights corresponding to the unlabeled prediction loss value, the initial weights corresponding to the labeled prediction loss value, and the initial weights corresponding to the data comparison loss value can all be set manually.

[0179] In one embodiment, during model training, the weights corresponding to the unlabeled prediction loss, the labeled prediction loss, and the data comparison loss can be continuously updated in the direction of reducing the classification loss.

[0180] In practical applications, the formula for calculating the classification loss value (1-6) is shown below:

[0181]

[0182] Where L represents the classification loss value; λ cls λ represents the weights of the unlabeled prediction loss value. ctr Weights for the data comparison loss values.

[0183] S308. Adjust the model parameters of the initial classification model based on the classification loss value to obtain the target classification model.

[0184] In this embodiment, the model parameters of the initial classification model can be adjusted to reduce the classification loss value to obtain the target classification model. Optionally, the parameters of the encoder, classifier, and mapper in the initial classification model can be adjusted to reduce the classification loss value. Optionally, parameters that need to be adjusted and updated during model training, such as the weights corresponding to the unlabeled prediction loss value, the weights corresponding to the labeled prediction loss value, and the weights corresponding to the data comparison loss value, can also be adjusted to reduce the classification loss value.

[0185] For specific implementation details, please refer to the appendix. Figure 8 This diagram illustrates a framework for mining unlabeled business data. Figure 8 As shown, the mining framework includes a data augmentation module 810, a training label generation module 820, and a graph comparison learning module 830.

[0186] The data augmentation module 810 is used to augment unlabeled business data. In the mining framework proposed in this example, each unlabeled business data needs one weak augmentation and two different strong augmentations. In this example, the sample set for this round of training contains μB of unlabeled business data (e.g., ...). Figure 8 Data A, B, C, and D). In the data augmentation module 810, a weak augmentation can be performed on each unlabeled business data to obtain the target weakly augmented data corresponding to each unlabeled business data; for example, the target weakly augmented data A1 corresponding to data A. Also, two different strong augmentations can be performed on each unlabeled business data (e.g., ...). Figure 8 The strong enhancements 1 and 2 shown are used to obtain the first and second enhanced data corresponding to each unlabeled business data; for example, the first enhanced data A2 corresponding to data A and the second enhanced data A3 corresponding to data A.

[0187] The training label generation module 820 is used to generate training labels for the target weak augmentation data corresponding to the unlabeled business data (which can be referred to as the training labels corresponding to the unlabeled business data).

[0188] To make the training labels generated by the model more accurate, this example optimizes the method of generating training labels, which can be called "memory smoothing training labels". This method is based on a simple idea: "Features represent similar samples, and their probability distributions in each category should also be similar". Therefore, the prediction results of the current sample can be "smoothed" by using other samples.

[0189] Specifically, after the encoder and classifier in the initial classification model process successively through the weakly augmented data of each target, the predicted labels of the weakly augmented data of each target can be obtained (e.g., ...). Figure 8 p in w ); and, after the encoder and mapper in the initial classification model, the weakly augmented data of each target can be successively processed to obtain the data features of the output weakly augmented data of each target (such as...). Figure 8 z in w ).

[0190] In addition, to achieve "smoothness," the mining framework also maintains a weakly augmented database (also known as a memory bank). in, This represents the predicted label corresponding to the k-th weakly augmented data point in the weakly augmented database; This represents the data feature corresponding to the k-th weakly augmented data in the weak augmentation database; k is a positive integer, less than or equal to K. Following a first-in, first-out (FIFO) principle, during model training, the predicted labels and data features corresponding to the target weakly augmented data for the past K unlabeled business data are dynamically stored in the weak augmentation database.

[0191] like Figure 8 As shown, for each unlabeled business data u b and the target weak augmentation data corresponding to and The predicted labels of the target weakly augmented data corresponding to the unlabeled business data can be "smoothed" using the historical predicted labels and historical data features of all historical weakly augmented data in the weakly augmented database, in order to calculate the training label q corresponding to the unlabeled business data. b This is also the origin of the name "Memory Smoothing Training Label".

[0192] In practical applications, the training label q corresponding to the b-th unlabeled business data in this round of training can be set. b It can minimize the optimization objective shown in Equation (1-7):

[0193]

[0194] Wherein J(q) b ) represents the training label q b The optimization objective; a k Represents unlabeled business data u b The similarity (i.e., feature similarity) between the data and historical weakly augmented data in the weakly augmented database in terms of feature representation (i.e., data features). α is a hyperparameter used to balance the weights of the two equations in the optimization objective.

[0195] Specifically, a k The calculation formula (1-8) is shown below:

[0196]

[0197] Here, t is a hyperparameter used for regularization. The first term in the optimization objective encourages training of the labels q. b Historical predicted labels corresponding to historical weakly augmented data with similar features The second formula can avoid training the label q. b Excessive deviation from its own predicted label And the weights of the two are balanced by α.

[0198] Furthermore, the training label q that minimizes the above optimization objective can be calculated. b The specific calculation formula (1-9) is shown below:

[0199]

[0200] Observe training labels q b As can be seen from the calculation formula, the first term preserves the unlabeled business data u. b Original predicted labels for weakly augmented data corresponding to the target The second formula reflects the labelless business data u b How are the training labels replaced by the historical predicted labels corresponding to other historical weakly augmented data? The process was "smoothed," aligning with the initial, simple idea.

[0201] Finally, through the training label generation module 820, the training labels corresponding to each unlabeled business data in this round of training can be obtained (e.g., ...). Figure 8 q in b As shown), this yields a training label set containing the training labels corresponding to all unlabeled business data in this round of training. (like Figure 8 (as shown in q).

[0202] In the contrastive learning module 830, a model can be constructed by training the label set, such as... Figure 8 The label similarity matrix 831 shown is also called the training label map; the specific construction process can be found in the example and formula (1-3) in step S306, which will not be repeated here.

[0203] Furthermore, in the contrastive learning module 830, the data features z obtained after each of the first augmented data has been processed successively by the encoder and mapper can be acquired. b This yields a set z containing the data features corresponding to all the first augmented data in this training round; and the data features z' obtained after each second augmented data is processed by the encoder and mapper. b Thus, a set z' containing the data features corresponding to all the second augmented data in this round of training is obtained.

[0204] Then, based on set z and set z', construct as follows Figure 8 The feature similarity matrix 832 (also known as the feature map) is shown. For the specific construction process, please refer to the example in step S306 and formula (1-4), which will not be repeated here.

[0205] The previously held naive idea also holds true in reverse: "samples with similar labels should also have similar feature representations." Therefore, in the contrastive learning module 830, the training label map W can be... q As feature map W z The learning objective is to calculate the data contrast loss of unlabeled business data (i.e., Figure 8 In The specific calculation process of the data comparison loss value can be found in the above formula (1-5), which will not be elaborated here.

[0206] Furthermore, it is necessary to obtain the predicted labels obtained after each of the first augmented data has been processed by the encoder and classifier, thus obtaining a predicted label set p containing the predicted labels corresponding to all the first augmented data in this round of training. Then, based on the training label set q and the predicted label set p, the unlabeled prediction loss of the unlabeled business data (i.e., Figure 8 In The specific calculation process for the unlabeled prediction loss value can be found in the above formula (1-2), which will not be elaborated here.

[0207] Ultimately, the integrated labeled prediction loss L x Unlabeled prediction loss Data comparison loss The complete loss function shown in formula (1-6) can be obtained, thus yielding the final classification loss value L.

[0208] Figure 8 The mining framework shown can fully utilize unlabeled business data to optimize the performance of classification models in feature representation extraction and category probability prediction. Furthermore, experimental verification demonstrates that, based on this mining framework, the accuracy of the classification model can be significantly improved even when labeled samples (i.e., labeled business data) are insufficient.

[0209] Specifically, the contrastive learning module diffuses training labels among samples, guiding the model to learn feature representations. This framework, where training labels and feature representations interact and co-evolve, helps the model learn higher-quality feature representations, thereby further improving classification accuracy.

[0210] In this embodiment, based on the unlabeled prediction loss and the labeled prediction loss, the classification model is further trained using a data contrast loss obtained from the training labels corresponding to the weakly enhanced target data and the data features corresponding to the strongly enhanced target data. The unlabeled and labeled prediction losses directly drive the classification model to train towards more accurate classification results, thus learning more accurate classification outcomes. The data contrast loss, on the other hand, drives the classification model to train towards extracting more accurate data features, thus learning more accurate feature representations. More accurate features lead to more accurate classification results, which in turn improves the accuracy of the trained target classification model in classifying business data.

[0211] Based on the above description of the business data processing method, this application also discloses a business data processing apparatus. This business data processing apparatus can be a computer program (including program code) running on the aforementioned computer device. The business data processing apparatus can perform actions such as... Figure 2 and Figure 3 For the business data processing methods shown, please refer to [link / reference]. Figure 9 The business data processing device may include at least: an acquisition unit 901, a calling unit 902, a processing unit 903, and a training unit 904, wherein:

[0212] The acquisition unit 901 is used to acquire labeled business data and unlabeled business data, and to perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data.

[0213] Calling unit 902 is used to call the initial classification model to perform classification prediction on target weakly enhanced data, target strongly enhanced data and labeled business data respectively, and obtain the data features and predicted labels corresponding to target weakly enhanced data, the predicted labels corresponding to target strongly enhanced data and the predicted labels corresponding to labeled business data.

[0214] The processing unit 903 is used to smooth the predicted label corresponding to the target weakly enhanced data based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, as well as the data features corresponding to the target weakly enhanced data, to obtain the training label corresponding to the target weakly enhanced data; wherein, the historical data features and historical predicted labels are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through the initial classification model.

[0215] Training unit 904 is used to train the initial classification model to obtain the target classification model based on the training labels corresponding to the weakly augmented target data, the predicted labels corresponding to the strongly augmented target data, and the predicted labels corresponding to the labeled business data.

[0216] In one implementation, when the processing unit 903 smooths the predicted label corresponding to the target weakly enhanced data based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, to obtain the training label corresponding to the target weakly enhanced data, it can also perform the following: obtaining the feature similarity between the historical data features corresponding to the historical weakly enhanced data and the data features corresponding to the target weakly enhanced data; adjusting the predicted label corresponding to the target weakly enhanced data based on the feature similarity and the historical predicted labels corresponding to the historical weakly enhanced data to obtain the training label corresponding to the target weakly enhanced data; wherein the adjustment range of the historical predicted labels corresponding to the historical weakly enhanced data to the predicted label corresponding to the target weakly enhanced data is proportional to the feature similarity corresponding to the historical weakly enhanced data.

[0217] In another implementation, when the training unit 904 trains the initial classification model to obtain the target classification model based on the training labels corresponding to the target weakly augmented data, the predicted labels corresponding to the target strongly augmented data, and the predicted labels corresponding to the labeled business data, it can specifically perform the following: obtaining an unlabeled prediction loss value based on the training labels corresponding to the target weakly augmented data and the predicted labels corresponding to the target strongly augmented data; obtaining a labeled prediction loss value based on the business labels contained in the labeled business data and the predicted labels corresponding to the labeled business data; obtaining a classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value; and adjusting the model parameters of the initial classification model based on the classification loss value to obtain the target classification model.

[0218] In another implementation, when the training unit 904 obtains the classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value, it can also be used to perform the following: obtain the data features corresponding to the target strongly enhanced data obtained by classifying and predicting the target strongly enhanced data; obtain the data contrast loss value based on the training label corresponding to the target weakly enhanced data and the data features corresponding to the target strongly enhanced data; and obtain the classification loss value based on the unlabeled prediction loss value, the labeled prediction loss value and the data contrast loss value.

[0219] In another implementation, when the training unit 904 obtains the data comparison loss value based on the training labels corresponding to the target weakly enhanced data and the data features corresponding to the target strongly enhanced data, it can also specifically perform the following: constructing a label similarity matrix based on the training labels corresponding to the target weakly enhanced data; constructing a feature similarity matrix based on the data features corresponding to the first enhanced data included in the target strongly enhanced data and the data features corresponding to the second enhanced data included in the target strongly enhanced data; wherein the first enhanced data and the second enhanced data are obtained by performing different strong enhancements on the unlabeled business data; comparing the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value.

[0220] In another implementation, the number of unlabeled service data includes multiple data sets. Based on the aforementioned scheme, when the training unit 904 constructs a label similarity matrix based on the training labels corresponding to the target weakly augmented data, it can also specifically perform the following: construct an initial data matrix for any unlabeled service data set among the multiple unlabeled service data sets; wherein each element in the initial data matrix corresponds one-to-one with each unlabeled service data set among the multiple unlabeled service data sets; fill the corresponding elements in the initial data matrix with the label similarity between the training labels of the target weakly augmented data set corresponding to any unlabeled service data set and the training labels of the target weakly augmented data set corresponding to each unlabeled service data set, to obtain the target data matrix of any unlabeled service data set; and obtain the label similarity matrix based on the target data matrices of each unlabeled service data set.

[0221] In another implementation, when the training unit 904 fills the corresponding elements in the initial data matrix with the label similarity between the training label of any unlabeled service data corresponding to the target weak augmentation data and the training label of each unlabeled service data corresponding to the target weak augmentation data, to obtain the target data matrix of any unlabeled service data, it can specifically perform the following: if the label similarity is greater than or equal to a preset similarity, then fill the label similarity into the elements corresponding to each unlabeled service data in the initial data matrix; if the label similarity is less than the preset similarity, then fill the preset value into the elements corresponding to each unlabeled service data in the initial data matrix.

[0222] In another implementation, the number of unlabeled service data includes multiple data sets. Based on the aforementioned scheme, when the training unit 904 constructs a feature similarity matrix based on the data features corresponding to the first enhanced data included in the target strongly enhanced data and the data features corresponding to the second enhanced data included in the target strongly enhanced data, it can also specifically perform the following: constructing an initial similarity matrix for any unlabeled service data among the multiple unlabeled service data; wherein each element in the initial similarity matrix corresponds one-to-one with each unlabeled service data among the multiple unlabeled service data; filling the initial similarity matrix based on the data features corresponding to the first enhanced data for any unlabeled service data, the data features corresponding to the second enhanced data for any unlabeled service data, and the data features corresponding to the first enhanced data for other unlabeled service data among the multiple unlabeled service data to obtain a target similarity matrix for any unlabeled service data; and obtaining a feature similarity matrix based on the target similarity matrices of each unlabeled service data.

[0223] In another implementation, based on the aforementioned scheme, when the training unit 904 fills the initial similarity matrix based on the data features of any unlabeled service data corresponding to the first augmented data, the data features of any unlabeled service data corresponding to the second augmented data, and the data features of other unlabeled service data corresponding to the first augmented data among multiple unlabeled service data, to obtain the target similarity matrix of any unlabeled service data, it can specifically perform the following: filling the element in the initial similarity matrix corresponding to any unlabeled service data with the similarity between the data features of any unlabeled service data corresponding to the first augmented data and the data features of any unlabeled service data corresponding to the second augmented data; and filling the element in the initial similarity matrix corresponding to other unlabeled service data with the similarity between the data features of any unlabeled service data corresponding to the first augmented data and the data features of other unlabeled service data corresponding to the first augmented data, to obtain the target similarity matrix of any unlabeled service data.

[0224] In another implementation, based on the aforementioned scheme, when the training unit 904 compares the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value, it can specifically perform the following: compare the similarity contained in each row of the label similarity matrix with the similarity contained in the same row of the feature similarity matrix to obtain the similarity loss value; and obtain the data comparison loss value based on multiple similarity loss values.

[0225] In another implementation, the number of unlabeled service data includes multiple data sets. Based on the aforementioned scheme, when the training unit 904 obtains the unlabeled prediction loss value based on the training label corresponding to the target weakly enhanced data and the predicted label corresponding to the target strongly enhanced data, it can specifically perform the following: if the maximum probability contained in the training label of any unlabeled service data corresponding to the target weakly enhanced data is greater than or equal to the probability threshold, then any unlabeled service data is determined as the target unlabeled service data; and the label prediction loss value is calculated based on the training label of the target weakly enhanced data corresponding to the target unlabeled service data and the predicted label of the target strongly enhanced data corresponding to the target unlabeled service data.

[0226] In another implementation, based on the aforementioned scheme, when the acquisition unit 901 performs different data enhancements on the unlabeled service data to obtain target weakly enhanced data and target strongly enhanced data, it can specifically perform the following: perform weak enhancement processing on the unlabeled service data to obtain target weakly enhanced data; perform strong enhancement processing on the unlabeled service data to obtain target strongly enhanced data; wherein, the data transformation range of the strong enhancement processing on the unlabeled service data is greater than the data transformation range of the weak enhancement processing on the unlabeled service data.

[0227] In another implementation, based on the aforementioned scheme, when the acquisition unit 901 performs strong enhancement processing on the unlabeled service data to obtain target strong enhanced data, it can specifically perform: a first strong enhancement on the unlabeled service data to obtain first enhanced data; a second strong enhancement on the unlabeled service data to obtain second enhanced data; wherein the data transformation method corresponding to the second strong enhancement is different from the data transformation method corresponding to the first strong enhancement; and generate target strong enhanced data containing the first enhanced data and the second enhanced data.

[0228] In another implementation, the number of unlabeled service data includes multiple data types. The historical data features and historical prediction labels corresponding to the historical weak enhancement data are stored in the weak enhancement database. Based on the aforementioned scheme, the processing unit 903 can also be used to perform the following: if a training label for the target weak enhancement data corresponding to any unlabeled service data is detected, the data features and prediction labels for the target weak enhancement data corresponding to any unlabeled service data are written into the weak enhancement database.

[0229] In another implementation, based on the aforementioned scheme, when the processing unit 903 writes the data features and predicted labels of the target weak enhancement data corresponding to any unlabeled service data into the weak enhancement database, it can specifically perform the following: if the number of weak enhancement data corresponding to the data features and predicted labels contained in the weak enhancement database reaches a preset threshold, then obtain the candidate historical weak enhancement data with the earliest writing time in the weak enhancement database; delete the historical data features and historical predicted labels corresponding to the candidate historical weak enhancement data from the weak enhancement database, so as to write the data features and predicted labels of the target weak enhancement data corresponding to any unlabeled service data into the weak enhancement database.

[0230] According to one embodiment of this application, Figure 2 and Figure 3 The steps involved in the method shown can be derived from... Figure 9 This is performed by the various units within the business data processing apparatus shown. For example, Figure 3 The step S301 shown can be performed by Figure 9 The acquisition unit 901 in the business data processing device shown is used to execute the step; step S302 can be performed by... Figure 9 The calling unit 902 in the business data processing device shown is used to execute the step; step S303 can be performed by... Figure 9 The processing unit 903 in the business data processing device shown is responsible for executing steps S304 to S3308; Figure 9 The training unit 904 in the business data processing device shown is used to execute this.

[0231] According to another embodiment of this application, Figure 9 The units in the illustrated business data processing apparatus are divided based on logical functions. These units can be individually or entirely merged into one or more other units, or some of these units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. In other embodiments of this application, the aforementioned business data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0232] According to another embodiment of this application, a general-purpose computing device, such as a computer device, including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can be used to run an application capable of performing tasks such as... Figure 2 or Figure 3 The computer program (including program code) involved in each step of the method shown is used to construct, for example... Figure 9The present invention describes a business data processing apparatus and a business data processing method for implementing embodiments of this application. A computer program may be recorded on, for example, a computer storage medium, loaded onto the aforementioned computer device via the computer storage medium, and run therein.

[0233] In this embodiment, by training the initial classification model based on the predicted labels corresponding to labeled business data, the training labels corresponding to weakly augmented target data, and the predicted labels corresponding to strongly augmented target data, the training labels corresponding to weakly augmented target data can be effectively introduced as business labels missing from unlabeled business data for model training. This allows strongly augmented target data corresponding to unlabeled business data to also participate in the training of the initial classification model as labeled business data. Furthermore, abundant labeled business data is beneficial for training a classification model with better performance, thereby greatly improving the accuracy of the trained target classification model in classifying business data.

[0234] Based on the above method and apparatus embodiments, this application also provides an electronic device. See also Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 10 The electronic device shown may include at least a processor 1001, an input interface 1002, an output interface 1003, and a computer storage medium 1004. The processor 1001, the input interface 1002, the output interface 1003, and the computer storage medium 1004 may be connected via a bus or other means.

[0235] Computer storage medium 1004 can be stored in the memory of electronic device. Computer storage medium 1004 is used to store computer programs, which include program instructions. Processor 1001 is used to execute the program instructions stored in computer storage medium 1004. Processor 1001 (or CPU (Central Processing Unit)) is the computing and control core of electronic device. It is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to realize the above-mentioned business data processing method flow or corresponding functions.

[0236] This application embodiment also provides a computer storage medium (Memory), which is a memory device in an electronic device used to store programs and data. It is understood that the computer storage medium here can include the built-in storage medium in a terminal, or it can include an extended storage medium supported by the terminal. The computer storage medium provides storage space, which stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by the processor 1001. These instructions can be one or more computer programs (including program code). It should be noted that the computer storage medium here can be a high-speed random access memory (RAM), or it can be non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.

[0237] In one embodiment, the processor 1001 may load and execute one or more instructions stored in the computer storage medium to implement the aforementioned related... Figure 2 and Figure 3 In the corresponding steps of the method embodiment for processing business data, in a specific implementation, one or more instructions in the computer storage medium are loaded and executed by the processor 1001, such as... Figure 2 and Figure 3 The steps in the illustrated business data processing method embodiment.

[0238] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned actions. Figure 2 and Figure 3 The method embodiment shown. The computer-readable storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0239] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims. Furthermore, this application does not limit the execution order of the various steps in the specific embodiments.

Claims

1. A business data processing method, characterized in that, The method includes: Acquire labeled and unlabeled business data, and perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data; The initial classification model is invoked to perform classification prediction on the target weakly enhanced data, the target strongly enhanced data, and the labeled business data respectively, so as to obtain the data features and predicted labels corresponding to the target weakly enhanced data, the predicted labels corresponding to the target strongly enhanced data, and the predicted labels corresponding to the labeled business data. Based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, the predicted labels corresponding to the target weakly enhanced data are smoothed to obtain the training labels corresponding to the target weakly enhanced data; wherein, the historical data features and historical predicted labels are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through the initial classification model. The initial classification model is trained based on the training labels corresponding to the weakly enhanced target data, the predicted labels corresponding to the strongly enhanced target data, and the predicted labels corresponding to the labeled business data to obtain the target classification model.

2. The method according to claim 1, characterized in that, The process of smoothing the predicted labels corresponding to the target weakly enhanced data based on historical data features and historical predicted labels corresponding to historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, to obtain training labels corresponding to the target weakly enhanced data includes: Obtain the feature similarity between the historical data features corresponding to the historical weak enhancement data and the data features corresponding to the target weak enhancement data; Based on the feature similarity and the historical predicted labels corresponding to the historical weak enhancement data, the predicted labels corresponding to the target weak enhancement data are adjusted to obtain the training labels corresponding to the target weak enhancement data. The adjustment range of the historical predicted label corresponding to the historical weakly enhanced data to the predicted label corresponding to the target weakly enhanced data is proportional to the feature similarity corresponding to the historical weakly enhanced data.

3. The method according to claim 1, characterized in that, The step of training the initial classification model to obtain a target classification model based on the training labels corresponding to the weakly enhanced target data, the predicted labels corresponding to the strongly enhanced target data, and the predicted labels corresponding to the labeled business data includes: Based on the training labels corresponding to the weakly enhanced target data and the predicted labels corresponding to the strongly enhanced target data, an unlabeled prediction loss value is obtained. Based on the business tags contained in the tagged business data and the prediction tags corresponding to the tagged business data, the tagged prediction loss value is obtained. Based on the unlabeled prediction loss value and the labeled prediction loss value, a classification loss value is obtained, and the model parameters of the initial classification model are adjusted according to the classification loss value to obtain the target classification model.

4. The method according to claim 3, characterized in that, The step of obtaining the classification loss value based on the unlabeled prediction loss value and the labeled prediction loss value includes: Obtain the data features corresponding to the target enhanced data obtained by classifying and predicting the target enhanced data; Based on the training labels corresponding to the weakly enhanced target data and the data features corresponding to the strongly enhanced target data, a data contrast loss value is obtained. The classification loss value is obtained based on the unlabeled prediction loss value, the labeled prediction loss value, and the data comparison loss value.

5. The method according to claim 4, characterized in that, The step of obtaining a data contrast loss value based on the training labels corresponding to the weakly enhanced target data and the data features corresponding to the strongly enhanced target data includes: Based on the training labels corresponding to the target weakly enhanced data, a label similarity matrix is ​​constructed; Based on the data features corresponding to the first enhanced data contained in the target strongly enhanced data, and the data features corresponding to the second enhanced data contained in the target strongly enhanced data, a feature similarity matrix is ​​constructed; wherein, the first enhanced data and the second enhanced data are obtained by performing different strongly enhanced enhancements on the unlabeled business data; The label similarity matrix is ​​compared with the feature similarity matrix to obtain the data comparison loss value.

6. The method according to claim 5, characterized in that, The number of unlabeled business data includes multiple data sets. The construction of a label similarity matrix based on the training labels corresponding to the target weakly augmented data includes: For any unlabeled business data from multiple unlabeled business data sets, an initial data matrix is ​​constructed; wherein, each element in the initial data matrix corresponds one-to-one with each unlabeled business data from the multiple unlabeled business data sets. The label similarity between the training label of the target weak augmentation data corresponding to any unlabeled business data and the training label of the target weak augmentation data corresponding to each unlabeled business data is filled into the corresponding element in the initial data matrix to obtain the target data matrix of any unlabeled business data. Based on the target data matrix of each unlabeled business data, the label similarity matrix is ​​obtained.

7. The method according to claim 6, characterized in that, The step of filling the corresponding elements in the initial data matrix with the label similarity between the training labels of the target weak augmentation data corresponding to any unlabeled service data and the training labels of the target weak augmentation data corresponding to each unlabeled service data, to obtain the target data matrix of any unlabeled service data, includes: If the label similarity is greater than or equal to the preset similarity, then the label similarity is filled into the elements corresponding to each unlabeled business data in the initial data matrix; If the label similarity is less than the preset similarity, then the preset value is filled into the elements corresponding to each unlabeled business data in the initial data matrix.

8. The method according to claim 5, characterized in that, The number of unlabeled business data includes multiple types. The data is constructed based on the data features corresponding to the first enhanced data contained in the target strongly enhanced data, and the data features corresponding to the second enhanced data contained in the target strongly enhanced data. Feature similarity matrix, including: For any unlabeled business data in a plurality of unlabeled business data, an initial similarity matrix is ​​constructed; wherein, each element in the initial similarity matrix corresponds one-to-one with each unlabeled business data in the plurality of unlabeled business data; Based on the data features of the first enhanced data corresponding to any unlabeled business data, the data features of the second enhanced data corresponding to any unlabeled business data, and the data features of the first enhanced data corresponding to other unlabeled business data among the plurality of unlabeled business data, the initial similarity matrix is ​​filled to obtain the target similarity matrix of any unlabeled business data. The feature similarity matrix is ​​obtained based on the target similarity matrix of each unlabeled business data.

9. The method according to claim 8, characterized in that, The initial similarity matrix is ​​filled with data features based on the data features of the first enhanced data corresponding to any unlabeled service data, the data features of the second enhanced data corresponding to any unlabeled service data, and the data features of the other unlabeled service data corresponding to the first enhanced data among the plurality of unlabeled service data, to obtain the target similarity matrix of any unlabeled service data, including: The similarity between the data features of the first enhanced data corresponding to any unlabeled service data and the data features of the second enhanced data corresponding to any unlabeled service data is filled into the elements of the initial similarity matrix corresponding to any unlabeled service data. Furthermore, the similarity between the data features of the first enhanced data corresponding to any unlabeled service data and the data features of the first enhanced data corresponding to other unlabeled service data is filled into the elements of the initial similarity matrix corresponding to the other unlabeled service data to obtain the target similarity matrix of any unlabeled service data.

10. The method according to claim 5, characterized in that, The step of comparing the label similarity matrix with the feature similarity matrix to obtain the data comparison loss value includes: The similarity values ​​contained in each row of the label similarity matrix are compared with the similarity values ​​contained in the same row of the feature similarity matrix to obtain the similarity loss value. The data comparison loss value is obtained based on multiple similarity loss values.

11. The method according to claim 3, characterized in that, The number of unlabeled service data includes multiple types. The process of obtaining the unlabeled prediction loss value based on the training labels corresponding to the target weakly augmented data and the predicted labels corresponding to the target strongly augmented data includes: If the maximum probability contained in the training label of any unlabeled service data corresponding to the target weak augmentation data is greater than or equal to the probability threshold, then the unlabeled service data is determined as the target unlabeled service data. Based on the training labels of the target weakly augmented data corresponding to the target unlabeled service data, and the predicted labels of the target strongly augmented data corresponding to the target unlabeled service data, the unlabeled prediction loss value is calculated.

12. The method according to claim 1, characterized in that, The process of performing different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data includes: The unlabeled service data is subjected to weak enhancement processing to obtain the target weakly enhanced data; The unlabeled service data is subjected to strong enhancement processing to obtain the target strongly enhanced data; Specifically, the magnitude of data transformation of the unlabeled service data by strong enhancement processing is greater than that by weak enhancement processing.

13. The method according to claim 12, characterized in that, The step of performing strong enhancement processing on the unlabeled business data to obtain the target strongly enhanced data includes: The unlabeled service data is subjected to a first strong enhancement to obtain the first enhanced data; The unlabeled service data is subjected to a second strong enhancement to obtain second enhanced data; wherein the data transformation method corresponding to the second strong enhancement is different from the data transformation method corresponding to the first strong enhancement. Generate the target strongly enhanced data that includes the first enhanced data and the second enhanced data.

14. The method according to any one of claims 1 to 13, characterized in that, The number of unlabeled service data includes multiple types. The historical data features and historical predicted labels corresponding to the historical weak enhancement data are stored in the weak enhancement database. The method further includes: If a training label for the target weak augmentation data corresponding to any unlabeled service data is detected, then the data features and predicted label of the target weak augmentation data corresponding to the unlabeled service data are written into the weak augmentation database.

15. The method according to claim 14, characterized in that, The step of writing the data features and predicted labels of the target weakly augmented data corresponding to any unlabeled service data into the weakly augmented database includes: If the number of weakly enhanced data corresponding to the data features and predicted labels contained in the weakly enhanced database reaches a preset threshold, then the candidate historical weakly enhanced data with the earliest writing time in the weakly enhanced database is obtained. The historical data features and historical prediction labels corresponding to the candidate historical weak enhancement data are deleted from the weak enhancement database, so that the data features and prediction labels of the target weak enhancement data corresponding to any unlabeled business data are written into the weak enhancement database.

16. A business data processing apparatus, characterized in that, The device includes an acquisition unit, a calling unit, a processing unit, and a training unit, wherein: The acquisition unit is used to acquire labeled business data and unlabeled business data, and to perform different data augmentations on the unlabeled business data to obtain target weakly augmented data and target strongly augmented data. The calling unit is used to call the initial classification model to perform classification prediction on the target weakly enhanced data, the target strongly enhanced data and the labeled business data respectively, and to obtain the data features and predicted labels corresponding to the target weakly enhanced data, the predicted labels corresponding to the target strongly enhanced data and the predicted labels corresponding to the labeled business data. The processing unit is used to smooth the predicted label corresponding to the target weakly enhanced data based on the historical data features and historical predicted labels corresponding to the historical weakly enhanced data, and the data features corresponding to the target weakly enhanced data, to obtain the training label corresponding to the target weakly enhanced data; wherein, the historical data features and historical predicted labels are obtained by classifying and predicting the historical weakly enhanced data corresponding to the historical unlabeled business data through the initial classification model. The training unit is used to train the initial classification model to obtain a target classification model based on the training labels corresponding to the weakly enhanced target data, the predicted labels corresponding to the strongly enhanced target data, and the predicted labels corresponding to the labeled business data.

17. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the business data processing method as described in any one of claims 1 to 15.

18. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the business data processing method as described in any one of claims 1 to 15.

19. A computer program product, characterized in that, The computer program product includes a computer program adapted to be loaded by a processor and executed as any one of claims 1 to 15.