Intelligent algorithm multi-modal test data set construction method

The intelligent algorithm multi-modal test data set construction method solves the problem of lack of standardization in the verification and evaluation of intelligent equipment software, ensures the accuracy and coverage of the data set through multi-attribute quality assessment, and improves model training quality and prediction accuracy. , realizing the standardized development of intelligent equipment software test verification.

CN118673318APending Publication Date: 2024-09-20COMPREHENSIVE TECH & ECONOMIC RES INST OF CHINA STATE SHIPBUILDING CORP

Patent Information

Application Number
CN202410706493.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing technology lacks a unified standardized method to construct test data sets for intelligent algorithms, resulting in the inability to standardize the verification and evaluation of intelligent equipment software and failing to meet the testing needs brought about by the complexity of intelligent algorithms and the expansion of data sets.

Method used

An intelligent algorithm multi-modal test data set construction method is proposed, including determining the test data set construction scheme, data collection, annotation, cleaning, enhancement, balancing and evaluation, and providing a multi-attribute quality assessment method by dividing the standard compliance test data set , ensuring the accuracy, coverage, independence, distribution and diversity of data.

Benefits of technology

It achieves the standardized construction of intelligent algorithm test data sets, improves model training quality and prediction accuracy, provides a solid technical foundation, and promotes the standardized development of intelligent equipment software test verification and intelligence level assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673318A
    Figure CN118673318A
Patent Text Reader

Abstract

The invention discloses an intelligent algorithm multi-modal test data set construction method. The method comprises the following steps: step 1, determining a test data set construction scheme; 2, constructing a data acquisition scheme; 3, constructing a data labeling scheme; 4, constructing a data cleaning scheme; 5, constructing a data enhancement scheme; step 6, constructing a data balancing scheme; 7, dividing a standard conformity test data set; and step 8, evaluating the rationality of the standard conformity test data set. According to the method, the necessity of test data set construction and a test data set construction scheme are analyzed, the construction steps and method of the test data set are provided, a multi-attribute test data set quality evaluation method is formed, a solid technical foundation is laid for intelligent equipment software test verification and intelligent level evaluation, and the method has a wide application prospect. And standardized and normalized development of test data set construction rationality evaluation work is promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent equipment software evaluation, and in particular to a method for constructing a multimodal test data set for an intelligent algorithm. Background Art

[0002] With major breakthroughs in key technologies such as machine learning, computer vision, and natural language processing, as well as the development of intelligent technologies such as new equipment and new means, artificial intelligence has penetrated into all aspects of the military field, accelerating the profound transformation of the military field from mechanization and informatization to intelligence. The scientific and technological content and complexity of war have increased significantly, and its tactical and technical indicators and efficiency requirements have increased exponentially, with unprecedented complexity. The development of intelligent weapons has become an irreversible trend. Intelligent equipment software is the key to the formation of new domain and new quality combat capabilities in the future, and intelligent algorithms are one of the products of intelligent equipment software; intelligent algorithms are characterized by randomness, autonomy, and learning. Traditional testing methods (such as code walkthrough, formula theoretical calculation, typical examples, statement or branch coverage, etc.) are no longer applicable to intelligent equipment software; How to verify and intelligently evaluate intelligent algorithms is a difficult point in the current software testing of intelligent equipment. The relevant experimental testing technology is relatively backward and still has certain limitations. With the expansion of data sets and the increase in algorithm complexity, the selection and construction of test data sets have become more important. The evaluation method based on benchmark data sets can no longer meet the requirements. The test data set is a data set that has not been used in the modeling stage. Constructing a test data set can improve the quality of the data, thereby helping to improve the quality of model training and the accuracy of prediction. However, there is currently no unified standard for the test data set construction method, and there is no testing and evaluation standard for intelligent algorithms at home and abroad, resulting in "no standards to rely on" in the process of promoting intelligent algorithm testing and evaluation, and it is impossible to standardize and normalize the development of intelligent algorithm experimental testing and evaluation work. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a method for constructing a multimodal test data set for an intelligent algorithm, which lays a solid technical foundation for conducting intelligent equipment software test verification and intelligence level assessment, and promotes the standardization and normalization of the rationality assessment work of test data set construction.

[0004] The objective of the present invention is achieved through the following technical solution: a method for constructing a multimodal test data set for an intelligent algorithm, comprising the following steps:

[0005] Step 1: Determine the test data set construction plan;

[0006] Step 2: Construct a data collection plan;

[0007] Step 3: Construct a data annotation scheme;

[0008] Step 4: Construct a data cleaning solution;

[0009] Step 5: Construct a data enhancement scheme;

[0010] Step 6: Construct a data balancing solution;

[0011] Step 7: Divide the standard compliance test data set;

[0012] Step 8: Evaluate the rationality of the standard compliance test data set.

[0013] Preferably, step 1 specifically includes the following steps:

[0014] Step 1.1: Determine the testing mechanism of the intelligent system, including the system's basic software and hardware layer, algorithm model layer, and application service layer;

[0015] Step 1.2: Construct different test data sets according to the data modalities of the intelligent system, where the data modalities of the intelligent system include images, text, and speech.

[0016] Preferably, in step 2, constructing a data collection plan includes: determining the modality, source and collection method of data collection.

[0017] Preferably, step 3 comprises the following steps:

[0018] Step 3.1, determine the data annotation method of different modalities;

[0019] Step 3.2: Determine the format requirements for data annotation of different modalities;

[0020] Step 3.3, determine the verification method for data annotation of different modes;

[0021] Step 3.4: Determine the quality judgment method for data annotation of different modalities.

[0022] Preferably, step 4 comprises the following steps:

[0023] Step 4.1, determine the data cleaning methods for different modalities;

[0024] Step 4.2: Determine the data cleaning format for different modalities;

[0025] Step 4.3: Construct data cleaning solutions for different modalities.

[0026] Preferably, in step 5, the data enhancement methods in the data enhancement scheme include: image flipping, random cropping, rotation, scaling, translation, color transformation, style conversion and adversarial samples; one or more of the above data enhancement methods are adopted according to the data modality and data source.

[0027] Preferably, the data balancing scheme in step 6 considers the following: sample quantity balance, feature balance, boundary condition and outlier balance, undersampling, oversampling and generating new samples.

[0028] Preferably, in step 7, the method of dividing the standard compliance test data set includes "hold-out method", "cross-validation method" and "bootstrap method".

[0029] Preferably, in step 8, the standard compliance test data set is evaluated from five aspects, including: complexity, effectiveness, accuracy, adversarial nature, and balance of the standard compliance test data set.

[0030] Compared with the prior art, the present invention has the following advantages:

[0031] The present invention provides a method for constructing a multimodal test data set for an intelligent algorithm. Aiming at the problem that there is no unified standard for the test data set construction method and there is no standard to rely on during the intelligent algorithm testing and evaluation process, a method for evaluating the rationality of constructing a test set with different data modal standards is provided. The present invention analyzes the necessity of test data set construction and the test data set construction scheme, proposes the construction steps and methods of the test data set, and forms a multi-attribute test data set quality evaluation method, which lays a solid technical foundation for conducting intelligent equipment software test verification and intelligent level evaluation, and promotes the standardization and normalization of the test data set construction rationality evaluation work. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of a process for constructing a multimodal test data set for an intelligent algorithm in an embodiment of the present invention;

