Food safety detection early warning processing method and device

By adopting data crawling and classification fusion processing based on crawling strategies in food safety detection, combined with data analysis of risk indicators, the problems of low efficiency and insufficient accuracy of food safety detection in the existing technology are solved, and efficient and accurate food safety risk prediction and early warning are achieved.

CN119782595APending Publication Date: 2025-04-08TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411675378.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, food safety testing solutions are relatively low efficiency, and it is difficult to detect potential food safety problems in a timely manner. In addition, there are problems with insufficient accuracy and reliability in on-site rapid testing technology.

Method used

By crawling network data based on preset crawling strategies, obtaining food safety testing data, and classifying and fusion processing of the data, and generating classification tables corresponding to different topics. Then, the data is analyzed and processed based on preset risk indicators, and the food safety testing data analysis results are obtained, and visual display and warning prompts are performed.

Benefits of technology

It has improved the efficiency of food safety detection and early warning, achieved accurate prediction and timely warning of food safety risks, and significantly improved the accuracy and timeliness of food safety supervision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782595A_ABST
    Figure CN119782595A_ABST
Patent Text Reader

Abstract

The invention provides a food safety detection early warning processing method and device, and the method comprises the steps: carrying out the data crawling of network data based on a preset crawler strategy, and obtaining food safety detection data; performing classification fusion processing on the food safety detection data to obtain classification tables corresponding to different themes, and storing the classification tables corresponding to different themes into corresponding theme resource libraries; and performing data analysis processing on the food safety detection data in the classification table of each theme in the theme resource library based on a preset risk index to obtain a food safety detection data analysis result, and performing visual display and early warning prompt based on the food safety detection data analysis result. According to the food safety detection early warning processing method provided by the invention, the efficiency of food safety detection early warning processing can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data processing technology, and in particular to a food safety detection and early warning processing method and device, and also to an electronic device, a non-transitory computer-readable storage medium and a computer program product. Background Art

[0002] Food safety issues are related to people's lives and health, so they have always been the focus of social attention. In recent years, with the development of the economy and the improvement of people's living standards, food safety issues have received more and more attention. In order to ensure food safety, regulatory authorities have formulated a series of standards and continuously strengthened supervision. Higher requirements have been put forward for food production and sales. As consumers' attention to food safety issues continues to increase, they pay more attention to food test reports and trust tested foods more. This has prompted food production companies to take the initiative to conduct internal testing and entrust third-party testing agencies to conduct testing to meet market demand. Based on this background, there is an urgent need for a set of early warning methods based on food safety testing to predict and warn in advance and pay attention to current food safety issues.

[0003] However, the current traditional food safety monitoring methods are inefficient and difficult to detect potential food safety issues in a timely manner. At the same time, laboratory testing requires a long time and professional equipment, which is not suitable for large-scale food safety monitoring. Although on-site rapid detection technology is fast, it has problems with accuracy and reliability. These limitations make it difficult for traditional food safety monitoring methods to comprehensively and efficiently cover all aspects of food. Therefore, how to design an effective and timely food safety detection and early warning processing solution has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a food safety detection early warning processing method, which is used to solve the defect that the food safety detection scheme in the prior art has high limitations, resulting in poor actual food safety detection efficiency.

[0005] The present invention provides a food safety detection and early warning processing method, comprising: Crawl network data based on preset crawler strategies to obtain food safety testing data; Classify and fuse the food safety detection data to obtain classification tables corresponding to different topics, and store the classification tables corresponding to different topics in corresponding topic resource libraries; Based on preset risk indicators, data analysis and processing are performed on the food safety detection data in the classification table of each theme in the theme resource library to obtain food safety detection data analysis results, and visual display and early warning prompts are performed based on the food safety detection data analysis results.

[0006] According to a food safety detection early warning processing method provided by the present invention, the crawler strategy includes crawled web page addresses, data crawling rules, data crawling ranges and data crawling cycles; The method of crawling network data based on a preset crawler strategy to obtain food safety testing data includes: Based on the data crawling rules, the data crawling range and the data crawling period in the crawler strategy, periodically crawl the network data under the crawled web page address in the preset crawler strategy to obtain initial food safety detection data; The initial food safety detection data is deduplicated to obtain food safety detection data.

