Target data identification method and device

Through semi-supervised clustering algorithms and identification models, automatic processing of big data solves the problem of low intelligence in existing technologies, improves the efficiency and accuracy of data processing, adapts to the real-time needs of big data, and provides big data Management and analysis provide more efficient and accurate solutions.

CN118535736APending Publication Date: 2024-08-23CHINA EVERBRIGHT BANK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410724550.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology is not highly intelligent and efficient when processing big data, and it is difficult to guarantee accuracy and timeliness. Especially in manual sorting, it relies on the personal abilities and experience of data analysts, leading to subjectivity and inconsistency. sex.

Method used

Use semi-supervised clustering algorithm, prior knowledge and training set to build a recognition model. Through the collection, cleaning, word segmentation and feature extraction processing of training data, sampling and clustering processing, the recognition model is built and trained, and the model is used to automatically identify the target. Identify categories of data to improve processing efficiency and accuracy.

Benefits of technology

It realizes the automation of data processing, improves accuracy and consistency, has powerful processing capabilities, can cope with the real-time processing needs of big data, solves the problem of low intelligence, and provides more efficient management and analysis of big data. , accurate and reliable solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535736A
    Figure CN118535736A
Patent Text Reader

Abstract

The invention provides a target data identification method and device, and the method comprises the steps: carrying out the collection, cleaning, word segmentation and feature extraction processing of training data, so as to obtain a preprocessing data set; sampling and clustering the preprocessed data set to obtain a training set; based on a semi-supervised clustering algorithm, priori knowledge and the training set, constructing and training an identification model; and processing to-be-identified data based on the identification model to determine the category of the to-be-identified data so as to obtain target data. According to the invention, the problem of low intelligent degree in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for identifying target data. Background Art

[0002] Big data, an increasingly important concept in today's information age, refers to large-scale, fast-growing and diverse data sets that are difficult to handle with conventional database management tools. These data sets usually come from various sources, such as social media, online transactions, sensor networks, etc., and are huge in size, diverse in types, and updated quickly. The core value of big data lies in the ability to extract valuable information from these massive data through advanced analytical techniques and algorithms to support decision-making, promote innovation, and optimize business processes.

[0003] In the field of big data management and analysis, existing technologies often rely on manual sorting to process data. This method involves data analysts manually screening, classifying and labeling data for subsequent analysis and processing. Although this method can provide customized solutions in some cases, it usually requires a lot of human resources and requires data analysts to have high professional skills and experience. In particular, different types of data or data of different importance require different processing methods or protection levels, so effective data identification is required.

[0004] However, the manual data sorting method has obvious limitations. First, the accuracy of this method depends largely on the personal ability and experience of the data analyst, which may lead to subjectivity and inconsistency in the analysis results. Secondly, with the continuous growth of data volume, the time and labor cost required for manual sorting have increased significantly, and the efficiency is low. In addition, manual sorting is difficult to cope with the real-time processing needs of data, which is particularly prominent in a market environment that requires rapid response. Therefore, the existing manual sorting method is not only inefficient when processing big data, but also difficult to ensure the accuracy and timeliness of the processing results, so there is a problem of low intelligence. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for identifying target data, so as to at least solve the problem of low intelligence level in the related art.

[0006] According to an embodiment of the present invention, a method for identifying target data is provided, comprising:

[0007] Collect, clean, segment, and extract features from training data to obtain a preprocessed data set;

[0008] Performing sampling and clustering processing on the preprocessed data set to obtain a training set;

[0009] Building and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and the training set;

[0010] The data to be identified is processed based on the identification model to determine the category of the data to be identified, so as to obtain target data.

[0011] Optionally, the training data is collected, cleaned, segmented, and feature extracted to obtain a preprocessed data set, including:

[0012] Identify preset symbols, punctuation marks, and preset keywords in the training data;

[0013] Cleaning the data containing the preset symbols, punctuation marks, and preset keywords to obtain preliminary screening data;

[0014] Performing word segmentation processing on the primary screening data to obtain word segmentation data;