[0033] Figure 2 Schematic diagram of the intelligent system testing mechanism in Example 1 of the present invention. DETAILED DESCRIPTION

[0034] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0035] The technical solution of the present invention provides a method for constructing a multimodal test data set for an intelligent algorithm, comprising the following steps:

[0036] Step 1: Determine the test data set construction plan;

[0037] Step 2: Construct a data collection plan;

[0038] Step 3: Construct a data annotation scheme;

[0039] Step 4: Construct a data cleaning solution;

[0040] Step 5: Construct a data enhancement scheme;

[0041] Step 6: Construct a data balancing solution;

[0042] Step 7: Divide the standard compliance test data set;

[0043] Step 8: Evaluate the rationality of the standard compliance test data set.

[0044] like Figure 1 As shown, in one embodiment of the present invention, a method for formulating a test data set construction scheme is provided, which specifically includes the following steps:

[0045] Step 1.1: Determine the testing mechanism of the intelligent system, including the system's basic software and hardware layer, algorithm model layer, and application service layer:

[0046] Among them, determine the testing mechanism of the intelligent system, such as Figure 2 As shown, the following steps are included:

[0047] Step 1.1.1: Input the test data set into the application service. The application service calls the model interface and sends the data to the model. The model processes the input data, including data cleaning, preprocessing, feature extraction, etc.

[0048] Step 1.1.2, call a specific algorithm to infer the data. Intelligent algorithms rely on the neural network framework for inference. Operators are defined by hardware and encapsulated by software. By calling the interface between the operating system and the hardware, specific computing operations are implemented;

[0049] Step 1.1.3: The calculation results are returned from the basic software and hardware layer to the application service layer. Therefore, the basic software and hardware layer, the algorithm model layer, and the application service layer all need to be tested using a test data set.

[0050] Step 1.2: Construct different test data sets according to the data modalities of the intelligent system, where the data modalities of the intelligent system include images, text, and speech.

[0051] In this embodiment, to carry out the intelligent system standard compliance test, it is necessary to rely on the research and development unit, combine the specific use scenarios of the intelligent system, use algorithm simulation and simulation tools to render and generate data in different environments, and construct intelligent system test data sets of different data modes such as images, text, and voice. In the test data set, these different modal data are usually integrated with each other for different application scenarios and task requirements, and the construction of the test data set is required from different attributes such as accuracy, coverage, independence, distribution, and diversity. The details are as follows:

[0052] 1) Accuracy

[0053] The degree to which data has the property of correctly representing the true value of the relevant attributes of a concept or event in a given environment. Indicates whether the information recorded in the data is abnormal or erroneous.

[0054] Accuracy refers to whether the data is consistent with the objective characteristics it describes, including whether the source data is accurate, whether the data range is within a reasonable range, whether the trend of the outcome variable over time is reasonable, whether the coding mapping relationship is corresponding and unique, etc. Data accuracy needs to be identified and verified based on more authoritative references, for example, the endpoint event determination committee makes a judgment on whether the endpoint event is financially independent.

[0055] The accuracy of a dataset generally refers to the accuracy of data annotation. For example, a blurry feature in a photo should not be labeled as clear. If the data is incorrectly labeled, it will directly affect the results of the algorithm model indicator calculation.

[0056] 2) Coverage

[0057] The test dataset should cover as many data features and data sources as possible.

[0058] The preparation of the test data set is just to randomly select test data, which is easy to cause distortion of the test results and reduce the reliability of the algorithm model evaluation results. For example, according to the functional test design, the corresponding data is constructed for test coverage. For the face detection algorithm, in addition to considering the selection of positive samples and negative samples, it is also necessary to consider the coverage of facial features in the positive samples, such as face proportion, blur, lighting, posture (angle), integrity (occlusion) and other features.

[0059] In addition to the coverage of data features, it is also necessary to consider the coverage of data sources, and simulate and prepare data in combination with data from actual application environments and scenarios. For example, when searching for faces under cameras in public places, the images are generally blurry and the light intensity of the images varies. Therefore, when preparing data, it is also necessary to simulate the data based on this scenario. Generally speaking, it is best to use real production environment data as test data, and select test data from it according to the distribution of data features.

[0060] 3) Independence

[0061] The test data set should be independent of the training data set, and the training data should not be used as test data.

[0062] The independence of the test set also needs to consider the risk of distortion of the test results caused by mutual interference of the test data sets. Taking face retrieval as an example, 200 groups of face test data are prepared, each group is 10 face photos of the same person at different times or angles. When calculating the face retrieval algorithm model indicators, such as calculating the accuracy of TOP10, if there are other photos of the above 200 groups of people in the database, it will affect the indicator calculation results. For example, Jack is included in the 200 groups of faces, but in addition to Jack's 10 photos, there are 8 other Jack photos in the database. If the TOP10 pictures returned by the interface include 6 Jack pictures in the test set, 2 other Jack photos that are not in the test data set but in the database, and 2 non-Jack photos, how should the test accuracy be calculated? According to the test set (labeled), the accuracy is 60%, but the actual accuracy is 80%, resulting in distortion of the accuracy indicator calculation results. Therefore, when preparing the test set data, data interference needs to be considered. During the test preparation stage, other test data in the database should be evaluated. For example, a preliminary test should be conducted on 200 groups of face test data sets, and data with very high similarity should be analyzed to determine whether they are the same person. If so, the photo should be deleted or the person should not be removed from the 200 test sets.

[0063] 4) Distribution

[0064] The test data needs to be from the same distribution as the training data. The distribution of positive and negative samples in the training data is 7:3, and the distribution of the test data also needs to be 7:3, or close to this distribution, which is more reasonable. How to select the test set is critical, and generally follows the basic principles of independent and identical distribution and reasonable proportion. The balance of the data set refers to the consistency of the number of samples of various categories contained in the data set and the degree of deviation of the sample distribution of the data set.

[0065] 5) Diversity

[0066] The test dataset should contain a variety of sample types and characteristics so that the model can be evaluated in different situations. This includes different input types, sizes, shapes, ranges, and other characteristics to ensure that the model can handle a variety of complexities and uncertainties.

[0067] The test set used by testers can only cover the data generated by users in the formal environment as much as possible. The complex and diverse data in the formal environment requires continuous follow-up of external network data after going online. The applicability of the algorithm model depends to a certain extent on the amount of user data. When the number of users increases significantly, the performance of the model may decline as the data evolves. At this time, the model needs to be retrained with new data.

[0068] 6) Scalability

[0069] The size of the test dataset should be large enough to cover all possible situations and avoid statistical errors. At the same time, if the size of the test dataset is too small, it may cause the model to overfit, thus affecting its generalization ability.