[0007] According to a food safety detection early warning processing method provided by the present invention, the initial food safety detection data is deduplicated to obtain food safety detection data, including: Calling a company name monitoring interface provided by a preset third-party platform, correcting the company name of each piece of data in the initial food safety testing data, and obtaining the corrected food safety testing data; wherein the third-party platform pre-stores the standard company names of various companies.

[0008] According to a food safety detection early warning processing method provided by the present invention, the food safety detection data is classified and fused to obtain classification tables corresponding to different topics, and the classification tables corresponding to different topics are stored in corresponding subject resource libraries, including: Performing data cleaning on the food safety detection data to obtain cleaned food safety detection data; Performing data labeling on the cleaned food safety detection data to obtain labeled food safety detection data; Performing data fusion and modeling processing on the labeled food safety testing data to obtain a classification table corresponding to different topics; According to the subject type corresponding to the classification table, the classification tables corresponding to different subjects are respectively stored in at least one subject resource library of the corresponding subject type; wherein each subject resource library is a separate database, and each database stores the classification tables of the corresponding subject type.

[0009] According to a food safety detection early warning processing method provided by the present invention, the food safety detection data in the classification table of each subject in the subject resource library are analyzed and processed based on the preset risk index to obtain the food safety detection data analysis results, including: Determine a potential risk indicator and a potential risk indicator query statement corresponding to the potential risk indicator, and query the food safety detection data corresponding to the potential risk indicator in the classification table of each subject in the subject resource library based on the potential risk indicator and the potential risk indicator query statement corresponding to the potential risk indicator to obtain potential risk indicator result data; Determine a monitoring indicator and a monitoring indicator query statement corresponding to the monitoring indicator, and analyze and process the monitoring indicator in the potential risk indicator result data based on the monitoring indicator and the monitoring indicator query statement corresponding to the monitoring indicator to obtain the monitoring indicator result data; Determine the sampling inspection indicators, and analyze and process the monitoring indicator result data based on the sampling inspection indicators to obtain food safety detection data analysis results.

[0010] A food safety detection and early warning processing method provided by the present invention also includes: Perform risk grading on the food safety testing data analysis results to obtain a corresponding risk grading assessment report; Perform statistical distribution analysis processing on the food safety detection data analysis results to obtain statistical distribution analysis processing results.

[0011] The present invention also provides a food safety detection and early warning processing device, comprising: A data collection unit, used to crawl network data based on a preset crawler strategy to obtain food safety testing data; A data management unit, used to classify and fuse the food safety detection data, obtain classification tables corresponding to different topics, and store the classification tables corresponding to different topics in corresponding subject resource libraries; The data analysis and visualization unit is used to perform data analysis and processing on the food safety detection data in the classification table of each theme in the theme resource library based on preset risk indicators, obtain food safety detection data analysis results, and perform visualization and early warning prompts based on the food safety detection data analysis results.

[0012] According to a food safety detection and early warning processing device provided by the present invention, the crawler strategy includes a crawled web page address, data crawling rules, a data crawling range and a data crawling cycle; The data acquisition unit is specifically used for: Based on the data crawling rules, the data crawling range and the data crawling period in the crawler strategy, periodically crawl the network data under the crawled web page address in the preset crawler strategy to obtain initial food safety detection data; The initial food safety detection data is deduplicated to obtain food safety detection data.

[0013] According to a food safety detection early warning processing device provided by the present invention, the deduplication processing of the initial food safety detection data to obtain the food safety detection data includes: Calling a company name monitoring interface provided by a preset third-party platform, correcting the company name of each piece of data in the initial food safety testing data, and obtaining the corrected food safety testing data; wherein the third-party platform pre-stores the standard company names of various companies.