[0015] The word segmentation data is vectorized to obtain the preprocessed data set.

[0016] Optionally, sampling and clustering the preprocessed data set to obtain a training set includes:

[0017] Randomly sampling the preprocessed data set to obtain noise data and non-noise data;

[0018] The non-noise data is retained based on a semi-supervised clustering algorithm to obtain the training set.

[0019] Optionally, the prior knowledge includes data pairs that must be connected and data pairs that should not be connected, the data pairs that must be connected are two data with similar meanings, and the data pairs that should not be connected are two data with different meanings.

[0020] Optionally, processing the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data includes:

[0021] Processing the data to be identified based on multiple classifier clusters of the identification model to obtain a prediction result;

[0022] The prediction results are processed based on a weighted voting algorithm to determine the category of the data to be identified, so as to obtain the target data.

[0023] Optionally, retaining the non-noise data based on a semi-supervised clustering algorithm to obtain the training set includes:

[0024] Among the retained non-noise data, a preset proportion of data is determined to construct the training set.

[0025] Optionally, the preset ratio is 10%.

[0026] According to another embodiment of the present invention, there is also provided a target data identification device, comprising:

[0027] The preprocessing module is used to collect, clean, segment and extract features of the training data to obtain a preprocessed data set;

[0028] Constructing a training set module for performing sampling and clustering processing on the preprocessed data set to obtain a training set;

[0029] A modeling module, used for constructing and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and the training set;

[0030] The execution module is used to process the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data.

[0031] Optionally, the device is further used to: identify preset symbols, punctuation marks, and preset keywords in the training data;

[0032] Cleaning the data containing the preset symbols, punctuation marks, and preset keywords to obtain preliminary screening data;

[0033] Performing word segmentation processing on the primary screening data to obtain word segmentation data;

[0034] The word segmentation data is vectorized to obtain the preprocessed data set.

[0035] Optionally, the device is further used to: randomly sample the preprocessed data set to obtain noise data and non-noise data;

[0036] The non-noise data is retained based on a semi-supervised clustering algorithm to obtain the training set.

[0037] Optionally, the prior knowledge includes data pairs that must be connected and data pairs that should not be connected, the data pairs that must be connected are two data with similar meanings, and the data pairs that should not be connected are two data with different meanings.

[0038] Optionally, the device is further used to: process the data to be identified based on multiple classifier clusters of the identification model to obtain a prediction result;

[0039] The prediction results are processed based on a weighted voting algorithm to determine the category of the data to be identified, so as to obtain the target data.

[0040] Optionally, the device is further used to: determine a preset proportion of data in the retained non-noise data to construct the training set.

[0041] Optionally, the preset ratio is 10%.

[0042] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, wherein the computer program executes the steps in any of the above method embodiments when executed by a processor.

[0043] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0044] According to the present invention, firstly, a recognition model is constructed and trained using a semi-supervised clustering algorithm, prior knowledge and a training set. A preprocessed data set can be obtained by collecting, cleaning, segmenting and extracting features from the training data. Then, the preprocessed data set is sampled and clustered to obtain a training set. Based on the training set, a recognition model is constructed and trained. Finally, the recognition model is used to process the data to be recognized and determine its category, thereby obtaining the target data. The whole process is fully automated, which greatly improves the efficiency and accuracy of data processing. Secondly, the accuracy of the traditional manual data sorting method depends largely on the personal ability and experience of the data analyst, and is prone to subjectivity and inconsistency. The present invention adopts advanced analysis technology and algorithms, and processes based on a large amount of training data and recognition models, which can more accurately determine the category of data, thereby improving the accuracy and consistency of the processing results. Finally, the existing manual sorting method has the problem of low efficiency when processing big data. The present invention uses an advanced clustering algorithm to sample and cluster the training data, thereby reducing the scale of data processing and improving the efficiency of processing. In addition, the recognition model has a certain parallel processing capability when processing the data to be recognized, and can cope with the real-time processing requirements of data.