[0070] The more test data there is, the more objectively it can reflect the real effect of the algorithm. However, due to the cost of testing, it cannot be exhausted. Generally, 20% is selected based on the real production environment. If the production environment has a huge amount of data, 1% to 2% or even less is selected. When the amount of data is relatively small, 7:3 training data and test data can be used. A common practice is to use about 2 / 3 to 4 / 5 of the sample data for training and the remaining samples for testing; or 6:2:2 training data, validation data and test data. If there are only 100, 1,000 or 10,000 pieces of data, then the above ratio division is very reasonable. If the amount of data is at the million level, then the proportion of validation set and test set to the total amount of data will tend to become smaller. If there are a million pieces of data, only 1,000 pieces of data are needed to evaluate a single classifier and accurately evaluate the performance of the classifier. Suppose there are 1 million pieces of data, of which 10,000 are used as validation sets and 10,000 are used as test sets. 10,000 out of 1 million is selected, and the ratio is 1%, that is, the training set accounts for 98%, and the validation set and test set each account for 1%. For applications with over one million data sets, the training set can account for 99.5%, the validation and test sets can each account for 0.25%, or the validation set can account for 0.4% and the test set can account for 0.1%.

[0071] Generally, the entire data set is divided into training set, validation set, and test set.

[0072] 7) Completeness

[0073] The test dataset needs to contain all possible situations in order to fully evaluate the performance of the model. This includes all possible input types, ranges, and conditions to ensure that the model can handle a variety of situations and generate correct outputs.

[0074] Completeness refers to the degree of missing data information, including missing variables and missing variable values. For different studies, the degree of missing data, missing distribution, missing causes and missing mechanisms of variable values ​​are different and should be described in detail. When the proportion of missing data in a specific study significantly exceeds that of similar studies, the uncertainty of the research conclusions will increase. At this time, it is necessary to carefully consider whether the data can be used as data to support the generation of real-world evidence. A detailed analysis of the reasons for missing data will help to make a comprehensive judgment on the reliability of the data. If the problem of filling missing data is involved, appropriate filling methods should be used based on reasonable assumptions about the missing mechanism.

[0075] Integrity includes data element integrity, data record integrity, metadata integrity, null value rate, and collection category integrity.

[0076] 8) Balance

[0077] For classification tasks, the test data set needs to balance the number of samples in each category to avoid sample skewness causing the model to overfit to a certain category.

[0078] 9) Privacy

[0079] When constructing a test dataset, it is necessary to ensure the protection of personal privacy and sensitive information. This can be achieved through anonymization, de-identification, or encryption to ensure the security and credibility of the test dataset.

[0080] 10) Test the boundary of the data set

[0081] When constructing the test data set, special consideration should be given to boundary conditions and outliers. These special cases may cause difficulties for the model when processing these data, so they need to be fully tested in the test data set.

[0082] In one embodiment of the present invention, a method for constructing a data acquisition plan for step 2 is provided, comprising the following steps: determining the modality, source and acquisition method of data acquisition.

[0083] Data collection is an important part of dataset construction, which refers to the process of obtaining data from various sources. This process can include collecting raw data directly from the actual environment, extracting data from online sources or databases, or generating data through simulation and emulation techniques. Common data collection methods include automated tools (such as web crawlers, sensor records), manual fine collection, on-site collection of project scenarios, and generating data using model simulation. Efficient and accurate data collection is essential to ensure the quality and applicability of the dataset.

[0084] In this embodiment, there are three main data collection methods: open data, manual collection, and simulation generation.

[0085] 1) Open Data:

[0086] Open data refers to data that is open to everyone on the Internet, including data open to specific industries, data open to governments at all levels, and relevant content data on web pages. This data can be collected through web crawler technology. Web crawlers are automated programs that can collect data on the Internet according to certain rules. When collecting data, it is necessary to comply with relevant laws and regulations and the terms of the website, and respect personal privacy and commercial secrets. At the same time, in order to improve the quality and reliability of data, it is necessary to conduct sufficient investigation and evaluation before data collection, and select reliable websites and data sources.

[0087] 2) Manual collection:

[0088] Manual data collection refers to data collection by manual means, including keyboard entry, paper document scanning, etc. This method requires a lot of manpower and material resources, but it can ensure the authenticity and accuracy of the data. When collecting data, it is necessary to formulate a detailed collection plan and process, and select appropriate tools and equipment. At the same time, in order to reduce errors and improve efficiency, it is necessary to provide necessary training and supervision to operators.

[0089] 3) Simulation generation:

[0090] Simulation generation refers to generating data through simulation experiments or simulation models. This method is often used in research fields such as machine learning and computer vision. By generating data through simulation, the data distribution and rules in real scenes can be simulated, providing reliable experimental data for algorithm development and testing. When generating simulation, it is necessary to select appropriate simulation software and models, and formulate a reasonable simulation experiment plan. At the same time, in order to improve the authenticity and reliability of the data, the simulation results need to be fully verified and corrected.

[0091] During data collection, the data collection plan covers the following contents: 1) the mode of data collection; 2) the automated method and manual intervention method of data collection; 3) the public data set used; 4) the conditions and quantity of data generated by model simulation; 5) data update strategy; 6) data quality assurance strategy.

[0092] In this embodiment, the intelligent system has three different data modes: image, text, and voice. The corresponding data collection contents are as follows:

[0093] 1) Image test dataset content

[0094] Battlefield image datasets, consisting of images collected during XX operations, exercises, or conflicts. They can include aerial images (such as aerial reconnaissance, satellite images), ground images (such as images taken by battlefield cameras), and images in other battlefield environments.

[0095] UAV image datasets can contain aerial images collected from UAV platforms, as well as images collected by sensors carried by UAVs (such as infrared cameras, thermal imaging cameras, etc.).

[0096] Signs and logo datasets usually contain signs and logo images of various sizes and angles. These signs and logos can be XX equipment, vehicles, buildings, signs, XX troop logos, etc.

[0097] 2) Text test dataset content

[0098] XX technical document dataset, including text data such as XX technical documents, specifications, manuals, guidelines, papers and standards. It covers information on XX equipment, weapon systems, communication technology, tactical procedures, etc.

[0099] The XX news and reports dataset contains text data such as XX news, reports, and comments. They come from various news media, XX publications, and official communications.

[0100] The instruction and command dataset contains text data such as XX instructions, commands, and tactical procedures. It is used to guide and regulate XX actions and combat plans.

[0101] 3) Contents of speech test dataset

[0102] Voiceprint datasets are used for training and evaluation of voiceprint recognition algorithms. These datasets contain individual voice recordings, covering a variety of voice features and voice expressions.

[0103] The communication signal dataset contains speech and audio signals from XX communication systems. It is usually used for tasks such as communication signal analysis, speech recognition, speech enhancement, and communication intelligence analysis.

[0104] Environmental sound datasets are used for training and evaluation of environmental sound recognition and classification algorithms. They contain sounds in various environments, such as explosions, gunshots, aircraft engines, vehicle sounds, etc.

[0105] Speech emotion datasets are used for training and evaluation of speech emotion recognition algorithms. They contain speech samples with different emotional expressions, such as anger, happiness, sadness, etc.

[0106] The Voice Command and Control Dataset is used to train and evaluate voice command and control algorithms to support voice interaction and voice control in XX systems. The dataset contains voice command and control samples used in various XX tasks, such as target calibration, navigation instructions, tactical commands, etc.