[0014] According to a food safety detection and early warning processing device provided by the present invention, the data management unit is specifically used for: Performing data cleaning on the food safety detection data to obtain cleaned food safety detection data; Performing data labeling on the cleaned food safety detection data to obtain labeled food safety detection data; Performing data fusion and modeling processing on the labeled food safety testing data to obtain a classification table corresponding to different topics; According to the subject type corresponding to the classification table, the classification tables corresponding to different subjects are respectively stored in at least one subject resource library of the corresponding subject type; wherein each subject resource library is a separate database, and each database stores the classification tables of the corresponding subject type.

[0015] According to a food safety detection and early warning processing device provided by the present invention, the data analysis and visualization unit is specifically used for: Determine a potential risk indicator and a potential risk indicator query statement corresponding to the potential risk indicator, and query the food safety detection data corresponding to the potential risk indicator in the classification table of each subject in the subject resource library based on the potential risk indicator and the potential risk indicator query statement corresponding to the potential risk indicator to obtain potential risk indicator result data; Determine a monitoring indicator and a monitoring indicator query statement corresponding to the monitoring indicator, and analyze and process the monitoring indicator in the potential risk indicator result data based on the monitoring indicator and the monitoring indicator query statement corresponding to the monitoring indicator to obtain the monitoring indicator result data; Determine the sampling inspection indicators, and analyze and process the monitoring indicator result data based on the sampling inspection indicators to obtain food safety detection data analysis results.

[0016] A food safety detection and early warning processing device provided by the present invention also includes: Perform risk grading on the food safety testing data analysis results to obtain a corresponding risk grading assessment report; Perform statistical distribution analysis processing on the food safety detection data analysis results to obtain statistical distribution analysis processing results.

[0017] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the food safety detection and early warning processing method as described in any one of the above items is implemented.

[0018] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the food safety detection and early warning processing method as described in any one of the above items is implemented.

[0019] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the food safety detection and early warning processing method as described in any of the above items.

[0020] The food safety detection and early warning processing method provided by the present invention crawls network data through a preset crawler strategy to obtain food safety detection data, classifies and integrates the food safety detection data to obtain classification tables corresponding to different topics, and stores the classification tables corresponding to different topics in corresponding subject resource libraries, performs data analysis and processing on the food safety detection data in the classification tables of each topic in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and performs visual display and early warning prompts based on the food safety detection data analysis results, which can effectively improve the efficiency of food safety detection and early warning processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 It is a flow chart of the food safety detection and early warning processing method provided by the present invention.

[0023] Figure 2 It is a schematic diagram of the data collection process provided by the present invention.

[0024] Figure 3 It is a schematic diagram of storing the classification tables corresponding to different topics into corresponding topic resource libraries provided by the present invention.

[0025] Figure 4 It is a schematic diagram of data analysis and visualization provided by the present invention.

[0026] Figure 5 It is a schematic diagram corresponding to the food safety detection and early warning model provided by the present invention.

[0027] Figure 6 It is a structural schematic diagram of the food safety detection and early warning processing device provided by the present invention.

[0028] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0029] 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 below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0030] Combine the following Figure 1-Figure 7 The food safety detection and early warning processing method and device of the present invention are described, and its embodiments are described in detail.

[0031] The following is a detailed description of an embodiment of the food safety detection and early warning processing method according to the present invention. Figure 1 As shown, it is one of the flow diagrams of the food safety detection early warning processing method provided by the present invention, and the specific implementation process includes the following steps: Step 101: crawl network data based on crawler strategy to obtain food safety testing data.

[0032] Specifically, the crawler strategy includes but is not limited to the crawled web page address, data crawling rules, data crawling scope and data crawling cycle.

[0033] In an embodiment of the present invention, based on the data crawling rules, the data crawling range and the data crawling cycle in the crawler strategy, periodic data crawling can be performed on the network data under the crawled web page address in the preset crawler strategy to obtain initial food safety detection data; and the initial food safety detection data can be deduplicated to obtain food safety detection data.