[0045] In summary, the target data identification method of the present invention solves the problem of low intelligence in the prior art through automated processing, improved accuracy and consistency, and powerful processing capabilities, and provides a more efficient, accurate and reliable solution for the management and analysis of big data. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0047] Figure 1 is a structural schematic diagram of a computer terminal for executing a target data identification method according to an embodiment of the present invention;

[0048] Figure 2 is a flow chart of a method for identifying target data according to an embodiment of the present invention;

[0049] Figure 3 is a flow chart of a method for collecting, cleaning, segmenting, and extracting features of training data to obtain a preprocessed data set according to an embodiment of the present invention;

[0050] Figure 4 is a flow chart of a method for sampling and clustering a preprocessed data set to obtain a training set according to an embodiment of the present invention;

[0051] Figure 5 is a flowchart of a method for processing to-be-identified data based on a recognition model to determine the category of the to-be-identified data to obtain target data according to an embodiment of the present invention;

[0052] Figure 6 4 is a schematic diagram of the structure of a target data recognition device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0055] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 is a schematic diagram of the structure of a computer terminal for executing a target data identification method according to an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0056] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the target data identification method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a gateway so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0058] In this embodiment, a method for identifying target data is provided. Figure 2 is a flow chart of a method for identifying target data according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0059] Step S201, collecting, cleaning, segmenting, and feature extracting training data to obtain a preprocessed data set;

[0060] In an exemplary implementation, step S201 may include:

[0061] Data collection: Collect raw data from various data sources (such as databases, files, networks, etc.), which will be used for model training.

[0062] Data cleaning: Clean the raw data to remove noise, missing values, inconsistent data, etc. This can include removing duplicates, filling in missing values, correcting data errors, etc.

[0063] Word segmentation: For text data, word segmentation is performed, that is, the text data is divided into individual words or phrases. This can be done using some natural language processing tools, such as NLTK, Ji eba, etc.

[0064] Feature extraction: Extract meaningful features from the cleaned data. This can include word frequency statistics, TF-IDF value calculation, word vector representation, etc.

[0065] Step S202, sampling and clustering the preprocessed data set to obtain a training set;

[0066] In an exemplary implementation, step S202 may include:

[0067] Sampling: Extract a subset from the preprocessed dataset for training the model. The sampling method can be random sampling, stratified sampling, etc. to ensure that the sample is representative.

[0068] Clustering: Use clustering algorithms (such as K-means, hierarchical clustering, etc.) to cluster the sampled data and group similar data points. The purpose of this step is to perform preliminary grouping of the data to help with subsequent model training.

[0069] Step S203, constructing and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and a training set;

[0070] In an exemplary implementation, step S203 may include:

[0071] Semi-supervised clustering algorithm: combines a small amount of labeled data (prior knowledge) with a large amount of unlabeled data for clustering. Semi-supervised learning algorithms can use known label information to improve clustering accuracy.

[0072] Prior knowledge: Use existing knowledge (e.g., expert-labeled data) to guide the clustering process to improve the accuracy of the model.

[0073] Training the recognition model: Use the constructed training set to train the recognition model. For example, support vector machine (SVM), neural network, decision tree, etc. can be used. During the training process, the model continuously adjusts parameters to minimize the loss function, thereby improving classification accuracy.

[0074] Step S204: Process the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data.

[0075] In an exemplary implementation, step S204 may include:

[0076] Data input: Input the data to be identified into the trained model.

[0077] Data processing: The recognition model processes the input data and classifies the data according to the previously learned features and patterns.

[0078] Category determination: The model outputs the category to which each data point belongs, and ultimately determines the category of the data to be identified.

[0079] Result output: Output the recognition results to obtain the classification results of the target data.

[0080] Through the above steps S201 to S204, first, a recognition model is constructed and trained using a semi-supervised clustering algorithm, prior knowledge and a training set. A preprocessed data set can be obtained by collecting, cleaning, segmenting and extracting features from the training data. Then, the preprocessed data set is sampled and clustered to obtain a training set. Based on the training set, a recognition model is constructed and trained. Finally, the recognition model is used to process the data to be recognized and determine its category, thereby obtaining the target data. The entire process is fully automated, greatly improving the efficiency and accuracy of data processing.