[0107] In one embodiment of the present invention, a method for constructing a data annotation scheme for step 3 is provided, comprising the following steps:

[0108] Step 3.1: Determine the data annotation method for different modalities:

[0109] First, determine the requirements for data annotation, which adds meaningful and accurate labels to raw data to make it suitable for machine learning and artificial intelligence applications. The choice of annotation method directly affects the quality and practicality of the dataset.

[0110] When labeling data, the following requirements should be met:

[0111] 1) Clarify the data annotation method. Choose an appropriate annotation method based on the data type (such as image, text, etc.). Data annotation usually includes classification annotation, box annotation, area annotation, point annotation, etc.;

[0112] 2) Clarify the data structure: Create data labels that are specific enough to exploit and general enough to cover all possible data variations;

[0113] 3) Clear data annotation policy: Develop detailed and easy-to-understand data annotation guidelines and best practices to ensure data consistency and accuracy among different annotators;

[0114] 4) Data collection verification: When working with data collection companies to build data sets, clear data set quality assurance measures must be established.

[0115] Step 3.2: Determine the format requirements for data annotation of different modalities:

[0116] In this embodiment, for the three different types of data modalities of the intelligent system, namely, image, text, and voice, the format requirements for data annotation include:

[0117] 1) Image test dataset format

[0118] Image data in the intelligent system image test dataset should be stored in PNG format, covering multiple forms such as visible light and infrared.

[0119] Image recognition is one of the hot research directions in the field of perception, and is also an important basis for realizing applications such as target detection and posture estimation. Image recognition is to determine the category of an image given an input image through a certain classification algorithm. The image recognition test dataset for intelligent systems should include the target image data of the intelligent system and the category to which the image belongs.

[0120] The task of target detection is to find all the targets (objects) of interest in the image and determine their categories and locations. The annotated text file in the target detection dataset should record the coordinates of the upper left corner of the target bounding box, the coordinates of the lower right corner of the target bounding box, the target category, etc. It can be stored in JSON or XML format.

[0121] The task of target tracking is to detect, extract, identify and track objects of interest in continuous images, so as to obtain relevant parameters of the target object, such as position, speed, scale, trajectory, etc., and further process and analyze them to understand the behavior of the target object or complete a higher-level task. The annotated text file in the target tracking dataset should record the coordinates of the upper left corner of the target bounding box, the coordinates of the lower right corner of the target bounding box, the target category, the initial target position, etc.

[0122] 2) Text test dataset format

[0123] The text data in the intelligent system text test data set should be stored in TXT or CSV format, covering both Chinese and English.

[0124] Text classification is a natural language processing task that aims to automatically classify a text into one or more predefined categories. Text classification technology can help Team J to quickly and nearly real-time share text information while avoiding information disasters caused by redundant information. The annotations in the intelligent system text classification test data set should contain the text content and the corresponding category information.

[0125] The named entity recognition task is an important branch in the field of natural language processing. It is mainly used to identify pre-defined category entities in texts, such as names of people, places, and institutions in general corpora. It has a wide range of applications in relation extraction and knowledge graph construction. The test dataset for named entity recognition in intelligent systems should be annotated based on the BIOES rule, where B represents the first character of the entity name, I represents the rest of the name except the beginning, O represents other parts that are not related to the entity category, E represents the end of the entity, and S represents that the word itself is an entity.

[0126] The main purpose of the summary generation task is to summarize the brief main points from the messy and long text, which helps to quickly and accurately process a large amount of news information and improve information processing efficiency. Through news summary generation, complex news information can be simplified into easy-to-understand summaries, providing better support for decision makers. The test data set for intelligent system summary generation should include the original text content and the summary content.

[0127] 3) Speech test dataset format

[0128] The voice data in the intelligent system voice test data set should be stored in WAV format, covering both Chinese and English.

[0129] Speech recognition refers to the use of computers and related speech recognition technologies to analyze and process speech signals in the field of business to achieve automated and intelligent speech recognition and speech processing. Speech recognition can be used to control unmanned systems and improve the ZZ capabilities of unmanned systems. The label file of the intelligent system speech recognition test data set should contain the audio storage path, start sample point, end sample point, and sentence text.

[0130] Voiceprint recognition is the process of converting sound signals into electrical signals and then using computers to identify them, including speaker recognition and speaker confirmation. In military communications, the application of voiceprint recognition technology to confirm the identity of the person who issues the command can effectively prevent the enemy from using our communication system to disguise and issue false commands to interfere with our military operations. The label file of the intelligent system voiceprint recognition test data set should contain the audio storage path, start sample point, end sample point, speaker ID, speaker name, speaker gender, etc.

[0131] The speech enhancement task is used to extract the purest original speech from noisy speech. It helps to improve the communication effect, voice intelligence collection and the reliability of voice commands. The speech enhancement test dataset of intelligent system should contain clean speech, real noisy speech and synthetic noisy speech. Its annotation files should include clean speech address, noisy speech address, noise type and sentence text.

[0132] Step 3.3: Determine the verification method for data annotation of different modes:

[0133] The test data set emphasizes the accuracy and consistency of data annotation. To this end, the developer and tester must set specific annotation requirements and quality inspection standards, including selecting appropriate annotation methods, ensuring the rationality of the data structure, formulating clear annotation policies, and implementing strict data collection and inspection measures. These requirements and standards are designed to ensure that the data set is not only specific but also generalized, and can cover all possible data changes, while also ensuring consistency between different annotators and the overall accuracy of the data. For the three different data modes of intelligent system images, text, and voice, the specific verification requirements for data annotation are as follows:

[0134] 1) Data annotation method: Select appropriate annotation methods according to the data type (e.g., image, text, etc.), such as classification annotation, box annotation, region annotation, point annotation, etc.;

[0135] 2) Data structure: Create data labels that are specific enough to exploit and general enough to cover all possible data variations;

[0136] 3) Data annotation policy: Develop detailed and easy-to-understand data annotation guidelines and best practices to ensure data consistency and accuracy among different annotators;

[0137] 4) Data collection verification: When working with data collection companies to build data sets, formulate clear data set quality assurance measures;

[0138] 5) Data annotation quality judgment methods: There are different quality judgment methods for different data types, such as images, speech, text, etc. For example, image annotation depends on the accuracy of pixel determination; speech annotation depends on the degree of synchronization between phonetic symbols and pronunciation time axis; text annotation depends on the specific requirements of the annotation task, such as the consistency and unambiguity of Chinese word segmentation, the accuracy of sentiment classification of sentiment annotation, etc.

[0139] Step 3.4: Determine the quality judgment method of data annotation of different modes:

[0140] In this embodiment, there are different quality determination methods for different data types, and the specific determination methods are as follows:

[0141] 1) Quality Standards for Image Annotation

[0142] The quality of image annotation depends on the accuracy of pixel determination. The closer the annotated pixel is to the edge pixel of the annotated object, the higher the annotation quality; conversely, the annotation quality is poor. According to the image annotation requirement of 100% accuracy, the error between the annotated pixel and the edge pixel of the annotated object should be within 1 pixel.