[0034] In the actual data crawling process, data crawling may be interrupted due to unknown reasons. For this reason, in the specific implementation of the data crawling process, the present invention can also record the position of the current data crawler by setting a checkpoint, and then when an interruption occurs, the data crawling can be continued at the corresponding position according to the checkpoint. Wherein, the checkpoint can record where the current crawling is when a piece of data is crawled each time. When it is interrupted due to unknown reasons, the crawler can continue to crawl according to the checkpoint when the crawler program is started again. In addition, the present invention can also set a heartbeat sensing mechanism. Since the network is sometimes good and sometimes bad, it can be monitored every second through heartbeat sensing. When the data is monitored to return, the crawler can continue to crawl, which improves the efficiency of the data crawler. The present invention can also set a fault-tolerant mechanism. When the crawler program is interrupted due to an abnormal reason, the fault-tolerant mechanism can detect whether the number of interruptions is less than the preset number threshold. If so, the crawler program is directly restarted to continue crawling.

[0035] In addition, it should be noted that since many statistics and detailed data on food safety testing are publicly available on the web pages of various websites, and some news reports on food safety testing are also compiled and pushed to the web pages of the websites, the present invention can collect data by means of data crawlers, and obtain corresponding food safety testing data from relevant web pages. The food safety testing data not only includes text data on the web pages but also includes content data in attachment files on the web pages (such as unqualified test item files and qualified test item files in the web pages), specifically Figure 2 shown.

[0036] First, the web page addresses and data crawling rules that need to be crawled are stored in the crawler rule list for web crawling. The preset data crawler program will automatically read the crawled web page addresses and data crawling rules in the crawler rule list according to the data crawling range (for example, crawling 5 pages a day) and the data crawling cycle (for example, crawling once a day), and crawl the food safety inspection data in the web page in a targeted manner, and finally store it in the database.

[0037] Table 1 List of crawler rules In addition, since the data crawled by the data crawler from different URLs of different websites may not be consistent in the company name, a unique identifier, that is, the full name of the company, is required. Therefore, in an embodiment of the present invention, when the initial food safety detection data is deduplicated to obtain the food safety detection data, the company name monitoring interface provided by the preset third-party platform can be called to correct the company name of each data in the initial food safety detection data to obtain the corrected food safety detection data. The company name in the corrected food safety detection data is the unique identifier of the company, and finally the data is stored according to the company name as the primary key. Among them, the third-party platform pre-stores the standard company names of various companies.

[0038] Step 102: classify and fuse the food safety detection data to obtain classification tables corresponding to different topics, and store the classification tables corresponding to different topics in corresponding topic resource libraries.

[0039] In an embodiment of the present invention, first, the food safety detection data can be cleaned to obtain the cleaned food safety detection data, and the cleaned food safety detection data can be data labeled to obtain the labeled food safety detection data, and the labeled food safety detection data can be data fused and modeled to obtain a classification table corresponding to different topics. Finally, according to the topic type corresponding to the classification table, the classification tables corresponding to different topics can be stored in at least one topic resource library of the corresponding topic type. That is, the food safety detection data collected by the data crawler and the external enterprise data are data labeled, data fused and modeled, and finally at least one type of topic resource library is formed. Among them, each type of topic resource library is a separate database, and each database will store the classification table of the corresponding topic type.

[0040] like Figure 3As shown, seven types of subject resource libraries can be formed, including: legal and regulatory library, food standard library, safety sampling library, food safety resource library, enterprise resource library, safety hazard library, and dietary health library, which are convenient for data analysis and visualization in subsequent steps. Specifically, in the process of data annotation, data fusion and modeling, the food safety test data stored in the database can be cleaned, annotated, and extracted through a preset program to form a classification table of seven corresponding subject classifications. Among them, the classification tables required in the food safety resource library may include the "Food Business License Enterprise Table" and the "Food Production License Enterprise Table". Taking food business licensed enterprises and food production licensed enterprises as examples, the food business licensed enterprise table and the food production licensed enterprise table may respectively include the name of the production enterprise, the address of the production enterprise, the name of the sampled unit, the address of the sampled unit, the product name (such as pastries), unqualified items (such as indicators such as Escherichia coli and total colony count), test values ​​(for example, if the item is Escherichia coli, the test value may be 130CFU / g or 140CFU / g, etc.; if the item is the total colony count, the test value may be 3.44mg / 100g), standard requirements (for example, if the item is Escherichia coli, the standard requirement may be M=100CFU / g; if the item is the total colony count, the test value may be 15mg / 100g), etc.