[0081] Secondly, the accuracy of the traditional manual data sorting method depends largely on the personal ability and experience of the data analyst, which is prone to subjectivity and inconsistency. The present invention uses advanced analysis technology and algorithms, based on a large amount of training data and recognition models for processing, which can more accurately determine the category of data, thereby improving the accuracy and consistency of the processing results.

[0082] Finally, the existing manual sorting method has the problem of low efficiency when processing big data. The present invention uses advanced clustering algorithms to sample and cluster the training data, thereby reducing the scale of processing data and improving processing efficiency. In addition, the recognition model has a certain parallel processing capability when processing the data to be recognized, which can meet the real-time processing requirements of data.

[0083] In summary, the target data identification method of the present invention solves the problem of low intelligence in the prior art through automated processing, improved accuracy and consistency, and powerful processing capabilities, and provides a more efficient, accurate and reliable solution for the management and analysis of big data.

[0084] Figure 3 is a flowchart of a method for collecting, cleaning, segmenting, and extracting features of training data to obtain a preprocessed data set according to an embodiment of the present invention. In one implementation, Figure 3 As shown, the training data is collected, cleaned, segmented, and feature extracted to obtain a preprocessed data set, including:

[0085] Step S301, identifying preset symbols, punctuation marks, and preset keywords in training data;

[0086] In an exemplary embodiment, the goal of this step is to identify preset symbols, punctuation marks and keywords from the training data. These preset symbols, punctuation marks and keywords are text elements that are specially processed in subsequent processing. Regular expressions, natural language processing tools or predefined dictionaries can be used for identification. By traversing the training data, the matched preset symbols, punctuation marks and keywords are extracted and recorded.

[0087] Step S302, cleaning the data containing preset symbols, punctuation marks, and preset keywords to obtain preliminary screening data;

[0088] In an exemplary embodiment, this step requires cleaning the data containing preset symbols, punctuation marks and keywords to remove useless information and obtain preliminary screening data. Text processing techniques such as regular expressions, string operations and other methods can be used. According to the preset symbols, punctuation marks and keywords, the data containing these elements are filtered, replaced or deleted to obtain the cleaned preliminary screening data.

[0089] Step S303, performing word segmentation processing on the primary screening data to obtain word segmentation data;

[0090] In an exemplary embodiment, this step requires segmentation of the primary screening data to divide the text into meaningful words to obtain segmentation data. Segmentation tools in natural language processing technology can be used, such as Chinese segmentation tool ji eba, English segmentation tool NLTK, etc. These tools can divide the input text into basic vocabulary units according to different language characteristics and rules.

[0091] Step S304, vectorize the word segmentation data to obtain a preprocessed data set.

[0092] In an exemplary embodiment, this step needs to convert the word segmentation data into a numerical feature vector for subsequent training and modeling. Technologies such as Bag of Words or TF-IDF (Term Frequency-Inverse Document Frequency) can be used. These technologies can convert the word segmentation data into a numerical matrix, where each column represents a word, each row represents a sample, and each element in the matrix represents the frequency or importance of the corresponding word in the sample.

[0093] Through steps S301 to S304, a preprocessed data set can be obtained from the original training data through collection, cleaning, word segmentation and feature extraction, providing a basis for subsequent training and recognition model construction.

[0094] Figure 4 is a flow chart of a method for sampling and clustering a preprocessed data set to obtain a training set according to an embodiment of the present invention. In one implementation, Figure 4 As shown, the preprocessed data set is sampled and clustered to obtain a training set, including:

[0095] Step S401, randomly sampling the preprocessed data set to obtain noise data and non-noise data;