[0143] 2) Quality Standards for Speech Annotation

[0144] The quality of speech annotation depends on the degree of synchronization between the time axis of the speech data pronunciation and the phonetic symbols of the annotated area. If the error exceeds one speech frame, it is easy to annotate the next pronunciation, thus generating more noisy data.

[0145] 3) Quality Standards for Text Annotation

[0146] The quality standards for text annotation tasks vary. For example, the quality standard for Chinese word segmentation is that the annotated word segmentation is consistent with the word in the dictionary and there is no ambiguity. The quality standard for sentiment annotation requires that the sentiment classification level of the annotated sentence is correct. The quality standard for polyphone annotation is to use professional tools (such as dictionaries) to annotate all the pronunciations of a word; the quality standard for semantic annotation is to clearly annotate the true meaning of a word or sentence.

[0147] Typical data quality issues in the dataset include but are not limited to those shown in Table 1:

[0148] Table 1

[0149]

[0150]

[0151] In another embodiment of the present invention, a method for constructing a data cleaning solution for step 4 is provided, which specifically includes the following steps:

[0152] Step 4.1: Determine the data cleaning methods for different modes:

[0153] Data cleaning is one of the important steps in data preprocessing, which can improve the quality and accuracy of data. Different application scenarios and task requirements may require different cleaning processes and standards, so they need to be adjusted and optimized according to the specific data set requirements. The data cleaning methods for image, text, and speech test data sets are as follows:

[0154] The data cleaning method of the intelligent system image test dataset is as follows:

[0155] 1) Data cleaning: Data cleaning includes the following steps:

[0156] Data deduplication: remove duplicate images;

[0157] Data filtering: delete low-quality, non-standard, and unreasonable images;

[0158] Data repair: repair missing, noise, artifacts and other problems in the data;

[0159] Data augmentation: Increase the amount and diversity of data, such as rotating, translating, scaling, flipping, and adding noise to images.

[0160] 2) Data segmentation: Divide the data into training set, validation set and test set for model training, parameter adjustment and evaluation.

[0161] 3) Data storage: Save the cleaned data to a database or local file system.

[0162] Here, different application scenarios may require different cleaning processes and standards, so when performing image data cleaning, it is necessary to adjust and optimize according to the specific situation. For example, for image data of precision equipment, more stringent cleaning processes and standards may be required to ensure the accuracy and reliability of the model.

[0163] The data cleaning method of the intelligent system text test data set is as follows:

[0164] 1) Data preprocessing: including word segmentation, removal of stop words, removal of special symbols, etc., to make the text data more normalized and standardized.

[0165] 2) Data encoding conversion: Convert text data into the numerical form required for model training. Common encoding methods include one-hot encoding, bag-of-words model, TF-IDF, etc.

[0166] 3) Data filtering: Filter out low-quality text data, such as data containing a lot of noise, errors, duplications, and other problems.

[0167] 4) Data deduplication: Delete duplicate text data to avoid the impact of duplicate data on model training.

[0168] 5) Data labeling: Label the text data to facilitate subsequent training and evaluation.

[0169] 6) Data cleaning: including data cleaning and data organization, such as removing irrelevant data, filling missing values, standardization and other operations to ensure the accuracy and completeness of the data.

[0170] 7) Data storage: Save the cleaned text data to a database or local file system for subsequent training and evaluation.

[0171] When cleaning text data, you need to make adjustments and optimizations based on the specific situation. For example, for sentiment analysis tasks, you may need to pay more attention to the quality and accuracy of data annotation; for language translation tasks, you may need to pay more attention to data diversity and language coverage.

[0172] The data cleaning method of the intelligent system speech test data set is as follows:

[0173] 1) Data deduplication: Delete duplicate voice data to avoid the impact of duplicate data on model training;

[0174] 2) Data cutting: Cut the voice data into appropriate segments or perform necessary trimming according to actual needs;

[0175] 3) Data annotation: Annotate speech data, including speaker identity information, speech content, intonation, accent, etc., to facilitate subsequent training and evaluation;

[0176] 4) Data preprocessing: Perform necessary preprocessing operations, such as noise removal, standardization, feature extraction, etc., to improve the quality and consistency of speech data;

[0177] 5) Data cleaning: including data filtering and data organization, such as removing irrelevant data, filling missing values, standardization and other operations to ensure the accuracy and completeness of the data;

[0178] 6) Data storage: Save the cleaned speech test data set to a database or local file system for subsequent training and evaluation;

[0179] Step 4.2: Determine the data cleaning format for different modalities:

[0180] When cleaning voice data, it is necessary to adjust and optimize according to the specific situation. For example, for voice recognition tasks, it may be necessary to pay more attention to aspects such as data diversity and language coverage; for voice sentiment analysis tasks, it may be necessary to pay more attention to aspects such as data annotation quality and accuracy. At the same time, for some voice data that requires manual annotation, it is also necessary to formulate reasonable annotation specifications and processes to ensure the quality and consistency of annotation.

[0181] The format requirements for data cleaning of the three data modality test datasets of images, text, and speech are as follows:

[0182] (1) Data cleaning format of intelligent system image test dataset:

[0183] Format requirements usually refer to the output format after data cleaning, which usually varies according to different application scenarios and data types. For intelligent system image datasets, common format requirements include image formats such as JPEG, PNG, and BMP. During the format conversion process, data consistency and integrity must be ensured to avoid data loss or deformation. The format requirements for data cleaning of intelligent system image datasets usually include the following aspects:

[0184] 1) Image format conversion: Convert the collected image data into a unified format for subsequent processing and analysis. Common image formats include JPG, PNG, BMP, etc.

[0185] 2) Image resizing: Adjust the image size according to actual needs to meet the needs of model training and testing;

[0186] 3) Image annotation: Annotate image data, including object category, location, shape and other information, to facilitate subsequent training and evaluation;

[0187] 4) Data enhancement: Enhance the diversity and generalization ability of image data through rotation, translation, scaling, flipping, etc.;

[0188] 5) Data trimming: According to actual needs, image data is trimmed to meet the needs of model training and testing;

[0189] 6) Data format conversion: Convert image data into the format required for model training, such as converting image data into the format required by frameworks such as TensorFlow and PyTorch;

[0190] 7) Data storage: Save the cleaned image data to a database or local file system for subsequent training and evaluation;

[0191] When cleaning image data, you need to adjust and optimize it according to the specific situation. For example, for target detection tasks, you may need to pay more attention to the accuracy and completeness of the labeled data; for image classification tasks, you may need to pay more attention to data enhancement and format conversion.

[0192] In terms of format requirements, text data sets of intelligent systems are usually stored and transmitted in text formats such as TXT, CSV, and JSON. After data cleaning, text data needs to be output in the corresponding format. For example, for structured data, it needs to be arranged in a table format, and for unstructured data, the original text format needs to be retained. At the same time, in the process of text data cleaning, it is also necessary to consider the conversion and processing between different formats, such as converting PDF format documents to TXT format, etc.

[0193] (2) The format of data cleaning of text datasets for intelligent systems usually includes the following aspects:

[0194] 1) Data encoding: Convert text data into a computer-recognizable encoding format for subsequent processing and analysis. Common encoding methods include UTF-8, GBK, etc.

[0195] 2) Data deduplication: Delete duplicate text data to avoid the impact of duplicate data on model training;

[0196] 3) Data filtering: Filter out low-quality text data, such as data containing a lot of noise, errors, duplications, and other problems;

[0197] 4) Data annotation: Annotate text data to facilitate subsequent training and evaluation. Annotation methods can include part-of-speech tagging, named entity recognition, sentiment analysis, etc.

[0198] 5) Data format conversion: Convert text data into the format required for model training, such as converting text data into TF-IDF, Word2Vec and other representations;

[0199] 6) Data storage: Save the cleaned text data to a database or local file system for subsequent training and evaluation;

[0200] When cleaning text data, it is necessary to adjust and optimize according to the specific situation. For example, for text classification tasks, it may be necessary to pay more attention to data filtering and annotation; for text generation tasks, it may be necessary to pay more attention to data diversity and language coverage. At the same time, for some text data that requires manual annotation, it is also necessary to formulate reasonable annotation specifications and processes to ensure the quality and consistency of annotation.

[0201] In terms of format requirements, intelligent system voice data sets are usually stored and transmitted in audio file formats, such as WAV, MP3, FLAC, etc. After data cleaning, voice data needs to be output in the corresponding audio format to ensure data integrity and readability. At the same time, in the process of voice data cleaning, it is also necessary to consider the conversion and processing between different audio formats, such as unifying audio data with different sampling rates, bit depths, and numbers of channels.

[0202] (3) The format requirements for data cleaning of intelligent system speech datasets usually include the following aspects:

[0203] 1) Data encoding: converting voice data into a computer-recognizable encoding format for subsequent processing and analysis. Common encoding methods include PCM, WAV, etc.

[0204] 2) Data deduplication: Delete duplicate voice data to avoid the impact of duplicate data on model training;

[0205] 3) Data cutting: Cut the voice data into appropriate segments or perform necessary trimming according to actual needs;

[0206] 4) Data annotation: Annotate speech data, including the speaker’s identity information, speech content, intonation, accent, etc., to facilitate subsequent training and evaluation. Annotation methods can include speech-to-text conversion, keyword extraction, etc.

[0207] 5) Data preprocessing: Perform necessary preprocessing operations, such as noise removal, standardization, feature extraction, etc., to improve the quality and consistency of speech data;

[0208] 6) Data cleaning: including data filtering and data organization, such as removing irrelevant data, filling missing values, standardization and other operations to ensure the accuracy and completeness of the data;

[0209] 7) Data storage: Save the cleaned speech data to a database or local file system for subsequent training and evaluation.

[0210] Step 4.3: Construct data cleaning solutions for different modalities:

[0211] When cleaning voice data, it is necessary to adjust and optimize according to the specific situation. For example, for voice recognition tasks, it may be necessary to pay more attention to aspects such as data diversity and language coverage; for voice sentiment analysis tasks, it may be necessary to pay more attention to aspects such as data annotation quality and accuracy. At the same time, for some voice data that requires manual annotation, it is also necessary to formulate reasonable annotation specifications and processes to ensure the quality and consistency of annotation.

[0212] The content requirements for data cleaning of intelligent system image datasets refer to the content and format that must be included after data cleaning. For intelligent system image datasets, content requirements usually include image clarity, color, size, annotation information, etc. During the data cleaning process, it is necessary to remove irrelevant information, fill in missing information, correct erroneous information, etc. to ensure data consistency and accuracy. For some special data content, such as face recognition data, specific processing and annotation may also be required.

[0213] (1) Data cleaning of the intelligent system image test dataset mainly includes the following contents:

[0214] 1) Remove invalid data: Invalid data may be caused by equipment failure, data transmission errors and other reasons, such as abnormally high data values, abnormally low data values, etc. These data are not helpful for model training, but may introduce noise and affect the accuracy of the model;

[0215] 2) Supplement missing data: In the image test dataset, there may be some missing data. For example, some images cannot be successfully collected or processed for various reasons, resulting in some null values ​​in the dataset. In order to make the model fit the data better, these missing data need to be properly processed. Common processing methods include interpolation filling, deleting samples with missing data, etc.

[0216] 3) Data normalization: Image test data usually contains multiple features, and the numerical ranges of different features may vary greatly. In order to make the numerical values ​​of different features comparable, it is usually necessary to normalize the data. Normalization can adjust the numerical range of all features to [0, 1] or [-1, 1], so that the model can converge better during training;

[0217] 4) Data standardization: Data standardization is a commonly used data preprocessing method that converts raw data into a standard normal distribution. This can eliminate scale differences between data and avoid excessive impact of features of different scales on model training;

[0218] 5) Remove redundant data: In the image test data set, there may be some redundant data, such as repeated collection of some pictures, irrelevant pictures, etc. These data not only take up storage space, but also may affect the efficiency of model training. Therefore, it is necessary to clean these data to reduce data redundancy and waste;

[0219] 6) Verify data integrity: It is necessary to confirm the integrity of the data, that is, all data is valid, complete and accurate. For some abnormal data, verification and correction are required to ensure the accuracy and completeness of the data;

[0220] 7) Data label processing: For the label data in the image test data set, appropriate processing is required to ensure the accuracy and completeness of the label data. Common processing methods include removing duplicate labels, correcting incorrect labels, etc.

[0221] In the data cleaning process of the intelligent system image test dataset, it is necessary to select appropriate data cleaning methods according to specific situations to ensure the accuracy and completeness of the data, thereby improving the training quality and accuracy of the model;

[0222] In terms of content requirements, data cleaning of text data sets for intelligent systems mainly includes removing irrelevant information, filling in missing information, correcting erroneous information, and eliminating noise.

[0223] (2) Data cleaning of the intelligent system text test dataset mainly includes the following contents:

[0224] 1) Dataset quality filtering: For the collected text test dataset, quality filtering is first required to remove low-quality data. Common problems include data redundancy, noise, errors, etc. The data cleaning process needs to address these specific problems to improve the quality and consistency of the dataset;

[0225] 2) Data preprocessing: Data preprocessing is one of the important steps in data cleaning, which includes operations such as word segmentation, removal of stop words, and removal of special symbols. These operations can make text data more normalized and standardized, which is convenient for subsequent data analysis and model training;

[0226] 3) Data encoding conversion: Text data is usually stored in the form of strings, and model training requires converting text data into numerical form. Therefore, when performing data cleaning, text data needs to be converted into the numerical form required for model training. Common encoding methods include one-hot encoding, bag-of-words model, TF-IDF, etc.

[0227] 4) Remove irrelevant data: In the text test data set, there may be some irrelevant data, such as advertisements, comments, etc. These data not only take up storage space, but also may affect the efficiency of model training. Therefore, these data need to be cleaned to reduce data redundancy and waste;

[0228] 5) Data label processing: For the label data in the text test data set, appropriate processing is required to ensure the accuracy and completeness of the label data. Common processing methods include removing duplicate labels, correcting incorrect labels, etc.