[0041] Step 103: Perform data analysis on the food safety detection data in the classification table of each subject in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and perform visual display and early warning prompts based on the food safety detection data analysis results.

[0042] In the embodiment of the present invention, Figure 5As shown, it is necessary to predefine potential risk indicators, potential risk indicator query statements, monitoring indicators, monitoring indicator query statements, and sampling indicators. After determining the potential risk indicators and the potential risk indicator query statements corresponding to the potential risk indicators, the food safety detection data corresponding to the potential risk indicators in the classification table of each subject in the subject resource library can be queried based on the potential risk indicators and the potential risk indicator query statements corresponding to the potential risk indicators in the preset food safety detection and early warning model to obtain the potential risk indicator result data; after determining the monitoring indicators and the monitoring indicator query statements corresponding to the monitoring indicators, the monitoring indicators in the potential risk indicator result data can be analyzed and processed based on the monitoring indicators and the monitoring indicator query statements corresponding to the monitoring indicators in the preset food safety detection and early warning model to obtain the monitoring indicator result data; after determining the sampling inspection indicators, the monitoring indicator result data can be analyzed and processed based on the sampling inspection indicators in the preset food safety detection and early warning model to obtain the food safety detection data analysis results, and finally the data of food safety can be displayed on a large screen for visualization through specific project requirements, which is convenient for early warning and prediction. In addition, the food safety detection data analysis results can also be risk graded to obtain a corresponding risk grading assessment report; the food safety detection data analysis results can be statistically analyzed and processed to obtain statistical distribution analysis results. It should be noted that the food safety detection and early warning model is a deep neural network model obtained by iterative training based on preset sample food safety detection data and the food safety detection data analysis result labels corresponding to the sample food safety detection data. Visual display and early warning prompts based on the food safety detection data analysis results can be used to display the unqualified conditions in various areas of a city. For example, in the fish products of city A, the unqualified items in area 1 are 2-4, the unqualified items in area 2 are 4-6, and the unqualified items in area 3 are 6-8. When the number of unqualified items exceeds 6, an early warning prompt can be issued, such as food safety anomalies in area 3, which requires strengthened supervision.

[0043] Specifically, Figure 4As shown, first define potential risk indicators (for example, 100 potential risk indicators) and define query statements for potential risk indicators. Then define monitoring indicators (for example, use 50 of the potential risk indicators as monitoring indicators), define query statements for monitoring indicators, and obtain monitoring risk data again through the results of risk indicators. Finally, define sampling indicators (for example, use 10 of the monitoring indicators as sampling indicators), and select sampling indicators through operators to obtain a set of sampling results. Statistical distribution analysis is performed using statistical algorithms and displayed through a visual interface. Risk grading is a risk grading report derived from the sampling result set and statistical distribution. The potential risk indicators may include Escherichia coli, total colony count, etc. The statistical algorithm can be derived using the mean and median in statistical analysis. Among them, the algorithm for calculating the average can be as follows: Where n can be the number of days included in the target time range (for example, if the target time range is one week, then n is 7 days); Indicates the number of enterprises corresponding to unqualified items on the first day, Indicates the number of enterprises corresponding to unqualified items on the second day.