[0096] In an exemplary embodiment, this step requires randomly selecting a portion of data from the preprocessed data set as a training set. This process needs to consider the sufficiency and representativeness of the data to ensure that the selected training set can better represent the entire preprocessed data set. For example, a random number generator can be used to randomly select data that meets the requirements as a training set according to a pre-set sampling ratio.

[0097] Step S402: retain non-noise data based on a semi-supervised clustering algorithm to obtain a training set.

[0098] In an exemplary embodiment, this step requires clustering the training set obtained by random sampling to distinguish between noise data and non-noise data. A semi-supervised clustering algorithm is a method that can use data label information for clustering. It uses labeled data (non-noise data) as seed samples and assigns other data to corresponding clusters based on the similarity between the data. A graph-based semi-supervised clustering algorithm, such as a spectral clustering algorithm, can be used. The algorithm clusters the data by constructing a similarity matrix between the data and calculating eigenvectors and eigenvalues. Based on the clustering results, the non-noise data cluster can be used as the final training set, and the noise data can be excluded.

[0099] Through step S401 to step S402, step S401 selects a part of data from the preprocessed data set as a training set by random sampling, and step S402 clusters the training set by a semi-supervised clustering algorithm, retaining non-noise data as the final training set. The purpose of these steps is to extract representative and high-quality training samples for building a recognition model.

[0100] In one implementation, the prior knowledge includes data pairs that must be connected and data pairs that cannot be connected. The data pairs that must be connected are two data with similar meanings, and the data pairs that cannot be connected are two data with different meanings.

[0101] Figure 5 is a flowchart of a method for processing to-be-recognized data based on a recognition model to determine the category of the to-be-recognized data to obtain target data according to an embodiment of the present invention. In one implementation, Figure 5As shown, the data to be identified is processed based on the identification model to determine the category of the data to be identified to obtain the target data, including:

[0102] Step S501, processing the data to be identified based on multiple classifier clusters of the identification model to obtain a prediction result;

[0103] In an exemplary embodiment, this step is implemented as follows:

[0104] First, multiple classifier clusters need to be trained, each cluster contains multiple classifier models. These classifiers can be trained using different algorithms or parameters to improve the accuracy and robustness of the model.

[0105] The data to be recognized is preprocessed, including the same steps as the training data, such as data cleaning, word segmentation, and feature extraction.

[0106] The data to be identified is input into each classifier cluster for prediction. Each classifier cluster will make independent predictions on the data and generate prediction results.

[0107] Different processing methods can be adopted for the prediction results of each classifier cluster. For example, a voting mechanism is adopted, that is, the prediction results of each classifier cluster are counted, and the category with the most votes is selected as the final prediction result. It is also possible to adopt a weighted voting method to weight the prediction results according to the performance differences of the classifier clusters. It should be noted that the voting results can be obtained by identifying the voting results based on a computer terminal.

[0108] Step S502: Process the prediction results based on the weighted voting algorithm to determine the category of the data to be identified to obtain the target data.

[0109] In an exemplary embodiment, first, this step can weight the prediction results according to the performance, reliability and other factors of the classifier cluster through a weighted voting algorithm. Specifically, a classifier cluster with better performance will be assigned a higher weight. Secondly, for the weighted prediction results, the final category can be determined through a voting mechanism or other decision rules. For example, the category with the highest weighted score can be selected as the final prediction result, or a threshold can be set for judgment. Finally, the final category is the category of the target data, and the data to be identified can be classified according to this category.

[0110] In one embodiment, retaining non-noise data based on a semi-supervised clustering algorithm to obtain a training set includes:

[0111] In the reserved non-noise data, a preset proportion of data is determined to construct a training set.

[0112] In one implementation, the preset ratio is 10%.

[0113] According to another embodiment of the present invention, a target data identification device is also provided. Figure 6 is a schematic diagram of the structure of a target data recognition device according to an embodiment of the present invention. Figure 6 As shown, the device comprises:

[0114] The preprocessing module 61 is used to collect, clean, segment and extract features of the training data to obtain a preprocessed data set;

[0115] A training set building module 62 is used to perform sampling and clustering processing on the preprocessed data set to obtain a training set;