[0229] 6) Dataset annotation: For some text test datasets that require manual annotation, data cleaning also includes data annotation. The annotation process needs to follow certain specifications and standards to ensure the quality and consistency of the annotation;

[0230] 7) Correcting incorrect information: There may be incorrect information in the text data set, such as spelling errors, grammatical errors, etc. These incorrect information will affect the training and testing results of the model, so they need to be corrected during the data cleaning process. The correction method can be automatic correction using natural language processing technology or manual correction.

[0231] In the data cleaning process of the intelligent system text test data set, it is necessary to select appropriate data cleaning methods according to the specific situation to ensure the accuracy and completeness of the data, thereby improving the training quality and accuracy of the model.

[0232] In terms of content requirements, data cleaning of intelligent system speech data sets mainly includes removing irrelevant information, filling in missing information, correcting erroneous information, and eliminating noise.

[0233] (3) Data cleaning of the intelligent system speech test dataset mainly includes the following contents:

[0234] 1) Data deduplication: For the collected speech test data set, data deduplication is first performed to remove duplicate data. These duplicate data may be caused by multiple collections, copy and paste, etc., which is not helpful for model training, but will take up storage space and reduce data processing efficiency;

[0235] 2) Data cutting: Cut the voice data into appropriate segments or perform necessary trimming according to actual needs. For some voice data that requires detailed analysis, it may be necessary to cut the voice data into smaller segments to facilitate subsequent analysis and processing;

[0236] 3) Data annotation: The audio data in the speech test data set needs to be annotated. The annotation process needs to be performed by professionals, and the annotation content can include the speaker's identity information, speech content, intonation, accent, etc. The annotation process needs to follow certain specifications and standards to ensure the quality and consistency of the annotation;

[0237] 4) Data preprocessing: For speech data, preprocessing is required to remove noise, fill missing values, standardize, etc. Common preprocessing methods include using filters to remove noise, using interpolation methods to fill missing values, and standardizing audio data;

[0238] 5) Data format conversion: Voice data is usually stored in the form of audio files, and model training requires converting audio data into numerical form. Therefore, when performing data cleaning, the audio data needs to be converted into the numerical form required for model training. Common format conversion methods include converting audio files into formats such as WAV, MP3, or converting audio data into feature vectors;

[0239] 6) Data storage and management: The cleaned speech test data set needs to be stored and managed properly. A dedicated data warehouse or database can be established to store and manage this data to ensure data security and accessibility. At the same time, attention should be paid to data backup and recovery to prevent data loss or damage.

[0240] In the data cleaning process of the intelligent system speech test data set, it is necessary to select appropriate data cleaning methods according to the specific situation to ensure the accuracy and completeness of the data, thereby improving the training quality and accuracy of the model.

[0241] In one embodiment of the present invention, a method for constructing a data enhancement scheme for step 5 is provided, including: image flipping, random cropping, rotation, scaling, translation, color transformation, style conversion and adversarial samples; one or more of the above data enhancement methods are adopted according to the data modality and data source.

[0242] In the test dataset construction process, data augmentation is an important technique that can be used to improve the generalization ability and robustness of the model. Data augmentation requires a series of transformations and operations on the original data to generate more data samples, thereby increasing the size of the training dataset.

[0243] Data augmentation is a technique that expands a dataset by creating new data variants. The purpose is to increase data diversity and improve the generalization ability of the model without changing the data distribution. The following is a detailed explanation of image data augmentation from eight aspects:

[0244] 1) Image flip

[0245] Image flipping refers to flipping an image horizontally or vertically to generate new image variants. This enhancement method can help the model learn the spatial transformation of images and improve the generalization ability of the model.

[0246] 2) Random cropping

[0247] Random cropping refers to cropping a sub-image of a specified size at a random position of the image to generate new data samples. This enhancement method can help the model learn local features and contextual information and improve the generalization ability of the model.

[0248] 3) Rotation

[0249] Rotation refers to rotating an image around its center point by a certain angle to generate new image variants. This enhancement method can help the model learn the rotation invariance of images and improve the generalization ability of the model.

[0250] 4) Scaling

[0251] Scaling refers to adjusting the size of an image to a specified ratio to generate new image variants. This enhancement method can help the model learn the scale invariance of images and improve the generalization ability of the model.

[0252] 5) Translation

[0253] Translation refers to moving an image horizontally or vertically by a certain distance to generate new image variants. This enhancement method can help the model learn the translation invariance of images and improve the generalization ability of the model.

[0254] 6) Color change

[0255] Color transformation refers to the process of changing the color attributes of an image, such as brightness, contrast, and saturation, to produce new image variants. This enhancement method can help the model learn the color invariance of images and improve the generalization ability of the model.

[0256] 7) Style Transfer

[0257] Style transfer refers to converting an image of one style into another, such as converting Van Gogh's "Starry Night" into Picasso's "Starry Night". This enhancement method can help the model learn the features and representations of different styles and improve the generalization ability of the model.

[0258] 8) Adversarial Examples

[0259] Adversarial samples are generated by adding noise, perturbations, interference, etc., which are as similar as possible to the original samples but are actually wrong samples. This enhancement method can help the model learn to identify adversarial samples and improve the generalization ability of the model.

[0260] Different data enhancement methods can be used for multiple data modalities and multiple data sources. For example, for image data, data diversity can be enhanced by rotation, translation, scaling, flipping, etc.; for text data, data generation, language modeling, etc. can be used to enhance the quantity and diversity of data. In the test data set construction process, data enhancement requires maintaining the distribution consistency of the data set, increasing data diversity, avoiding overfitting, considering boundary conditions and outliers, and maintaining the accuracy of annotations. These requirements enable the model to face richer and more diverse data samples during training and testing, thereby improving the generalization ability and robustness of the model.

[0261] In one embodiment of the present invention, a method for constructing a data balancing scheme for step 6 is provided. When constructing the data balancing scheme, the following contents need to be considered: sample quantity balance, feature balance, boundary condition and outlier balance, undersampling, oversampling, and generating new samples.

[0262] Data imbalance means that the amount of data in some categories is significantly less than that in other categories, which causes the model to be skewed during training and evaluation. In the case of multiple data modalities and multiple data sources, since the distribution of different types of data may be different, it is necessary to balance the amount of data of different types. Data balancing is to adjust the sample distribution in the data set so that the number of samples of different categories or different features is relatively balanced, thereby improving the generalization ability and robustness of the model.

[0263] In the process of building a test dataset, data balance is also an important consideration. For classification tasks, the number of samples in each category should be close to avoid too many or too few samples in some categories, which will lead to poor learning effects of the model for some categories. The requirements for data balance include the following:

[0264] 1) Sample size balance

[0265] In the test data set, the number of samples in each category should be the same or close. This allows the model to have sufficient exposure and training to samples of each category during training and testing, thereby improving the generalization ability and accuracy of the model.

[0266] 2) Feature balance

[0267] In addition to sample quantity balance, feature balance also needs to be considered. That is, the samples of each category should be the same or close in feature distribution. This allows the model to better capture the features of each category during training and testing, thereby improving the generalization ability and accuracy of the model.