[0044] Risk grading is an assessment report (i.e., risk grading assessment report). As shown below: In XX, a serious food safety incident occurred in a certain place, involving a widely consumed ready-to-eat food - a certain brand of bagged pickled pepper chicken feet. After the incident, a comprehensive risk analysis was carried out. Risk identification: Product information: Brand name: XX brand; Product name: Pickled pepper chicken feet; Production date: XX month XX day of XX year; Shelf life: 6 months; Sales channel: supermarkets, convenience stores, e-commerce platforms; Problem description: Consumer feedback: Some consumers experienced abdominal distension, vomiting and other discomfort symptoms after eating this brand of pickled pepper chicken feet; Preliminary investigation: After preliminary investigation, it is suspected that these symptoms may be caused by excessive bacteria in the product. Risk assessment: Hazard analysis: Possible causes: The product may have been contaminated by bacteria during production, transportation or storage; Potential hazards: Excessive bacteria may cause food poisoning, posing a serious threat to health; Exposure assessment: Scope of impact: As of the start of the investigation, hundreds of consumer complaints have been received, involving multiple cities; Consumption estimate: This brand of pickled pepper chicken feet is a popular snack with a large consumption volume; Risk feature description: Severity: Based on the symptoms of the complaint, it is judged to be a moderate to severe risk. Likelihood: Considering that a large number of consumers are affected, the probability of the risk occurring is judged to be high.

[0045] The present invention can efficiently integrate and analyze food safety detection data, accurately predict food safety risks, and significantly improve the accuracy and timeliness of early warning. At the same time, it also helps relevant departments to take effective regulatory measures in a timely manner to ensure food safety and reduce the incidence of food safety accidents, which has positive significance for protecting consumer health and promoting the sustainable development of the food industry. Through multi-dimensional analysis and data visualization of food safety detection and early warning models, the unqualified and qualified conditions of each district in a certain city are obtained. According to the food safety theme latitude (such as pollutants, mycotoxins, pesticide residues, etc.), a multi-faceted analysis of food safety issues is carried out.

[0046] The food safety detection and early warning processing method provided by the present invention crawls network data through a preset crawler strategy to obtain food safety detection data, classifies and integrates the food safety detection data to obtain classification tables corresponding to different topics, and stores the classification tables corresponding to different topics in corresponding subject resource libraries, performs data analysis and processing on the food safety detection data in the classification tables of each topic in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and performs visual display and early warning prompts based on the food safety detection data analysis results, which can effectively improve the efficiency of food safety detection and early warning processing.

[0047] The food safety detection and early warning processing device provided by the present invention is described below. The food safety detection and early warning processing device described below and the food safety detection and early warning processing method described above can be referred to each other. Figure 6 As shown, it is a schematic diagram of the structure of the food safety detection and early warning processing device provided by the present invention. The food safety detection and early warning processing device of the present invention specifically includes the following parts: The data collection unit 601 is used to crawl network data based on a preset crawler strategy to obtain food safety testing data.

[0048] The data management unit 602 is used to classify and fuse the food safety detection data to obtain classification tables corresponding to different topics, and store the classification tables corresponding to different topics in corresponding topic resource libraries.

[0049] The data analysis and visualization unit 603 is used to perform data analysis and processing on the food safety detection data in the classification table of each theme in the theme resource library based on preset risk indicators, obtain food safety detection data analysis results, and perform visualization and early warning prompts based on the food safety detection data analysis results.

[0050] According to a food safety detection and early warning processing device provided by the present invention, the crawler strategy includes a crawled web page address, data crawling rules, a data crawling range and a data crawling cycle; The data acquisition unit is specifically used for: Based on the data crawling rules, the data crawling range and the data crawling period in the crawler strategy, periodically crawl the network data under the crawled web page address in the preset crawler strategy to obtain initial food safety detection data; The initial food safety detection data is deduplicated to obtain food safety detection data.

[0051] According to a food safety detection early warning processing device provided by the present invention, the deduplication processing of the initial food safety detection data to obtain the food safety detection data includes: Calling a company name monitoring interface provided by a preset third-party platform, correcting the company name of each piece of data in the initial food safety testing data, and obtaining the corrected food safety testing data; wherein the third-party platform pre-stores the standard company names of various companies.

