A method and system for detecting prohibited ingredients in animal-derived food
Through intelligent data preprocessing and detection method recommendation, combined with genetic algorithm model optimization detection algorithm, the problem of low detection efficiency of prohibited ingredients in animal-derived foods has been solved, rapid screening and high-accuracy detection have been achieved, and food safety supervision capabilities have been improved. .
Patent Information
- Application Number
- CN202410940149.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Existing detection methods for prohibited ingredients in animal-derived foods have low detection efficiency when faced with a large number of samples and cannot be screened quickly, which limits the real-time detection and ability to respond to emergencies.
By acquiring and preprocessing animal-derived food data, extracting data features, establishing data classification data groups, and constructing a detection method knowledge base, recommending applicable detection methods, using intelligent and automated processes for detection analysis, optimizing detection algorithms, and combining genetic Algorithmic models are trained to improve detection accuracy and efficiency.
It significantly improves the detection efficiency, ensures the accuracy and reliability of detection, reduces labor costs, improves food safety supervision capabilities, can quickly detect prohibited ingredients, and takes timely measures to ensure food safety.
Smart Images

Figure CN118503767B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of animal food detection, and in particular to a method and system for detecting prohibited ingredients in animal-derived food. Background Art
[0002] The detection of prohibited ingredients in animal-derived foods is an important part of ensuring food safety, and mainly involves the detection of illegal additives, banned drugs, heavy metals and other harmful substances in animal-derived foods such as meat, dairy products, and eggs.
[0003] The detection of prohibited ingredients in animal-derived foods is an important means of ensuring food safety. At present, a complete detection system has been established in this field, including a variety of advanced detection technologies, such as PCR, high-performance liquid chromatography, chromatography-mass spectrometry, etc. The methods are characterized by high sensitivity and good accuracy. At the same time, with the advancement of technology, new detection methods are constantly emerging, further improving the efficiency and accuracy of detection.
[0004] Although there are a variety of detection technologies to choose from, there is still a need to continuously improve the accuracy of detection when faced with complex and diverse prohibited ingredients. For example, the content of some prohibited drugs is very low, which requires the detection method to have extremely high sensitivity. At the same time, detection efficiency is also a challenge, especially when a large number of samples need to be screened quickly. Existing detection methods require a long time to process and analyze samples, which to a certain extent limits the real-time nature of detection and the ability to respond to emergencies. Summary of the invention
[0005] The purpose of the present invention is to provide a method for detecting prohibited ingredients in animal-derived food, so as to solve the problem that the existing detection methods require a long time to process and analyze samples when a large number of samples need to be quickly screened.
[0006] In a first aspect, the present invention provides a method for detecting prohibited ingredients in animal-derived food, comprising:
[0007] Acquire animal-derived food data, pre-process the animal-derived food data to obtain animal-derived food data in a standard format after pre-processing, extract data features from the animal-derived food data to obtain types of animal-derived food data, and establish a classification data group for animal-derived food data according to the types of animal-derived food data;
[0008] Constructing a knowledge base of animal-derived food data detection methods, and establishing a label for each animal-derived food data detection method in the knowledge base, wherein the label information includes applicable animal-derived food detection types;
[0009] Match the classified data of animal-derived food data in the knowledge base of animal-derived food data detection methods to obtain recommended animal-derived food data detection methods, retrieve the animal-derived food data that needs to be tested for prohibited food ingredients from the classified data of animal-derived food data, perform detection and analysis using the recommended animal-derived food data detection method, and obtain the detection results.
[0010] Furthermore, the method for detecting prohibited ingredients in animal-derived food provided by the present invention obtains animal-derived food data, pre-processes the animal-derived food data to obtain animal-derived food data in a standard format after pre-processing, extracts data features from the animal-derived food data to obtain types of animal-derived food data, and establishes a classification data group of animal-derived food data according to the types of animal-derived food data, including:
[0011] Establish channels for obtaining data on animal-derived foods and establish data communications with food manufacturers, market regulators and third-party testing agencies;
[0012] Obtaining animal-derived food data including food source, production date, batch number, ingredient list, and information on additives used in the production process;
[0013] The pre-processed animal-derived food data in a standard format include food type, production date, and origin information.
[0014] Furthermore, the method for detecting prohibited ingredients in animal-derived food provided by the present invention constructs a knowledge base of animal-derived food data detection methods, and establishes a label for each animal-derived food data detection method in the knowledge base of animal-derived food data detection methods. The label information includes the type of animal-derived food detection applicable to the label, including:
[0015] Collect various testing methods for animal-derived foods, and classify and sort the collected testing methods for animal-derived foods according to their applicable food types, testing targets, and technical principles. The testing targets include prohibited ingredients and nutrients, and the technical principles include chromatography, mass spectrometry, and immunological methods;
[0016] The collected testing methods are sorted according to the standard format, and the categories of sorting include method name, principle, steps, and scope of application information;
[0017] According to the characteristics and application requirements of the detection method, formulate the naming rules and classification standards of the label. According to the label rules, assign corresponding labels to each detection method. The labels include those applicable to the detection category and the detection method;
[0018] A special table or field is created for label information in the animal-derived food data detection method knowledge base to store the label information of each detection method.
[0019] Furthermore, the method for detecting prohibited ingredients in animal-derived food provided by the present invention matches the animal-derived food data classification data in the animal-derived food data detection method knowledge base to obtain a recommended animal-derived food data detection method, retrieves the animal-derived food data that needs to be tested for prohibited ingredients in the animal-derived food data classification data, performs detection and analysis through the recommended animal-derived food detection method, and obtains the detection results, including:
[0020] Read the classified animal-derived food data from the animal-derived food data classification data group, the data including key information such as food type, source, and production date, and obtain the classification label of the animal-derived food data;
[0021] According to the classification labels of animal-derived food data, matching detection methods are searched in the animal-derived food data detection method knowledge base, and based on the matching results, suitable detection methods are recommended for each type of food;
[0022] Filter out animal-derived food data that needs to be tested for prohibited ingredients from the classified data, and pre-process the data to be tested;
[0023] According to the recommended detection method, the corresponding detection algorithm is called to obtain the preset prohibited component detection algorithm, and the pre-processed data to be detected is passed as input to the detection algorithm or program;
[0024] Through the preset prohibited ingredient detection algorithm, the prohibited ingredient analysis is performed on the test data, the output of the detection algorithm or program is parsed, and key information is extracted, including the detection of prohibited ingredients, the type and content of prohibited ingredients;
[0025] The test results are stored in the animal-derived food data detection method knowledge base and output to the user.
[0026] Furthermore, the method for detecting prohibited ingredients in animal-derived food provided by the present invention backs up the data to be detected, uses the backed-up data to be detected as the second data to be detected, and uses the original data as the first data to be detected, and uses the first data to be detected and the second data to be detected to perform data analysis through a preset prohibited ingredient detection algorithm to obtain a first detection result and a second detection result;
[0027] The first detection result is compared with the second detection result. If there is a difference between the first detection result and the second detection result, the preset prohibited component detection algorithm is optimized.
[0028] Furthermore, the method for detecting banned ingredients in animal-derived food provided by the present invention uses the data in the animal-derived food data classification data group to train a preset banned ingredient detection algorithm to obtain an optimized banned ingredient detection algorithm, and uses the optimized banned ingredient detection algorithm to detect the first data to be detected and the second data to be detected, and compare the detection results. If there is still a difference in the detection results between the first data to be detected and the second data to be detected, then a genetic algorithm model is trained based on the animal-derived food data classification data group and the data generated in the above steps to obtain a banned ingredient detection model trained based on the genetic algorithm, and the banned ingredient detection model trained based on the genetic algorithm is deployed in the system for use.
[0029] In a second aspect, the present invention provides a system for detecting prohibited ingredients in animal-derived food, including: a server end, a user end, a background control end, and a detection device end, wherein the server end establishes a communication connection with the user end, the background control end, and the detection device end;
[0030] The server side obtains animal-derived food data, pre-processes the animal-derived food data, obtains the animal-derived food data in a standard format after pre-processing, extracts data features of the animal-derived food data, obtains the types of animal-derived food data, and establishes a classification data group of animal-derived food data according to the types of animal-derived food data;
[0031] Constructing a knowledge base of animal-derived food data detection methods, and establishing a label for each animal-derived food data detection method in the knowledge base, wherein the label information includes applicable animal-derived food detection types;
[0032] The animal-derived food data classification data is matched in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, and the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data is retrieved. The recommended animal-derived food data detection method is used to perform detection and analysis to obtain the detection results, which are sent from the server to the user end and the background control end.
[0033] The beneficial effects of the present invention are as follows:
[0034] Improve detection efficiency: Through intelligent data preprocessing, feature extraction and detection method recommendation, the present invention can quickly complete the screening of a large number of samples and significantly improve detection efficiency.
[0035] Ensure detection accuracy: The present invention recommends appropriate detection methods for different types of animal-derived foods, thereby ensuring the accuracy and reliability of the detection.
[0036] Reduced labor costs: Through automated data processing and detection method recommendation, the present invention reduces the need for manual intervention and reduces labor costs.
[0037] Improve food safety supervision capabilities: The present invention can quickly detect prohibited ingredients in animal-derived foods, help take timely measures to ensure food safety, and improve food safety supervision capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on the drawings without paying any creative labor.
[0039] Figure 1 A schematic flow chart of the method steps provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The technical solutions provided by the embodiments of the present invention are described in detail below in conjunction with the drawings.
[0041] See also Figure 1 The present invention provides a method for detecting prohibited ingredients in animal-derived food, comprising:
[0042] In step S101, animal-derived food data is obtained, the animal-derived food data is preprocessed to obtain animal-derived food data in a standard format after preprocessing, data features are extracted from the animal-derived food data to obtain types of animal-derived food data, and an animal-derived food data classification data group is established according to the types of animal-derived food data;
[0043] In step S101, from the perspective of the server, the detailed technical steps for acquiring, preprocessing, feature extraction and classification of animal-derived food data are as follows:
[0044] S101.1, data acquisition;
[0045] The server receives the original data of animal-derived food uploaded by users or other systems through the network interface or data upload function. These data may include text, pictures, videos or other multimedia formats.
[0046] Ensure the security of data transmission by using encryption technologies such as SSL / TLS to protect the data transmission process.
[0047] S101.2, data preprocessing;
[0048] The server cleans the received raw data to remove duplicate, invalid or erroneous data.
[0049] Standardize the data and convert it into a unified format, such as CSV, JSON, or XML, for subsequent processing and analysis. The standardization process includes unified date format, unit conversion (such as weight, volume, etc.), text encoding conversion, etc.
[0050] For image or video data, image recognition or video analysis may be required to extract key information such as product labels, production dates, batch numbers, etc.
[0051] S101.3, data feature extraction;
[0052] Use natural language processing (NLP) technology to process text data and extract keywords, phrases or entities, such as product names, ingredient lists, production dates, etc.
[0053] For numerical data, statistical analysis is performed to calculate statistics such as mean, median, standard deviation, etc. to reveal the distribution characteristics of the data.
[0054] Apply machine learning methods, such as cluster analysis or principal component analysis (PCA), to further extract the intrinsic characteristics of the data.
[0055] S101.4, Data classification and grouping;
[0056] According to the extracted data features, animal-derived food data are divided into different categories, such as beef, pork, chicken, etc.
[0057] For each type of food data, further subdivide and establish data classification groups, such as grouping by production date, origin, manufacturer, etc.
[0058] The classification and grouping information is stored in the animal-origin food data classification data group to facilitate subsequent data retrieval and analysis.
[0059] S101.5, Data storage and backup;
[0060] The pre-processed standard format data and classification grouping information are stored in the animal-derived food data classification data group, that is, a relational database (such as MySQL, PostgreSQL) or a non-relational database (such as MongoDB).
[0061] Back up data regularly to prevent data loss or damage. Backup can be done in full or incremental mode, depending on the importance of the data and the frequency of updates.
[0062] Through the above steps, the server can effectively process and analyze animal-derived food data, providing an accurate data basis for subsequent detection method recommendations and detection analysis.
[0063] In step S102, a knowledge base of animal-derived food data detection methods is constructed, and a label is established for each animal-derived food data detection method in the knowledge base of animal-derived food data detection methods, wherein the label information includes the type of animal-derived food detection applicable to the method;
[0064] In step S102, from the perspective of the server, the detailed technical steps of constructing a knowledge base of animal-derived food data detection methods and establishing labels for each method are as follows:
[0065] S102.1, initialize the knowledge base structure;
[0066] Design the database schema to determine the table structure used to store detection methods, labels, and related information. This may include method tables, label tables, and association tables. Create tables in the database and set appropriate indexes to improve query efficiency.
[0067] S102.2, collect and organize test methods;
[0068] Collect various testing methods for animal-derived foods through literature research, expert consultation or industry reports.
[0069] Organize the collected methods and ensure that each method has detailed description, steps, required equipment, etc.
[0070] S102.3, enter the detection method into the knowledge base
[0071] Enter the organized detection method information into the database to ensure the accuracy and completeness of the data.
[0072] Assign a unique identifier (such as ID) to each method to facilitate subsequent management and query.
[0073] S102.4, establish a labeling system;
[0074] According to the characteristics of the test method and application requirements, the classification standards and naming rules of the label are formulated. For example, it can be classified according to the test type (such as antibiotic residues, heavy metal content, etc.), applicable food type (such as beef, pork, etc.) or other relevant attributes.
[0075] Assign a unique identifier to each label and determine the association between the label and the detection method.
[0076] S102.5, assigning labels to detection methods;
[0077] According to the label system, each detection method is assigned a corresponding label. This can be achieved by establishing an association table in the database to associate the detection method with the corresponding label.
[0078] Ensure the accuracy and completeness of label assignment to avoid missing or wrong labels.
[0079] S102.6, Optimization and testing;
[0080] Optimize the database, such as setting reasonable indexes, adjusting query statements, etc., to improve query efficiency and response speed.
[0081] Test the knowledge base to ensure data accuracy and system stability. This includes verifying whether the relationship between detection methods and labels is correct, whether the query function works properly, etc.
[0082] S102.7, Maintenance and Updates;
[0083] The knowledge base is updated regularly and new detection methods or labels are added to ensure the timeliness and completeness of the knowledge base.
[0084] Monitor the running status of the knowledge base and handle possible problems or failures in a timely manner.
[0085] In step S103, the animal-derived food data classification data is matched in the animal-derived food data detection method knowledge base to obtain a recommended animal-derived food data detection method, and the animal-derived food data that needs to be detected for prohibited food ingredients in the animal-derived food data classification data is retrieved, and detection and analysis are performed using the recommended animal-derived food data detection method to obtain a detection result.
[0086] In step S103, from the perspective of the server, the animal-derived food data classification data is matched with the detection method knowledge base, and the detailed technical steps for performing detection analysis are as follows:
[0087] S103.1, Data Matching
[0088] Load classified data: Read the classified animal-derived food data from the animal-derived food data classification data group. This data contains key information such as the type, source, and ingredients of the food.
[0089] Matching knowledge base: Traverse the classified data and, for each piece of data, query the matching detection method in the knowledge base of animal-derived food detection methods based on its type and other characteristics. The matching process can be achieved through SQL query, fuzzy matching or more complex algorithms (such as rule-based or machine learning recommendation systems).
[0090] Recommended testing methods: Based on the matching results, the most appropriate testing method is recommended for each food data. If multiple methods are applicable, they can be selected based on preset priorities (such as accuracy, cost, time efficiency, etc.).
[0091] S103.2 Retrieve the data to be tested;
[0092] Filter the data to be tested: Filter the animal-derived food data that needs to be tested for prohibited ingredients from the classified data. This can be achieved by querying the animal-derived food data classification data group and selecting food data of a specific type or source.
[0093] Data preparation: Make necessary preparations for the data to be tested, such as format conversion, data cleaning, etc., to ensure that it meets the input requirements of the recommended testing method.
[0094] S103.3, detection and analysis;
[0095] Invoke detection method: Based on the recommended detection method, invoke the corresponding detection algorithm or program. This may involve launching a specific software tool, calling an API, or executing a pre-written script.
[0096] Execute the test: pass the prepared data to be tested as input to the detection algorithm or program, and execute the detection process. This may include sample pretreatment, instrument analysis, data processing and other steps.
[0097] Monitoring and recording: During the testing process, the server needs to monitor the testing progress and record all relevant operations and data to ensure the traceability of the process.
[0098] S103.4, test result processing;
[0099] Result analysis: After the test is completed, the server needs to analyze the test results and extract key information, such as whether prohibited ingredients are detected, the type and content of prohibited ingredients, etc.
[0100] Result storage and reporting: Store the test results in the animal-derived food data test method knowledge base and generate corresponding reports or notifications. The report can include detailed information, interpretation and possible follow-up action suggestions of the test results.
[0101] Exception handling: If an exception or error occurs during the detection process, the server needs to record the error information and trigger the corresponding alarm or notification mechanism to handle the problem in a timely manner.
[0102] The server can automatically match the animal-derived food data classification data with the detection method knowledge base, recommend appropriate detection methods, perform detection analysis, and finally output the detection results. This process improves detection efficiency, reduces human intervention, and helps to promptly discover and deal with prohibited ingredients in animal-derived foods.
[0103] Specifically, animal-derived food data is obtained, the animal-derived food data is preprocessed to obtain animal-derived food data in a standard format after preprocessing, data features are extracted from the animal-derived food data to obtain the types of animal-derived food data, and according to the types of animal-derived food data, a classification data group of animal-derived food data is established, including:
[0104] Establish channels for obtaining data on animal-derived foods and establish data communications with food manufacturers, market regulators and third-party testing agencies;
[0105] Obtaining animal-derived food data including food source, production date, batch number, ingredient list, and information on additives used in the production process;
[0106] The pre-processed animal-derived food data in a standard format include food type, production date, and origin information.
[0107] Specifically, a knowledge base of animal-derived food data detection methods is constructed, and a label is established for each animal-derived food data detection method in the knowledge base. The label information includes the type of animal-derived food detection applicable to the method, including:
[0108] Collect various testing methods for animal-derived foods, and classify and sort the collected testing methods for animal-derived foods according to the types of food they are applicable to, testing targets (such as prohibited ingredients, nutrients, etc.), and technical principles (such as chromatography, mass spectrometry, immunological methods, etc.);
[0109] Organize the collected detection methods in a unified format, including method name, principle, steps, scope of application and other information;
[0110] According to the characteristics and application requirements of the detection method, formulate the naming rules and classification standards of the label, and assign corresponding labels to each detection method according to the labeling rules, such as "applicable to beef detection" and "applicable to antibiotic residue detection";
[0111] A special table or field is created for label information in the animal-derived food data detection method knowledge base to store the label information of each detection method.
[0112] Specifically, the animal-derived food data classification data is matched in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, and the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data is retrieved, and the recommended animal-derived food data detection method is used to perform detection and analysis to obtain the detection results, including:
[0113] Read the classified animal-derived food data from the animal-derived food data classification data group, the data including key information such as food type, source, and production date, and obtain the classification label of the animal-derived food data;
[0114] According to the classification labels of animal-derived food data (such as food type), matching detection methods are searched in the knowledge base, and based on the matching results, suitable detection methods are recommended for each type of food;
[0115] Filter out the animal-derived food data that needs to be tested for prohibited ingredients from the classified data, and perform necessary preprocessing on the data to be tested, such as data cleaning and format conversion, to ensure that it meets the input requirements of the recommended testing method;
[0116] According to the recommended detection method, call the corresponding detection algorithm or program, and pass the pre-processed data to be detected as input to the detection algorithm or program;
[0117] Run the detection algorithm or program to analyze the prohibited ingredients in the test data, parse the output of the detection algorithm or program, and extract key information, such as whether the prohibited ingredients are detected, the type and content of the prohibited ingredients;
[0118] The test results are stored in the animal-derived food data detection method knowledge base, and the test results are output to the user in an appropriate form (such as reports, charts, etc.).
[0119] Specifically, the method for detecting prohibited ingredients in animal-derived food provided by the present invention backs up the data to be detected, uses the backed-up data to be detected as the second data to be detected, and uses the original data as the first data to be detected, and uses the first data to be detected and the second data to be detected to perform data analysis through a preset prohibited ingredient detection algorithm to obtain a first detection result and a second detection result;
[0120] The first detection result is compared with the second detection result. If there is a difference between the first detection result and the second detection result, the preset prohibited component detection algorithm is optimized.
[0121] Specifically, the method for detecting prohibited ingredients in animal-derived food provided by the present invention uses the data in the animal-derived food data classification data group to train a preset prohibited ingredient detection algorithm to obtain an optimized prohibited ingredient detection algorithm, and uses the optimized prohibited ingredient detection algorithm to detect the first data to be detected and the second data to be detected, and compare the detection results. If there is still a difference in the detection results between the first data to be detected and the second data to be detected, then a genetic algorithm model is trained based on the animal-derived food data classification data group and the data generated in the above steps to obtain a prohibited ingredient detection model trained based on the genetic algorithm, and the prohibited ingredient detection model trained based on the genetic algorithm is deployed in the system for use.
[0122] In a second aspect, the present invention provides a system for detecting prohibited ingredients in animal-derived food, including: a server end, a user end, a background control end, and a detection device end, wherein the server end establishes a communication connection with the user end, the background control end, and the detection device end;
[0123] The server side obtains animal-derived food data, pre-processes the animal-derived food data, obtains the animal-derived food data in a standard format after pre-processing, extracts data features of the animal-derived food data, obtains the types of animal-derived food data, and establishes a classification data group of animal-derived food data according to the types of animal-derived food data;
[0124] Constructing a knowledge base of animal-derived food data detection methods, and establishing a label for each animal-derived food data detection method in the knowledge base, wherein the label information includes applicable animal-derived food detection types;
[0125] The animal-derived food data classification data is matched in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, and the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data is retrieved. The recommended animal-derived food data detection method is used to perform detection and analysis to obtain the detection results, which are sent from the server to the user end and the background control end.
[0126] The present invention solves the problem that existing detection methods require a long time to process and analyze samples when a large number of samples need to be quickly screened through intelligent data preprocessing, feature extraction and detection method recommendation. Specifically, the present invention obtains animal-derived food data, preprocesses the data to obtain data in a standard format, then extracts data features to obtain data types, and establishes a classification data group for animal-derived food data based on this. Subsequently, the present invention constructs an animal-derived food detection method knowledge base, and establishes a label for each detection method therein, and the label information includes the applicable animal-derived food detection type. By matching these classified data in the knowledge base, the present invention can recommend a suitable detection method, thereby achieving rapid screening of a large number of samples and significantly improving detection efficiency.
[0127] The specific implementation of the present invention is as follows:
[0128] Data acquisition: The server first obtains animal-derived food data, which covers key data such as the source of the food, production date, batch number, ingredient list, and the use of additives in the production process.
[0129] Data preprocessing: Subsequently, the server preprocesses the acquired information and standardizes it into a unified animal-derived food data format. The preprocessed data focuses on key information such as food type, production date, and place of origin.
[0130] Feature extraction and data classification: Next, the server extracts data features to determine the data types of different animal-derived foods and establishes corresponding data classification data groups accordingly.
[0131] Building a knowledge base of detection methods: The server further builds a knowledge base of detection methods for animal-derived foods and sets labels for each detection method. These labels detail the types of food detection to which each method is applicable.
[0132] Data matching and detection method recommendation: After completing the above steps, the server will match the classified data with the detection methods in the knowledge base to recommend suitable detection methods to users and continuously and dynamically optimize the detection methods.
[0133] Testing analysis and result extraction: Based on the recommended testing method, the server retrieves the animal-derived food data that needs to be tested for prohibited ingredients and performs testing analysis. Once the analysis is completed, the server will extract and organize the test results.
[0134] Result sending: Finally, the server sends the test results to the user end and the background control end to ensure that relevant personnel can obtain and process this information in a timely manner.
[0135] Through the above process, the present invention realizes the rapid screening of a large number of animal-derived food samples from the perspective of the server, effectively improves the detection efficiency, and reduces the time required for processing and analyzing samples.
[0136] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0137] The above-described embodiments of the present invention do not limit the protection scope of the present invention.
Claims
1. A method for detecting prohibited ingredients in animal-derived food, characterized in that: include: Acquire animal-derived food data, pre-process the animal-derived food data to obtain animal-derived food data in a standard format after pre-processing, extract data features from the animal-derived food data to obtain types of animal-derived food data, and establish a classification data group for animal-derived food data according to the types of animal-derived food data; Constructing a knowledge base of animal-derived food data detection methods, and establishing a label for each animal-derived food data detection method in the knowledge base, wherein the label information includes applicable animal-derived food detection types; Match the animal-derived food data classification data in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, retrieve the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data, perform detection and analysis through the recommended animal-derived food data detection method, and obtain the detection results; Obtain animal-derived food data, pre-process the animal-derived food data, obtain animal-derived food data in a standard format after pre-processing, extract data features from the animal-derived food data, obtain animal-derived food data types, and establish animal-derived food data classification data groups according to the animal-derived food data types, including: Establish channels for obtaining data on animal-derived foods and establish data communications with food manufacturers, market regulators and third-party testing agencies; Obtaining animal-derived food data including food source, production date, batch number, ingredient list, and information on additives used in the production process; The pre-processed animal-derived food data in a standard format include food type, production date, and origin information.
2. The method for detecting prohibited ingredients in animal-derived food according to claim 1, characterized in that: Construct a knowledge base of animal-derived food data detection methods, and establish a label for each animal-derived food data detection method in the knowledge base. The label information includes the type of animal-derived food detection applicable to: Collect various testing methods for animal-derived foods, and classify and sort the collected testing methods for animal-derived foods according to their applicable food types, testing targets, and technical principles. The testing targets include prohibited ingredients and nutrients, and the technical principles include chromatography, mass spectrometry, and immunological methods; The collected testing methods are sorted according to the standard format, and the categories of sorting include method name, principle, steps, and scope of application information; According to the characteristics and application requirements of the detection method, formulate the naming rules and classification standards of the label. According to the label rules, assign corresponding labels to each detection method. The labels include those applicable to the detection category and the detection method; A table or field is created for label information in the animal-derived food data detection method knowledge base to store the label information of each detection method.
3. The method for detecting prohibited ingredients in animal-derived food according to claim 1, characterized in that: Match the animal-derived food data classification data in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, retrieve the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data, perform detection and analysis through the recommended animal-derived food detection method, and obtain the detection results, including: Read the classified animal-derived food data from the animal-derived food data classification data group, the data including food type, source, and production date information, and obtain the classification label of the animal-derived food data; According to the classification labels of animal-derived food data, matching detection methods are searched in the animal-derived food data detection method knowledge base, and based on the matching results, suitable detection methods are recommended for each type of food; Filter out animal-derived food data that needs to be tested for prohibited ingredients from the classified data, and pre-process the data to be tested; According to the recommended detection method, the corresponding detection algorithm is called to obtain the preset prohibited component detection algorithm, and the pre-processed data to be detected is passed as input to the detection algorithm or program; Through the preset prohibited ingredient detection algorithm, the prohibited ingredient analysis is performed on the test data, the output of the detection algorithm or program is parsed, and key information is extracted, including the detection of prohibited ingredients, the type and content of prohibited ingredients; The test results are stored in the animal-derived food data detection method knowledge base and output to the user.
4. The method for detecting prohibited ingredients in animal-derived food according to claim 3, characterized in that: Backing up the data to be detected, using the backed-up data to be detected as the second data to be detected, and the original data as the first data to be detected, and performing data analysis on the first data to be detected and the second data to be detected through a preset prohibited component detection algorithm to obtain a first detection result and a second detection result; The first detection result is compared with the second detection result. If there is a difference between the first detection result and the second detection result, the preset prohibited component detection algorithm is optimized.
5. The method for detecting prohibited ingredients in animal-derived food according to claim 4, characterized in that: The preset prohibited ingredient detection algorithm is trained using the data in the animal-derived food data classification data group to obtain an optimized prohibited ingredient detection algorithm. The first data to be detected and the second data to be detected are detected by the optimized prohibited ingredient detection algorithm, and the detection results are compared. If there is still a difference in the detection results between the first data to be detected and the second data to be detected, a genetic algorithm model is trained based on the animal-derived food data classification data group and the data generated in the above steps to obtain a prohibited ingredient detection model based on the genetic algorithm training, and the prohibited ingredient detection model based on the genetic algorithm training is deployed in the system for use.
6. A system for detecting prohibited ingredients in animal-derived food, using the method for detecting prohibited ingredients in animal-derived food as claimed in any one of claims 1 to 5, characterized in that: include: The server, the user, the backend control and the detection device establish a communication connection with the server, the user, the backend control and the detection device; The server side obtains animal-derived food data, pre-processes the animal-derived food data, obtains the animal-derived food data in a standard format after pre-processing, extracts data features of the animal-derived food data, obtains the types of animal-derived food data, and establishes a classification data group of animal-derived food data according to the types of animal-derived food data; Constructing a knowledge base of animal-derived food data detection methods, and establishing a label for each animal-derived food data detection method in the knowledge base, wherein the label information includes applicable animal-derived food detection types; The animal-derived food data classification data is matched in the animal-derived food data detection method knowledge base to obtain the recommended animal-derived food data detection method, and the animal-derived food data that needs to be tested for prohibited food ingredients in the animal-derived food data classification data is retrieved. The recommended animal-derived food data detection method is used to perform detection and analysis to obtain the detection results, which are sent from the server to the user end and the background control end.
Citation Information
Patent Citations
Method for detecting residue of veterinary drug in animal-derived food
CN107576744A
Veterinary drug residue analysis method and platform based on multi-dimensional electronic identity database of veterinary drug compounds in animal-derived food
CN113156022A
Method for rapidly detecting multiple residues of veterinary drugs in animal-derived food
CN116242901A
Food heavy metal detection method and system based on atomic absorption spectrum
CN116359149A
Network security event handling and evaluating system
CN116389297A