[0268] 3) Boundary conditions and outlier balance

[0269] In the test data set, the balance between boundary conditions and outliers also needs to be considered. That is, the samples of each category should be the same or close in the distribution of boundary conditions and outliers. This allows the model to better handle boundary conditions and outliers during training and testing, thereby improving the generalization ability and robustness of the model.

[0270] 4) Undersampling

[0271] Undersampling refers to selecting samples from a minority class from a dataset to reduce the difference in the number of samples between different classes. This strategy is usually applicable to cases of class imbalance, that is, the number of samples in one class is much larger than that in other classes. Through undersampling, the number of samples in different classes can be relatively balanced, thereby avoiding overfitting of the model to the samples in the minority class.

[0272] 5) Oversampling

[0273] Oversampling refers to increasing the number of samples in a dataset by repeatedly copying samples of the minority class or generating new samples of the minority class. This strategy is usually applicable to cases of class imbalance, that is, the number of samples in one class is much smaller than that of other classes. Through oversampling, the number of samples in different classes can be relatively balanced, thereby avoiding overfitting of the model to the samples of the majority class.

[0274] 6) Generate new samples

[0275] Generating new samples means generating new data samples through specific algorithms and techniques to increase the number of samples in the data set. This strategy is usually applicable to situations where there is a lack of sufficient training data. Methods for generating new samples include random generation, rule-based generation, model-based generation, etc. By generating new samples, the size of the data set can be expanded, thereby increasing the generalization ability of the model.

[0276] Data balancing is one of the important methods to solve the problems of class imbalance and lack of sufficient training data. In actual operation, it is necessary to select appropriate methods for balancing according to specific data sets and requirements. The requirements for data balancing in the test data set construction process include sample quantity balance, feature balance, boundary condition and outlier balance, and annotation accuracy and consistency. These requirements can enable the model to better handle samples and features of each category during training and testing, thereby improving the generalization ability and accuracy of the model.

[0277] In one embodiment of the present invention, a method for dividing the standard compliance test data set for step 7 is provided, including a "hold-out method", a "cross-validation method" and a "bootstrap method".

[0278] The standard data set should include a training set (including training and validation) and a test set. The training set is used to train and generate machine learning models, and the test set is used to test the performance of machine learning models. The standard data set partitioning characteristics include sub-characteristics such as the mutual exclusivity of the training set and the test set, and the consistency of sample distribution. The partitioning of the standard data set can be done by methods such as the "holdout method", "cross-validation method" and "bootstrap method". The test methods for the mutual exclusivity of the training set and the test set, the consistency of sample distribution, etc. are shown in Table 2.

[0279] Table 2

[0280]

[0281]

[0282] In one embodiment of the present invention, a method for evaluating the rationality of a standard compliance test data set for step 8 is provided, including evaluations of the complexity, effectiveness, accuracy, adversarial nature, and balance of the standard compliance test data set, as shown in Tables 3 to 15:

[0283] (1) Evaluation of the complexity of the test dataset

[0284] 1) Size

[0285] Table 3

[0286]

[0287]

[0288] 2) Coverage

[0289] Table 4

[0290]

[0291] (2) Evaluation of the effectiveness of the test dataset

[0292] 1) Independence

[0293] Table 5

[0294]

[0295]

[0296] 2) Same distribution

[0297] Table 6

[0298]

[0299] 3) Reasonableness

[0300] Table 7

[0301]

[0302] (3) Accuracy evaluation of test data set

[0303] 1) Labeling quality indicators

[0304] Table 8

[0305]

[0306]

[0307] (4) Adversarial evaluation of test dataset

[0308] 1) Pollution

[0309] Table 9

[0310]

[0311] 2) Transformability

[0312] Table 10

[0313]

[0314] (5) Test data set balance evaluation

[0315] 1) Group stability

[0316] Table 11

[0317]

[0318] 2) Mean stability

[0319] Table 12

[0320]

[0321]

[0322] 3) Variance stability

[0323] Table 13

[0324]

[0325] 4) Skewness stability

[0326] Table 14

[0327]

[0328]

[0329] 5) Kurtosis stability

[0330] Table 15

[0331]

[0332] The technical solutions described in the above embodiments can be combined arbitrarily without conflict.

[0333] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A method for constructing a multimodal test data set for an intelligent algorithm, characterized in that: The method comprises the following steps: Step 1: Determine the test data set construction plan; Step 2: Construct a data collection plan; Step 3: Construct a data annotation scheme; Step 4: Construct a data cleaning solution; Step 5: Construct a data enhancement scheme; Step 6: Construct a data balancing solution; Step 7: Divide the standard compliance test data set; Step 8: Evaluate the rationality of the standard compliance test data set.

2. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 1, characterized in that: The step 1 specifically comprises the following steps: Step 1.1: Determine the testing mechanism of the intelligent system, including the system's basic software and hardware layer, algorithm model layer, and application service layer; Step 1.2: Construct different test data sets according to the data modalities of the intelligent system, where the data modalities of the intelligent system include images, text, and speech.

3. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 2, characterized in that: In the step 2, constructing a data collection plan includes: determining the mode, source and collection method of data collection.

4. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 3, characterized in that: The step 3 comprises the following steps: Step 3.1, determine the data annotation method of different modalities; Step 3.2: Determine the format requirements for data annotation of different modalities; Step 3.3, determine the verification method for data annotation of different modes; Step 3.4: Determine the quality judgment method for data annotation of different modalities.

5. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 4, characterized in that: The step 4 comprises the following steps: Step 4.1, determine the data cleaning methods for different modalities; Step 4.2: Determine the data cleaning format for different modalities; Step 4.3: Construct data cleaning solutions for different modalities.

6. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 5, characterized in that: In step 5, the data enhancement methods in the data enhancement scheme include: image flipping, random cropping, rotation, scaling, translation, color transformation, style conversion and adversarial samples; one or more of the above data enhancement methods are adopted according to the data modality and data source.

7. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 6, characterized in that: The data balancing scheme in step 6 considers the following: sample quantity balance, feature balance, boundary condition and outlier balance, undersampling, oversampling and generating new samples.

8. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 7, characterized in that: In step 7, the method of dividing the standard compliance test data set includes "hold-out method", "cross-validation method" and "bootstrap method".

9. The method for constructing a multimodal test data set for an intelligent algorithm according to claim 8, characterized in that: In step 8, the standard compliance test data set is evaluated from five aspects, including: complexity, effectiveness, accuracy, adversarial nature, and balance of the standard compliance test data set.

Citation Information

Patent Citations

  • Credibility evaluation method for artificial intelligence software

    CN117194231A

  • Method for adjusting and optimizing electric power visual large model in power distribution scene

    CN118036335A

  • Data aggregation

    US20050097150A1

Cited By

  • Data set quality evaluation test method oriented to artificial intelligence

    CN119377206A

  • Test set construction method and device of intelligent cockpit voice model and electronic equipment

    CN119694309A

  • Methods, devices, and electronic equipment for constructing test sets for intelligent cockpit voice models

    CN119694309B