[0052] According to a food safety detection and early warning processing device provided by the present invention, the data management unit is specifically used for: Performing data cleaning on the food safety detection data to obtain cleaned food safety detection data; Performing data labeling on the cleaned food safety detection data to obtain labeled food safety detection data; Performing data fusion and modeling processing on the labeled food safety testing data to obtain a classification table corresponding to different topics; According to the subject type corresponding to the classification table, the classification tables corresponding to different subjects are respectively stored in at least one subject resource library of the corresponding subject type; wherein each subject resource library is a separate database, and each database stores the classification tables of the corresponding subject type.

[0053] According to a food safety detection and early warning processing device provided by the present invention, the data analysis and visualization unit is specifically used for: Determine a potential risk indicator and a potential risk indicator query statement corresponding to the potential risk indicator, and query the food safety detection data corresponding to the potential risk indicator in the classification table of each subject in the subject resource library based on the potential risk indicator and the potential risk indicator query statement corresponding to the potential risk indicator to obtain potential risk indicator result data; Determine a monitoring indicator and a monitoring indicator query statement corresponding to the monitoring indicator, and analyze and process the monitoring indicator in the potential risk indicator result data based on the monitoring indicator and the monitoring indicator query statement corresponding to the monitoring indicator to obtain the monitoring indicator result data; Determine the sampling inspection indicators, and analyze and process the monitoring indicator result data based on the sampling inspection indicators to obtain food safety detection data analysis results.

[0054] A food safety detection and early warning processing device provided by the present invention also includes: Perform risk grading on the food safety testing data analysis results to obtain a corresponding risk grading assessment report; Perform statistical distribution analysis processing on the food safety detection data analysis results to obtain statistical distribution analysis processing results.

[0055] The food safety detection and early warning processing device provided by the present invention crawls network data through a preset crawler strategy to obtain food safety detection data, classifies and integrates the food safety detection data to obtain classification tables corresponding to different topics, and stores the classification tables corresponding to different topics in corresponding subject resource libraries, performs data analysis and processing on the food safety detection data in the classification tables of each topic in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and performs visual display and early warning prompts based on the food safety detection data analysis results, which can effectively improve the efficiency of food safety detection and early warning processing.

[0056] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device (i.e., the real-time monitoring system for power grid or the real-time monitoring device for power grid) may include: a processor 701, a communication interface 704, a memory 702, and a communication bus 703, wherein the processor 701, the communication interface 704, and the memory 702 communicate with each other through the communication bus 703. The processor 701 may call the logic instructions in the memory 702 to execute the food safety detection early warning processing method, which includes: crawling the network data based on the preset crawler strategy to obtain food safety detection data; performing classification and fusion processing on the food safety detection data to obtain classification tables corresponding to different topics, and storing the classification tables corresponding to different topics in the corresponding subject resource library; performing data analysis processing on the food safety detection data in the classification tables of each subject in the subject resource library based on the preset risk index to obtain the food safety detection data analysis results, and performing visual display and early warning prompts based on the food safety detection data analysis results.

[0057] In addition, the logic instructions in the above-mentioned memory 702 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0058] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the food safety detection and early warning processing methods provided by the above-mentioned methods, which include: crawling network data based on a preset crawler strategy to obtain food safety detection data; classifying and fusing the food safety detection data to obtain classification tables corresponding to different topics, and storing the classification tables corresponding to different topics in corresponding subject resource libraries; performing data analysis and processing on the food safety detection data in the classification tables of each topic in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and performing visual display and early warning prompts based on the food safety detection data analysis results.

[0059] On the other hand, the present application also provides a computer-readable storage medium, which includes a stored program, wherein the program, when running, executes the food safety detection and early warning processing method provided by the above-mentioned methods, the method including: crawling network data based on a preset crawler strategy to obtain food safety detection data; classifying and fusing the food safety detection data to obtain classification tables corresponding to different topics, and storing the classification tables corresponding to different topics in corresponding subject resource libraries; performing data analysis and processing on the food safety detection data in the classification tables of each topic in the subject resource library based on preset risk indicators to obtain food safety detection data analysis results, and performing visual display and early warning prompts based on the food safety detection data analysis results.