[0116] A modeling module 63, for building and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and a training set;

[0117] The execution module 64 is used to process the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data.

[0118] In one embodiment, the device is further used to: identify preset symbols, punctuation marks, and preset keywords in the training data;

[0119] Clean the data containing preset symbols, punctuation marks, and preset keywords to obtain preliminary screening data;

[0120] Perform word segmentation processing on the initial screening data to obtain word segmentation data;

[0121] The word segmentation data is vectorized to obtain a preprocessed data set.

[0122] In one embodiment, the apparatus is further used to: randomly sample the preprocessed data set to obtain noise data and non-noise data;

[0123] Based on the semi-supervised clustering algorithm, non-noise data is retained to obtain the training set.

[0124] In one implementation, the prior knowledge includes data pairs that must be connected and data pairs that cannot be connected. The data pairs that must be connected are two data with similar meanings, and the data pairs that cannot be connected are two data with different meanings.

[0125] In one embodiment, the device is further used to: process the data to be identified based on multiple classifier clusters of the identification model to obtain a prediction result;

[0126] The prediction results are processed based on a weighted voting algorithm to determine the category of the data to be identified in order to obtain the target data.

[0127] In one embodiment, the device is further used to: determine a preset proportion of data in the retained non-noise data to construct a training set.

[0128] In one implementation, the preset ratio is 10%.

[0129] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0130] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above method embodiments are executed.

[0131] In one implementation, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0132] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0133] In one implementation manner, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment will not be described in detail herein.

[0134] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0135] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for identifying target data, characterized in that: include: Collect, clean, segment, and extract features from training data to obtain a preprocessed data set; Performing sampling and clustering processing on the preprocessed data set to obtain a training set; Building and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and the training set; The data to be identified is processed based on the identification model to determine the category of the data to be identified, so as to obtain target data.

2. The method according to claim 1, characterized in that The training data is collected, cleaned, segmented, and feature extracted to obtain a preprocessed data set, including: Identify preset symbols, punctuation marks, and preset keywords in the training data; Cleaning the data containing the preset symbols, punctuation marks, and preset keywords to obtain preliminary screening data; Performing word segmentation processing on the primary screening data to obtain word segmentation data; The word segmentation data is vectorized to obtain the preprocessed data set.

3. The method according to claim 1, characterized in that The preprocessed data set is sampled and clustered to obtain a training set, including: Randomly sampling the preprocessed data set to obtain noise data and non-noise data; The non-noise data is retained based on a semi-supervised clustering algorithm to obtain the training set.

4. The method according to claim 1, characterized in that: The prior knowledge includes data pairs that must be connected and data pairs that should not be connected. The data pairs that must be connected are two data with similar meanings, and the data pairs that should not be connected are two data with different meanings.

5. The method according to claim 1, characterized in that Processing the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data, including: Processing the data to be identified based on multiple classifier clusters of the identification model to obtain a prediction result; The prediction results are processed based on a weighted voting algorithm to determine the category of the data to be identified, so as to obtain the target data.

6. The method according to claim 3, characterized in that Retaining the non-noise data based on a semi-supervised clustering algorithm to obtain the training set includes: Among the retained non-noise data, a preset proportion of data is determined to construct the training set.

7. The method according to claim 6, characterized in that The preset ratio is 10%.

8. A target data identification device, characterized in that: include: The preprocessing module is used to collect, clean, segment and extract features of the training data to obtain a preprocessed data set; Constructing a training set module for performing sampling and clustering processing on the preprocessed data set to obtain a training set; A modeling module, used for constructing and training a recognition model based on a semi-supervised clustering algorithm, prior knowledge, and the training set; The execution module is used to process the data to be identified based on the identification model to determine the category of the data to be identified to obtain target data.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program executes the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Absolute imbalance text classification method based on transfer learning

    CN107644057A

  • A cop-kmeans method and system based on semi-supervised clustering

    CN109409394A

  • Semi-supervised spammer identification method and system based on AP clustering

    CN110956210A