[0060] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A food safety detection and early warning processing method, characterized in that: include: Crawl network data based on preset crawler strategies to obtain food safety testing data; Classify and fuse the food safety detection data to obtain classification tables corresponding to different topics, and store the classification tables corresponding to different topics in corresponding topic resource libraries; Based on preset risk indicators, data analysis and processing are performed on the food safety detection data in the classification table of each theme in the theme resource library to obtain food safety detection data analysis results, and visual display and early warning prompts are performed based on the food safety detection data analysis results.

2. The food safety detection and early warning processing method according to claim 1, characterized in that: The crawler strategy includes crawled web page addresses, data crawling rules, data crawling scope and data crawling cycle; The method of crawling network data based on a preset crawler strategy to obtain food safety testing data includes: Based on the data crawling rules, the data crawling range and the data crawling period in the crawler strategy, periodically crawl the network data under the crawled web page address in the preset crawler strategy to obtain initial food safety detection data; The initial food safety detection data is deduplicated to obtain food safety detection data.

3. The food safety detection and early warning processing method according to claim 2, characterized in that: The deduplication processing of the initial food safety detection data to obtain the food safety detection data includes: Calling a company name monitoring interface provided by a preset third-party platform, correcting the company name of each piece of data in the initial food safety testing data, and obtaining the corrected food safety testing data; wherein the third-party platform pre-stores the standard company names of various companies.

4. The food safety detection and early warning processing method according to claim 1, characterized in that: The food safety detection data is subjected to classification and fusion processing to obtain classification tables corresponding to different topics, and the classification tables corresponding to different topics are stored in corresponding topic resource libraries, including: Performing data cleaning on the food safety detection data to obtain cleaned food safety detection data; Performing data labeling on the cleaned food safety detection data to obtain labeled food safety detection data; Performing data fusion and modeling processing on the labeled food safety testing data to obtain a classification table corresponding to different topics; According to the subject type corresponding to the classification table, the classification tables corresponding to different subjects are respectively stored in at least one subject resource library of the corresponding subject type; wherein each subject resource library is a separate database, and each database stores the classification tables of the corresponding subject type.

5. The food safety detection and early warning processing method according to claim 1, characterized in that: The data analysis and processing of the food safety detection data in the classification table of each subject in the subject resource library based on the preset risk index to obtain the food safety detection data analysis results includes: Determine a potential risk indicator and a potential risk indicator query statement corresponding to the potential risk indicator, and query the food safety detection data corresponding to the potential risk indicator in the classification table of each subject in the subject resource library based on the potential risk indicator and the potential risk indicator query statement corresponding to the potential risk indicator to obtain potential risk indicator result data; Determine a monitoring indicator and a monitoring indicator query statement corresponding to the monitoring indicator, and analyze and process the monitoring indicator in the potential risk indicator result data based on the monitoring indicator and the monitoring indicator query statement corresponding to the monitoring indicator to obtain the monitoring indicator result data; Determine the sampling inspection indicators, and analyze and process the monitoring indicator result data based on the sampling inspection indicators to obtain food safety detection data analysis results.

6. The food safety detection and early warning processing method according to claim 5, characterized in that: Also includes: Perform risk grading on the food safety testing data analysis results to obtain a corresponding risk grading assessment report; Perform statistical distribution analysis processing on the food safety detection data analysis results to obtain statistical distribution analysis processing results.

7. A food safety detection and early warning processing device, characterized in that: include: A data collection unit, used to crawl network data based on a preset crawler strategy to obtain food safety testing data; A data management unit, used for classifying and fusing the food safety detection data, obtaining classification tables corresponding to different topics, and storing the classification tables corresponding to different topics in corresponding topic resource libraries; The data analysis and visualization unit is used to perform data analysis and processing on the food safety detection data in the classification table of each theme in the theme resource library based on preset risk indicators, obtain food safety detection data analysis results, and perform visual display and early warning prompts based on the food safety detection data analysis results.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the food safety detection and early warning processing method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the food safety detection and early warning processing method as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the food safety detection and early warning processing method as described in any one of claims 1 to 6 is implemented.