Identification code data updating method and system based on food safety collaborative inspection system
Through the food safety collaborative inspection system, combined with consumer feedback, network evaluation and real-time monitoring data, the food safety level of the store is dynamically updated, which solves the problem of untimely reflection of food safety status and achieves real-time tracking and accurate assessment of food safety supervision.
Patent Information
- Application Number
- CN202410769412.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-14
AI Technical Summary
In the existing technology, the food safety status of the store is not reflected in time, and the identification code data update cannot reflect the dynamic changes of the store in real time, resulting in food safety supervision lagging behind.
The identification code data update method based on the food safety collaborative inspection system is used to evaluate the food safety level of the store in real time by receiving consumer feedback information, online review data and real-time monitoring data, and dynamically updates the identification code record to ensure that the data reflects the store's status in a timely manner. Food safety status.
It realizes real-time assessment and dynamic early warning of the food safety status of stores, improves the timeliness and accuracy of food safety supervision, and ensures the simultaneous update of food safety information.
Smart Images

Figure CN118365392B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic digital data processing, and in particular to an identification code data updating method and system based on a food safety collaborative inspection system. Background Art
[0002] In the modern retail market, large shopping malls and shopping centers have become the main places for consumers to shop and eat on a daily basis. These malls usually contain multiple stores, ranging from clothing and home appliances to food and catering services. As consumers' requirements for food safety and quality increase, mall managers need to ensure that all their stores strictly comply with food safety regulations to protect consumer health and maintain the mall's brand image.
[0003] In the related art, the supervision of food safety in shopping malls usually relies on comprehensive monitoring systems and regular quality inspections. These supervision measures also include setting up identification codes, which track and record food safety records and inspection histories by assigning a unique identification code to each store. The identification code can be used to quickly access the store's compliance status, historical violations, and any relevant food safety information.
[0004] However, the identification codes in related technologies often reflect static historical regulatory data, which requires on-site supervision and updating by supervisory personnel. This identification code data update method is difficult to timely reflect the real-time food safety status of the store. Summary of the invention
[0005] The present application provides an identification code data updating method and system based on a food safety collaborative inspection system, which is used to timely reflect the real-time food safety status of a store.
[0006] In the first aspect, the present application provides an identification code data updating method based on a food safety collaborative inspection system, which is applied to the food safety collaborative inspection system, and the method includes: receiving safety feedback information uploaded by consumers when scanning an identification code at a target store, and determining a customer feedback index based on the safety feedback information; the safety feedback information includes a safety feedback score, a safety feedback image, and a safety feedback text; collecting online review data of the target store on the Internet, and determining a network rating index based on the network review data; determining the real-time food safety level of the target store based on the customer feedback index and the network rating index; when the real-time food safety level is different from the historical food safety level recorded by the identification code, collecting an operation monitoring image of the target store, and determining the real-time safety score of the target store through the operation monitoring image; when the real-time safety score matches the real-time food safety level, sending a security level update request and an operation monitoring image to a supervision client; in response to an update confirmation instruction returned by the supervision client, updating the historical food safety level recorded by the identification code to the real-time food safety level.
[0007] In the above embodiment, the food safety collaborative inspection system determines the customer feedback index by receiving safety feedback information uploaded by consumers, and collects online review data to determine the network rating index. The food safety level of the target store is determined in real time based on the customer feedback index and the network rating index. When the real-time food safety level is different from the historical level, it indicates that the food safety level needs to be updated, that is, it needs to be increased or decreased. The real-time safety score is confirmed by collecting operation monitoring images. When the real-time score matches the real-time level, that is, the situation is confirmed through video analysis, an update request is sent to the supervision end in real time, and the historical food safety level recorded in the identification code is updated according to the confirmation instruction of the supervision end. This method comprehensively utilizes multi-source data such as consumer feedback, online evaluation and real-time monitoring to form an objective and comprehensive food safety assessment, and through the dynamic update mechanism of the identification code record, it ensures that the identification code data can timely reflect the real-time food safety status of the store, providing support for effective supervision.
[0008] In combination with some embodiments of the first aspect, in some embodiments, receiving security feedback information uploaded by consumers when scanning an identification code in a target store, and determining a customer feedback index based on the security feedback information, specifically includes: receiving security feedback information uploaded by consumers when scanning an identification code in a target store; obtaining multiple evaluation scores for multiple evaluation contents in the security feedback score of the security feedback information; the multiple evaluation contents include food freshness, environmental hygiene, service attitude and order accuracy; taking a weighted average of the multiple evaluation scores to obtain a preliminary feedback index; identifying key elements in a security feedback image of the security feedback information; the key elements include order information, food images, takeout packaging and delivery environment; comparing the key elements with the security feedback text to obtain a feedback consistency score; and determining the customer feedback index based on the preliminary feedback index and the feedback consistency score.
[0009] In the above embodiment, the food safety collaborative inspection system obtains the evaluation scores of multiple evaluation contents (food freshness, environmental hygiene, service attitude and order accuracy, etc.) in the safety feedback score and obtains the initial feedback index by weighted average; identifies the key elements in the safety feedback image (order information, food image, takeaway packaging and delivery environment, etc.), compares the key elements with the safety feedback text to obtain the feedback consistency score; finally, the customer feedback index is determined by combining the preliminary feedback index and the feedback consistency score. By means of quantitative scoring, image-text comparison, etc., the customer feedback content is identified, which improves the credibility and accuracy of the customer feedback index.
[0010] In combination with some embodiments of the first aspect, in some embodiments, after receiving safety feedback information uploaded by consumers scanning an identification code at a target store, and determining a customer feedback index based on the safety feedback information, the method also includes: identifying safety feedback images and safety feedback text in the safety feedback information, generating a food safety risk warning in combination with the historical food safety records of the target store, and sending the food safety risk warning to the supervision client; receiving the on-site inspection task returned by the supervision client, and sending the on-site inspection task to the law enforcement client corresponding to the target store; receiving the on-site inspection results uploaded by the law enforcement client, and synchronizing the on-site inspection results to the historical food safety records.
[0011] In the above embodiment, after determining the customer feedback index, the food safety collaborative inspection system will also identify safety feedback images and texts, and automatically generate food safety risk warnings based on the historical food safety records of the target store and send them to the regulatory end; the regulatory end can issue on-site inspection tasks based on this, and law enforcement personnel will conduct on-site inspections and feedback the results, and simultaneously update the historical food safety records of the store. Inspections are triggered by risk warnings, and the inspection results are fed back to the system data, forming a closed loop of consumer feedback, system warnings, on-site verification, and data updates, further strengthening the full-process collaboration and data-driven nature of food safety supervision, that is, adding the collaboration of merchants, consumers, and regulators to the process, using updated data to drive food safety supervision efforts, and improving the initiative and effectiveness of supervision.
[0012] In combination with some embodiments of the first aspect, in some embodiments, safety feedback images and safety feedback texts in safety feedback information are identified, and combined with the historical food safety records of the target store, a food safety risk warning is generated, and the food safety risk warning is sent to the supervision client, specifically including: using an image recognition model to analyze safety feedback images to identify key items with food safety hazards; key items include expired food, spoiled ingredients, and unqualified takeout lunch boxes; using a natural language processing model to analyze safety feedback texts to extract food safety-related food keywords and sentiment tendencies; obtaining the target store's historical food safety records, including historical complaint records, penalty records, and rectification records; based on key items, food keywords, sentiment tendencies, and historical food safety records, a food safety risk warning is generated through a preset food safety risk assessment model; the food safety risk warning includes risk level, risk cause, and response suggestions; when the risk level exceeds a preset risk threshold, the food safety risk warning is sent to the supervision client.
[0013] In the above embodiment, the food safety collaborative inspection system first uses an image recognition model to analyze safety feedback images to identify key items with food safety hazards, such as expired food, spoiled ingredients, and unqualified takeout boxes; then uses a natural language processing model to analyze safety feedback texts to extract food safety-related food keywords and sentiment tendencies; then combines historical food safety records such as historical complaints, punishments, and rectifications of the target store, and automatically generates a food safety risk warning containing risk levels, risk causes, and response suggestions through a preset food safety risk assessment model, and sends a warning to the regulatory end when the risk level exceeds the preset threshold. It integrates multi-dimensional information such as images, texts, and historical data, and uses AI models and risk assessment rules to achieve intelligent identification and early warning of food safety hazards, providing regulatory authorities with more accurate and insightful auxiliary decision-making basis.
[0014] In combination with some embodiments of the first aspect, in some embodiments, the real-time food safety level of the target store is determined based on the customer feedback index and the network scoring index, specifically including: standardizing the customer feedback index and the network scoring index, and mapping them to the same quantitative scoring interval respectively to obtain a standardized quantitative score; based on the standardized quantitative score, calculating the weighted geometric mean of the customer feedback index and the network scoring index to obtain a comprehensive scoring index; the weight of the customer feedback index is greater than the weight of the network scoring index; judging whether the comprehensive scoring index is higher than a preset credible threshold; if so, using the comprehensive scoring index as the food safety index, and determining the real-time food safety level corresponding to the food safety index according to a preset correspondence table.
[0015] In the above embodiment, the food safety collaborative inspection system first standardizes the customer feedback index and the network rating index and maps them to the same rating interval; then, based on the standardized quantitative rating, the weighted geometric mean of the two indexes is calculated as the comprehensive rating index; then, it is determined whether the comprehensive rating index is higher than the credible threshold. If it is higher, it is used as the food safety index, and its corresponding real-time food safety level is determined according to the preset correspondence table. The unified quantification of the ratings in different dimensions is achieved through indicator standardization, and the feedback credibility and source weight are taken into account for comprehensive calculation to obtain a more scientific and reasonable food safety rating result.
[0016] In combination with some embodiments of the first aspect, in some embodiments, after the step of updating the historical food safety level recorded in the identification code to the real-time food safety level in response to the update confirmation instruction returned by the supervision client, the method also includes: obtaining the location information of the target store and locating the target store on the food safety electronic map; based on the real-time food safety level, adding a corresponding safety level logo at the location of the target store in the food safety electronic map; when the real-time food safety level is a warning level, displaying a warning prompt in the information box of the target store in the food safety electronic map; counting the number and distribution of stores of multiple food safety levels in the food safety electronic map, and generating a regional food safety assessment report.
[0017] In the above embodiment, after updating the historical food safety level of the target shop identification code, the food safety collaborative inspection system will also obtain the location information of the target shop, locate the shop on the food safety electronic map, and add a real-time safety level logo at the corresponding location; when the real-time food safety level is a warning level, an early warning prompt will be displayed in the map shop information box. In addition, the system will also statistically analyze the number and distribution of shops with different food safety levels on the map, and automatically generate a regional food safety assessment report. This visual management mode based on electronic maps intuitively presents the food safety situation of a single shop and the region as a whole, making it easier for management departments to grasp food safety trends, carry out precise supervision and scientific decision-making.
[0018] In combination with some embodiments of the first aspect, in some embodiments, after receiving the safety feedback information uploaded by the consumer by scanning the identification code in the target store, and determining the customer feedback index based on the safety feedback information, the method also includes: obtaining the consumer's user identity, and associating and storing the user identity with multiple food safety feedbacks uploaded by the consumer; tracking and analyzing the feedback behavior data of the user identity within a preset time period; the feedback behavior data includes feedback frequency, feedback content keywords and feedback emotional tendency; judging whether the user identity has abnormal feedback behavior based on the feedback behavior data; when it is judged that abnormal feedback behavior exists, adding the user identity to the feedback blacklist, and removing the corresponding abnormal feedback content from the identification code record.
[0019] In the above embodiment, the food safety collaborative inspection system will obtain the consumer's user identity and associate it with the food safety feedback uploaded by the user for storage; and track and analyze the user's feedback behavior data within a certain period of time, such as feedback frequency, feedback content keywords, feedback emotional tendencies, etc.; and judge whether the user has abnormal feedback behavior, such as malicious order brushing, false complaints, etc.; once an abnormality is found, the user identity will be added to the feedback blacklist, and the abnormal feedback content corresponding to the user will be removed from the identification code record. Through the user feedback behavior portrait, suspicious or malicious feedback information can be identified, the fairness and effectiveness of food safety evaluation data can be maintained, and abnormal feedback can be prevented from disrupting the food safety level assessment of stores.
[0020] In a second aspect, an embodiment of the present application provides a food safety collaborative inspection system, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the food safety collaborative inspection system to perform the method described in the first aspect and any possible implementation method of the first aspect.
[0021] In a third aspect, an embodiment of the present application provides a computer program product comprising instructions. When the above-mentioned computer program product runs on a food safety collaborative inspection system, the above-mentioned food safety collaborative inspection system executes the method described in the first aspect and any possible implementation method of the first aspect.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions. When the instructions are executed on a food safety collaborative inspection system, the food safety collaborative inspection system executes the method described in the first aspect and any possible implementation method of the first aspect.
[0023] It is understandable that the food safety collaborative inspection system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0025] 1. Due to the adoption of the identification code data update method based on the food safety collaborative inspection system, it is possible to comprehensively utilize multi-source heterogeneous data such as consumer feedback, network evaluation and real-time monitoring to objectively and comprehensively evaluate the food safety status of the store, and through the dynamic association of the identification code with the evaluation result, the identification code data and the real-time food safety status of the store can be synchronously updated, which effectively solves the problems of poor lag of identification code data and inaccurate reflection of real-time status in the existing technology, thereby realizing real-time evaluation, dynamic early warning and precise traceability of food safety status, providing a data basis for intelligent food safety supervision.
[0026] 2. Due to the use of the visual management mode of the food safety electronic map, each store can be accurately located on the map, and its food safety status can be intuitively reflected through safety level identification and early warning prompts. At the same time, the number and distribution of stores with different food safety levels in the region are summarized and displayed, and a regional food safety assessment report is automatically generated, which effectively solves the problems of food safety information fragmentation, data difficulty in association, and regional status opacity in existing technologies, thereby realizing refined dynamic supervision of individual stores and overall situation awareness of regional food safety situations. Managers can quickly grasp the distribution patterns of high-risk stores through the food safety electronic map and deploy supervision forces in a targeted manner; they can also promptly discover regional and systemic food safety risks, issue early warnings, and take countermeasures.
[0027] 3. Due to the adoption of intelligent analysis and abnormal identification mechanism of consumer feedback behavior, it is possible to establish a feedback behavior portrait with user identity as the core, including dimensions such as feedback frequency, feedback content, emotional tendency, etc., and automatically identify abnormal behaviors such as malicious order brushing and false complaints through abnormal pattern recognition algorithm, put abnormal users in the blacklist, and remove their feedback data, effectively solving the problems of public feedback being susceptible to malicious manipulation and data distortion in existing technologies, thereby realizing standardized management of public participation in food safety and ensuring the authenticity and fairness of the basic data of food safety evaluation of shops. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a flow chart of a method for updating identification code data based on a food safety collaborative inspection system in an embodiment of the present application;
[0029] Figure 2 This is another flowchart of the identification code data updating method based on the food safety collaborative inspection system in the embodiment of the present application;
[0030] Figure 3 It is a schematic diagram of the structure of a physical device of the food safety collaborative inspection system in the embodiment of the present application. DETAILED DESCRIPTION
[0031] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.
[0032] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0033] For ease of understanding, the application scenarios of the embodiments of the present application are introduced below.
[0034] Ms. Wang is a food safety supervisor who is responsible for the daily supervision and inspection of catering shops in her jurisdiction. With the increase in the number of shops and the diversification of business forms, the traditional supervision model faces many challenges. For example, Ms. Wang found that the food safety status of some shops changes rapidly, and the results of each on-site inspection may not match the actual situation; the evaluation of shops on the online ordering platform is mixed and difficult to serve as a reliable basis; the channels for consumer complaints and reports are not smooth, making it difficult to discover hidden dangers in a timely manner. In addition, a large amount of food safety data is scattered in different systems and lacks effective integration. Ms. Wang cannot quickly and comprehensively grasp the food safety dynamics of shops. During a routine inspection, Ms. Wang found that a restaurant with multiple complaint records was still in business, and tourists were unaware of its hygiene conditions. This incident highlighted the loopholes and lags in the current supervision mechanism.
[0035] In the related art, the food safety status of catering shops can be assessed by regular on-site inspections and sampling assessments. However, this method is difficult to reflect the real-time dynamic changes in food safety in shops, and the assessment results are delayed. The following describes the scenario of using the identification code data update method based on the food safety collaborative inspection system in the related art.
[0036] Mr. Li runs a restaurant and has been working hard to maintain good food safety. However, since the regulatory authorities mainly rely on regular on-site inspections, it is difficult to grasp the dynamic changes of restaurants in real time, and the inspection results often lag behind the actual situation. Once, Mr. Li's restaurant had quality problems due to supplier problems. Although Mr. Li rectified it as soon as possible, due to information asymmetry, the regulatory authorities and consumers were not aware of it, and the restaurant's food safety level was not updated in time. At the same time, some unscrupulous merchants took advantage of the loophole of information lag, relaxed management after the inspection, and even falsified and deceived, while the regulatory authorities and consumers were unaware of this. The existing food safety rating publicity system is mainly based on historical inspection records, which is difficult to reflect the real-time status changes of shops and cannot provide effective reference for consumers. This situation not only affects the interests of law-abiding operators, but also undermines the public's confidence in food safety. Mr. Li realized that the dynamic changes in food safety risks require real-time interaction and collaborative governance among regulatory authorities, operators, and consumers. It is difficult to meet the needs of the new situation by simply relying on regular inspections by government departments.
[0037] The identification code data update method based on the food safety collaborative inspection system in the embodiment of the present application is adopted. By integrating multi-source heterogeneous data such as consumer feedback, network evaluation, and real-time monitoring, combined with big data analysis and intelligent algorithms, the food safety status of the store is dynamically evaluated, and the evaluation results are associated with the store identification code, so as to achieve real-time update of the store's food safety information, which not only timely and comprehensively reflects the actual food safety status of the store, but also facilitates all parties to obtain and respond in a timely manner. The following introduces the scenario of using the identification code data update method based on the food safety collaborative inspection system in this application.
[0038] Ms. Zhang is a developer of a collaborative food safety inspection system. She learned that the regulatory department where Ms. Wang works is exploring innovative regulatory models. Ms. Zhang introduced to Ms. Wang the identification code-based food safety data update method she participated in developing. This method makes full use of multi-source data such as consumer feedback, online evaluation, and real-time monitoring. Through big data analysis and intelligent algorithms, it dynamically evaluates the food safety status of shops, and associates the results with the shop's identification code to achieve real-time updates of rating logos. Ms. Zhang took out her mobile phone and demonstrated how to scan the shop's identification code to obtain food safety information. Ms. Wang was pleasantly surprised to find that the system can not only display the shop's real-time food safety level, but also automatically compare historical data and intelligently warn of risk changes. Through this system, regulatory authorities can achieve real-time control of the food safety status of shops, and consumers can make wise choices based on this. Ms. Zhang said that this method can also promote social co-governance with the participation of all parties. Merchants can improve management and enhance their reputation based on this, and consumers can easily provide feedback and participate in supervision. The benign interaction of multi-party collaboration is conducive to promoting the overall improvement of food safety levels.
[0039] It can be seen that the use of the identification code data updating method in the embodiment of the present application can not only realize the objective evaluation and dynamic presentation of the food safety status of the store, but also effectively solve the drawbacks of the traditional supervision model such as information asymmetry and untimely response, thereby realizing precise food safety supervision and social governance based on big data and intelligent technology.
[0040] For ease of understanding, the following describes the process of the method provided by this implementation in combination with the above scenario. Figure 1 , which is a flow chart of a method for updating identification code data based on a food safety collaborative inspection system in an embodiment of the present application.
[0041] It should be noted that the food safety collaborative inspection system described in this article refers to a computer with data collection and processing functions. Its specific implementation method is similar to that of a server. For the sake of convenience, it will be abbreviated as a system in some cases.
[0042] S101, receiving security feedback information uploaded by consumers scanning identification codes at target stores, and determining a customer feedback index based on the security feedback information.
[0043] The food safety collaborative inspection system will receive safety feedback information uploaded by consumers when they scan the identification code at the target store. These safety feedback information usually include consumers' subjective evaluation of the food safety status of the store, description of the dining experience, on-site pictures and other multi-dimensional content. For text evaluation, the food safety collaborative inspection system will use natural language processing technology to analyze the emotional tendency in the text evaluation; for image information, the system will use image recognition algorithms to determine the food hygiene status in the image information. Specifically, the system will first clean, classify and standardize these unstructured feedback data, extract key information elements, and obtain feedback information containing text and images. Then, the various elements of the feedback information, such as food freshness, environmental hygiene, service attitude, order accuracy, etc., are comprehensively extracted, and these elements are uniformly quantified into corresponding scores. On this basis, the system will set weights for different elements such as food freshness, environmental hygiene, service attitude, order accuracy, etc., and finally obtain the customer feedback index through weighted calculation as an important reference for measuring the food safety status of the store. It should be noted that the determination of these weights on the food safety collaborative inspection system can be established by community coordinators or regulators, and different weights can represent different levels of importance of different elements. Community coordinators or supervisors belong to the community supervision department. They are staff members who inspect, supervise and manage the safety and sanitation of all target shops. They are also simply referred to as supervisors in the following description.
[0044] In this application, an image recognition model is used to identify images. The model is used to analyze safety feedback images uploaded by consumers and identify key items with food safety risks, such as expired food, spoiled ingredients, substandard takeout boxes, etc. The input data of the model is food safety-related images uploaded by consumers, and the output data is key items with food safety risks in the image and their location information. The model is usually trained using a deep learning-based target detection algorithm, with common food safety hazard items as the training focus, and their visual features are learned through a large number of labeled samples. The performance evaluation indicators of the model usually include accuracy, recall rate, etc., which measure the accuracy and completeness of the recognition results.
[0045] When processing text, a natural language processing model is used. This model is used to analyze the safety feedback text uploaded by consumers and extract keywords and sentiment tendencies related to food safety. The input data of the model is the text content of consumer feedback, and the output data is keywords related to food safety and the corresponding positive and negative sentiments. The model is usually trained using a text classification algorithm based on word vectors and recurrent neural networks. It uses professional vocabulary and sentiment dictionaries in the field of food safety as the knowledge basis, and learns food safety semantics and sentiment judgment rules through a large number of labeled samples. The performance evaluation indicators of the model usually include classification accuracy, F1 value, etc., which measure the effectiveness of keyword extraction and sentiment judgment.
[0046] S102: Collect online review data of target shops on the Internet, and determine an online rating index based on the online review data.
[0047] The food safety collaborative inspection system will also actively collect online review data of target shops on the Internet, which are scattered across major review platforms, social media and other channels. The food safety collaborative inspection system uses crawler technology to regularly capture review information related to target shops, including star ratings, text comments, pictures and videos. For the massive amount of unstructured data captured, the system will first clean the data, eliminate duplicate, invalid and false information, and classify them according to the review objects (such as food taste, environmental hygiene, service quality, etc.). Then, the system will perform sentiment analysis on each type of review data, determine positive, neutral and negative tendencies, and uniformly quantify them into corresponding scores. On the basis of comprehensive review scores of various types, the system will fully consider the weight differences of the number of reviews on different platforms, and finally calculate the network score index using the weighted average method. This index objectively reflects the public's online public opinion on the food safety of target shops, and is an important window for supervisors such as community coordinators or supervisors in the regulatory department to gain insight into their risk hazards. At the same time, the system will track and analyze the dynamic change trend of the network score index, automatically warn of negative public opinion risks, and provide a basis for timely response and disposal.
[0048] S103. Determine the real-time food safety level of the target store based on the customer feedback index and the network rating index.
[0049] After obtaining the customer feedback index and the network rating index, the food safety collaborative inspection system will use a combination of big data analysis and intelligent algorithms to dynamically evaluate the real-time food safety level of the target store. First, the system standardizes the two indexes and unifies the index dimensions to ensure that the evaluation process is scientific and accurate. Secondly, the system will fully consider the weight differences between the two indexes, set weight parameters based on historical data and expert experience, and use a weighted calculation method to derive a comprehensive food safety score. Of course, the setting of the weight parameters can also be adjusted or supplemented by supervisors such as community coordinators or supervisors in the regulatory department.
[0050] The food safety collaborative inspection system will compare the comprehensive score with the preset safety level threshold and automatically determine the real-time food safety level of the target store (such as excellent, good, medium, poor, etc.). In addition, the system can also combine the store's historical food safety records, track the trajectory of relevant change data and identify anomalies based on the historical food safety records, dynamically adjust the safety level determination results, and improve the continuity and accuracy of the assessment.
[0051] S104. When the real-time food safety level is different from the historical food safety level recorded in the identification code, collect operation monitoring images of the target store, and determine the real-time safety score of the target store through the operation monitoring images.
[0052] After determining the real-time food safety level of the target store, the food safety collaborative inspection system will compare it with the historical food safety level recorded in the identification code. When the real-time level is found to be inconsistent with the historical level, the system will automatically trigger the early warning mechanism and collect the operation monitoring images of the target store for further verification. These monitoring images usually come from the video monitoring equipment inside the store, covering key links such as food processing, storage, and sales. The system can obtain monitoring images in real time through the image acquisition interface and use computer vision technology to perform intelligent analysis of the image content.
[0053] For example, the target detection algorithm can be used to identify whether employees in the food processing area are wearing protective equipment such as masks and gloves; the image classification algorithm can be used to determine whether the food storage environment meets the temperature and humidity requirements, that is, whether the refrigerated area is powered on and whether the food is stored in the refrigerated area; the behavior recognition algorithm can be used to analyze whether the food protection measures in the sales area are in place. The system compares the image analysis results with the preset food safety specifications, automatically determines the compliance of various indicators, and calculates the real-time safety score of the target store. This score provides a more intuitive and objective basis for determining the food safety level, which helps regulatory authorities to promptly identify potential risks.
[0054] S105: When the real-time safety score matches the real-time food safety level, a safety level update request and an operation monitoring image are sent to the supervision client.
[0055] After obtaining the real-time safety score of the target store, the food safety collaborative inspection system will match and verify it with the previously determined real-time food safety level. If the real-time safety score matches the real-time food safety level, that is, the score result supports the level determination conclusion, the system will automatically generate a security level update request, and send the request together with supporting materials (such as operation monitoring images, etc.) to the supervision client, and submit the application to the supervision client for review and confirmation. The supervision client is generally a mobile terminal device equipped by supervisors such as community coordinators or supervisors, and is installed with a special application that connects to the system. These supervisors can receive various warning information and business requests pushed by the system in real time through this application. After receiving the security level update request, the supervisor can view the request content, review the evidence materials such as operation monitoring images, and comprehensively judge the rationality and necessity of the level adjustment. Through the review link of human-computer interaction, the system judgment deviation can be further reduced, and the authority and credibility of food safety assessment can be improved.
[0056] S106. In response to the update confirmation instruction returned by the supervision client, update the historical food safety level recorded in the identification code to the real-time food safety level.
[0057] After the food safety collaborative inspection system sends a security level update request to the supervision client, it will continue to monitor the client's feedback instructions. When the system receives an update confirmation instruction from a supervisor such as a community coordinator or supervisor from the supervision client, the system will immediately start the identification code record update program. Specifically, the system writes the real-time food safety level of the target store into the archive record of the corresponding identification code, replaces the original historical food safety level, and completes the dynamic update of the level information. At the same time, the system will also synchronously update the store's food safety credit file, adjust the credit score and credit level, and push the updated credit information to the "Internet + Supervision" system, public inquiry platform and other relevant channels to facilitate real-time inquiries by the public. In addition, the system will also record this update in the store file change log for subsequent traceability and verification. Through the dynamic association of identification code records and food safety levels, the system realizes real-time supervision of the food safety status of stores, allowing supervision information to reach every consumer terminal.
[0058] In the above embodiment, the general method for updating the identification code data is described. In practical applications, the technical solution of the present application can be further optimized, such as introducing an artificial intelligence model to automatically identify false information, and visually presenting the regional food safety status through a visualized electronic map, so as to further improve the effectiveness of collaborative food safety supervision.
[0059] The following is a supplement to the scenario of this embodiment.
[0060] After the food safety collaborative inspection system was put into use for a period of time, Ms. Wang found that the system was running well overall and the efficiency of food safety supervision was significantly improved. However, in actual application, she also found some room for optimization. For example, a few unscrupulous merchants hired "water armies" to maliciously brush orders in an attempt to manipulate online reviews; some dissatisfied consumers submitted false complaints to disrupt the food safety level of the store. If these noise data are not identified in time, they may mislead regulatory decisions and public judgment. Ms. Wang fed back this problem to Ms. Zhang. Ms. Zhang returned to the team and developed an intelligent analysis function for consumer feedback behavior. Through user identity recognition, feedback behavior modeling and other technologies, the system can automatically identify abnormal behaviors such as malicious brushing orders and false complaints, and exclude them from the data analysis range, further improving the authenticity and fairness of food safety evaluation data. In addition, Ms. Zhang also developed a food safety electronic map function, which combines the real-time food safety information of the store with the geographic location, intuitively presents the regional food safety situation, and provides strong support for precise supervision and scientific decision-making.
[0061] After combining the above scenarios, the following is a more detailed description of the process of the method provided by this implementation. Figure 2 , is another flow chart of the identification code data updating method based on the food safety collaborative inspection system in an embodiment of the present application.
[0062] S201. Receive security feedback information uploaded by consumers when scanning an identification code at a target store, and determine a customer feedback index based on the security feedback information.
[0063] Referring to step S101, the food safety collaborative inspection system determines a customer feedback index based on the safety feedback information.
[0064] In some embodiments, the food safety collaborative inspection system will receive safety feedback information uploaded by consumers when they scan an identification code at a target store, and obtain multiple evaluation scores for multiple evaluation contents in the safety feedback score of the safety feedback information; by taking a weighted average of the multiple evaluation scores, the system can obtain a preliminary feedback index; the food safety collaborative inspection system will identify key elements in the safety feedback image of the safety feedback information; then compare the key elements with the safety feedback text to obtain a feedback consistency score; finally, determine the customer feedback index based on the preliminary feedback index and the feedback consistency score.
[0065] Specifically, in some embodiments, the food safety collaborative inspection system collects first-hand evaluation data on food safety conditions from consumers by having them scan the identification code of the target store to upload safety feedback information. These feedback messages usually include multiple evaluation dimensions, such as food freshness, environmental hygiene, service attitude, order accuracy, etc. Consumers can give satisfaction scores for each item. After obtaining these sub-item scores, the system will calculate a preliminary feedback index based on the weight coefficients of different evaluation contents, that is, the importance of each indicator, through a weighted average algorithm as a basic quantitative indicator for measuring consumer satisfaction. The weight coefficient here can also be set by supervisors such as community coordinators or supervisors.
[0066] In addition to the ratings, the image information provided by consumers is also an important basis for assessing food safety. The system uses image recognition technology to automatically extract key elements from safety feedback images, such as order information, food images, takeaway packaging, and delivery environment. These key elements can verify food safety conditions from different perspectives. For example, food images can intuitively reflect the freshness and integrity of ingredients, takeaway packaging can reflect the sanitary protection measures of the delivery process, and the delivery environment can reflect the food safety control of terminal delivery. The system will intelligently match and compare the key elements in the image with the consumer's text evaluation, analyze the consistency of the graphic and text information, and calculate the feedback consistency score. The feedback consistency score can be used as an important reference for identifying false reviews and malicious complaints.
[0067] The customer feedback index is a key indicator for comprehensively evaluating the reliability of consumer feedback. After calculating the preliminary feedback index and the feedback consistency score, the system will further analyze the correlation between the two indicators. If the preliminary feedback index is high and matches the feedback consistency score, it means that the consumer's subjective evaluation of the food safety situation is consistent with the objective feedback, and the feedback information is highly credible. The system directly takes the preliminary feedback index as the final customer feedback index; on the contrary, if the two indicators do not match, such as the preliminary feedback index is low, but the feedback consistency score is high, it means that the consumer's subjective evaluation deviates from the actual situation and there may be suspicion of malicious evaluation. The system will lower the preliminary feedback index based on the preset balance callback mechanism to obtain a more objective and fair customer feedback index.
[0068] In some embodiments, the food safety collaborative inspection system will obtain the consumer's user identity and store the user identity in association with multiple food safety feedbacks uploaded by the consumer; the system will further track and analyze the feedback behavior data of the user identity within a preset time period; and determine whether the user identity has abnormal feedback behavior based on the feedback behavior data; finally, when it is determined that abnormal feedback behavior exists, the user identity is added to the feedback blacklist and the corresponding abnormal feedback content is removed from the identification code record.
[0069] Specifically, in some embodiments, the food safety collaborative inspection system will focus on the abnormality and continuity of consumer feedback behavior. When consumers upload food safety feedback information in the system, the system will obtain their user identity, such as mobile phone number, email address, etc. The system associates the user identity with the feedback information and stores it, constructs a "people-feedback" mapping relationship, and provides a data basis for subsequent behavior analysis. On this basis, the system will continue to track the feedback behavior data of specific users within a certain time period (such as a week or a month), focusing on three dimensions: one is the feedback frequency, that is, the number and frequency of user feedback; the second is the feedback content keywords, that is, the high-frequency words in the user feedback text; the third is the feedback emotional tendency, that is, the positive and negative emotions of the user feedback. The system will comprehensively analyze the above data features and automatically determine whether there is any abnormality in the user feedback behavior.
[0070] The collaborative food safety inspection system sets normal and abnormal thresholds for indicators such as feedback frequency, keywords, and emotional tendencies. When a user's feedback frequency is much higher than the average level, and the feedback content is similar and the emotional tendencies are consistent, the system preliminarily determines that the user has abnormal behaviors such as batch feedback and repeated complaints. Furthermore, the system will conduct an in-depth analysis of the authenticity of the feedback content, such as combining the user's historical consumption records and order information, verifying the match between the feedback content and the actual consumption experience, and identifying whether there are false or exaggerated situations. If the system ultimately determines that the user has violated regulations such as malicious feedback and inflammatory complaints, their identity will be automatically included in the feedback blacklist. Subsequent feedback from users on the blacklist will not be accepted by the system, and the relevant feedback content will be promptly removed and will not be included in the reference scope of the store's food safety assessment.
[0071] Through abnormal feedback behavior analysis and blacklist mechanism, the food safety collaborative inspection system can effectively identify and curb malicious feedback and maintain a fair and honest consumer evaluation order.
[0072] S202: Identify the safety feedback image and safety feedback text in the safety feedback information, generate a food safety risk warning based on the historical food safety record of the target store, and send the food safety risk warning to the supervision client.
[0073] After receiving the safety feedback information uploaded by consumers, the food safety collaborative inspection system will first intelligently identify and extract the information content. For safety feedback images, the system uses algorithms such as image segmentation and target detection to accurately locate food safety hazards in the image, such as finding expired and spoiled ingredients, non-compliant processing operations, and substandard sanitary environments. For safety feedback texts, the system uses natural language processing technology to analyze text semantics and explore food safety issues reported by consumers. After completing information identification and extraction, the system will combine the historical food safety records of the target store to comprehensively determine the food safety risk level. For example, if the problems revealed by the feedback information are highly consistent with the store's previous food safety violations, the system will determine that the store has major food safety hazards and generate a high-risk warning; conversely, if the feedback problem occurs for the first time in the store and the degree of harm is low, the system will generate a medium-to-low risk warning. After generating a food safety risk warning, the system immediately pushes the warning information to the supervision client, prompting community coordinators or supervisors and other supervisors to pay attention and deal with it in a timely manner. It should be noted that in an emergency, the system can also automatically upgrade the warning level according to preset rules, such as reporting major food safety hazards directly to the leaders of the regulatory department, and recommending immediate compulsory measures such as suspension of business and rectification to effectively protect the legitimate rights and interests of consumers.
[0074] In some embodiments, the food safety collaborative inspection system will use an image recognition model to analyze safety feedback images and identify key items that pose food safety hazards; it will then use a natural language processing model to analyze safety feedback texts and extract food safety-related food keywords and sentiment tendencies; the system will obtain the target store's historical food safety records, including historical complaint records, penalty records, and rectification records; it will then generate a food safety risk warning based on key items, food keywords, sentiment tendencies, and historical food safety records through a preset food safety risk assessment model; finally, when the risk level exceeds the preset risk threshold, the food safety risk warning will be sent to the regulatory client.
[0075] Specifically, in some embodiments, the food safety collaborative inspection system will make full use of artificial intelligence technology to conduct in-depth mining and intelligent analysis of safety feedback information uploaded by consumers, and promptly discover potential food safety hazards. For safety feedback images, the system uses an image recognition model based on deep learning to accurately analyze the image content. With common food safety hazards as the training focus, the system can automatically identify key items such as expired food, spoiled ingredients, and unqualified takeout boxes in the image, and determine their location and quantity through algorithms such as edge detection and feature extraction. The appearance of these key items often means that there are loopholes in food safety management, and is the direct basis for determining the level of food safety risk.
[0076] For safety feedback texts, the Food Safety Collaborative Inspection System uses natural language processing technology to perform semantic understanding and sentiment analysis on the text content. First, the system extracts food safety-related keywords in the text, such as "moldy", "rancid", "allergic", etc., through operations such as word segmentation, part-of-speech tagging, and named entity recognition. These keywords represent consumers' intuitive descriptions and feedback on food safety issues. Then, the system uses the sentiment tendency analysis model to determine whether the emotions in consumer feedback are positive or negative. For example, negative emotions such as "anger" and "disappointment" indicate that food safety issues are serious and consumer satisfaction is low. The system associates food keywords with sentiment tendencies to preliminarily determine the severity of food safety hazards.
[0077] After obtaining the above safety feedback information, the system will also extract the historical food safety records of the target store, including historical complaint records, punishment records, rectification records, etc. These records reflect the past performance of the store in food safety management and are an important reference for assessing food safety risks. The system conducts a comprehensive analysis of feedback information such as key items, food keywords, emotional tendencies, and historical food safety records, calculates the risk score through a preset food safety risk assessment model, and generates a food safety risk warning. The warning content usually includes risk levels (such as high, medium, and low), risk reasons (such as food quality and sanitary conditions), and response suggestions (such as on-site inspections and suspension of business).
[0078] The food safety risk assessment model will combine the image recognition results, text analysis results and the merchant's historical food safety records to assess the food safety risk level and generate corresponding warning information. The input data of the model includes key items identified in the image, food keywords and sentiment tendencies extracted from the text, the merchant's historical complaint records, punishment records, rectification records, etc. The output data is the food safety risk level (such as high, medium, and low) and warning information (including risk causes, response suggestions, etc.). The model is usually trained using a rule-based expert system or machine learning classification algorithm, with laws, regulations, standards and specifications in the field of food safety as the business knowledge basis, and learning food safety risk determination rules through a large number of historical cases. The performance evaluation indicators of the model usually include the accuracy of risk determination, the timeliness of warning, etc., to measure the effectiveness of risk assessment and warning generation.
[0079] The food safety collaborative inspection system sets threshold conditions for different risk levels. When the risk assessment score exceeds the preset high-risk threshold, the system will automatically push the food safety risk warning to the regulatory client, prompting community coordinators or supervisors and other supervisors to take targeted measures in a timely manner. At the same time, the system also supports regulatory departments to flexibly set warning trigger conditions according to actual needs, such as major food safety complaints must be reviewed and responded to within 1 hour, and three consecutive medium-risk warnings must initiate an interview mechanism. This intelligent risk warning mechanism not only reduces the workload of grassroots supervisors, but also improves the efficiency of discovering and handling food safety issues.
[0080] S203: Receive the on-site inspection task returned by the supervision client, and send the on-site inspection task to the law enforcement client corresponding to the target store.
[0081] After pushing food safety risk warnings to the regulatory client, the food safety collaborative inspection system will continue to monitor the client's task feedback. When receiving on-site inspection task instructions issued by supervisors such as community coordinators or supervisors, the system will immediately start the task dispatch process. First, the system automatically matches law enforcement officers in the jurisdiction based on information such as the geographical location of the store, fully considers factors such as the workload and professional expertise of the personnel, and selects suitable law enforcement officers to undertake the task. The law enforcement officer refers to a staff member related to the jurisdiction who has the right to enforce the law. In some embodiments, law enforcement officers and supervisors such as community coordinators or supervisors may be personnel from the same department or the same person. Then, the system generates a standardized task delegation form, which lists in detail the key elements such as the time, location, content, and requirements of the task, and pushes it to the selected law enforcement officer's mobile terminal in real time through the mobile client. After receiving the task notification, the law enforcement officer can accept or apply for adjustment according to the actual situation. Once the law enforcement officer confirms to accept the task, the system automatically updates the task status and prompts the law enforcement officer to complete the inspection on time. At the same time, the system will intelligently set the task completion deadline based on the risk level of the store. If law enforcement personnel fail to provide feedback on the inspection results within the specified time limit, the system will trigger an early warning and escalate the process as appropriate to ensure the timeliness and authority of food safety supervision.
[0082] S204. Receive the on-site inspection results uploaded by the law enforcement personnel's client, and synchronize the on-site inspection results to the historical food safety records.
[0083] After dispatching on-site inspection tasks, the food safety collaborative inspection system will track the inspection progress of law enforcement officers, and urge and guide them in a timely manner. When law enforcement officers complete the on-site inspection, they can use the mobile client to upload the inspection results anytime and anywhere, including text descriptions, picture evidence, video materials, disposal measures, etc. After receiving the inspection results, the system first conducts a compliance review of the uploaded content, focusing on whether the inspection process meets the regulatory requirements and whether the evidence materials are true and complete. After the review is passed, the system automatically extracts structured information, associates it with the store archives, and simultaneously updates it to the historical food safety record database. At the same time, the system will also intelligently analyze the results of this inspection. If major illegal and irregular behaviors or food safety accidents are found, the emergency plan will be triggered immediately, and administrative penalties, credit penalties, and referrals to relevant departments will be taken depending on the severity of the circumstances. In addition, for common problems and weak links found in the inspection, the system will form a special analysis report, which will be presented intuitively through technologies such as big data visualization to provide reference for regulatory decision-making. Through the collection, archiving, and analysis of on-site inspection results, the system realizes the closed-loop management of food safety issues, effectively urges merchants to fulfill their main responsibilities, promotes industry integrity and self-discipline, and improves regulatory efficiency.
[0084] It should be noted that the historical food safety records in this step refer to the food safety problem records of merchants in the past, such as on-site inspections by food safety regulatory authorities, consumer complaints and feedback, etc., which may include historical complaint records, penalty records, rectification records, etc., reflecting the long-term food safety management status of merchants. Based on the illegal and irregular information in these records, the system can automatically update the historical food safety level in the merchant files as an important basis for assessing the merchant's food safety credit status. If a merchant has multiple food safety complaints or penalty records, its historical food safety level will be reduced accordingly.
[0085] The historical food safety level of the subsequent step S207 is a quantitative representation of the historical food safety records. The system will set the level assessment rules and dynamically adjust the historical food safety level according to the merchant's food safety record. The adjustment here is usually stable and lagging, and will not change frequently and significantly. The food safety level assessed based on real-time monitoring data is dynamic and sensitive, and can quickly reflect changes in the merchant's food safety status. When the real-time food safety level deviates significantly from the historical food safety level, it often indicates that the merchant's food safety status has changed abnormally, which needs to attract the attention of the regulatory authorities.
[0086] S205: Collect online review data of the target store on the Internet, and determine an online rating index based on the online review data.
[0087] Referring to step S102, the food safety collaborative inspection system determines a network scoring index.
[0088] S206. Determine the real-time food safety level of the target store based on the customer feedback index and the network rating index.
[0089] Referring to step S103, the food safety collaborative inspection system determines the real-time food safety level.
[0090] In some embodiments, the food safety collaborative inspection system will standardize the customer feedback index and the network rating index, and map them to the same quantitative rating range respectively to obtain a standardized quantitative rating; then based on the standardized quantitative rating, the weighted geometric mean of the customer feedback index and the network rating index is calculated to obtain a comprehensive rating index; then the system will determine whether the comprehensive rating index is higher than a preset credible threshold; if so, the comprehensive rating index will be used as the food safety index, and the real-time food safety level corresponding to the food safety index will be determined according to a preset correspondence table.
[0091] Specifically, in some embodiments, the food safety collaborative inspection system will further integrate the customer feedback index and the network rating index to form a more comprehensive and objective food safety evaluation index. Since the customer feedback index and the network rating index are derived from consumer active feedback and online public data, respectively, there may be differences in their calculation caliber and quantitative standards. In order to ensure the comparability and consistency of the indicators, the system first standardizes the two types of indexes and maps them to a unified interval of 0-100 points. This process can use common algorithms such as Min-Max normalization to achieve linear stretching and scale adjustment of the indicator distribution.
[0092] On the basis of standardized processing, the food safety collaborative inspection system will comprehensively consider the importance of the customer feedback index and the network rating index, calculate the weighted geometric mean of the two, and obtain a comprehensive rating index. In terms of weight setting, the system will give the customer feedback index a higher weight, such as 0.7 or 0.8; while the weight of the network rating index is relatively low, such as 0.3 or 0.2. The first reason is that the customer feedback index is directly derived from the real experience and subjective evaluation of consumers, and can better reflect the actual situation of food safety; second, the network rating index is easily affected by human intervention factors such as brushing orders and deleting negative reviews, and its authenticity and reliability are relatively low. Therefore, in the calculation of the comprehensive rating index, the system will focus more on the influence of the customer feedback index.
[0093] For the calculated comprehensive scoring index, the Food Safety Collaborative Inspection System will further judge its credibility. By setting a credible threshold (such as 80 points), the system automatically identifies high-quality comprehensive scoring indexes and incorporates them into the subsequent rating process as food safety indexes. When the comprehensive scoring index reaches the credible threshold, it indicates that the index better comprehensively reflects the evaluation information of all parties and can be used as a direct basis for judging the food safety status. On the contrary, if the comprehensive scoring index does not reach the credible threshold, it indicates that there are large deviations in the evaluations of all parties, and the reference value of the index is limited. The system may temporarily not accept it or reduce its influence.
[0094] The food safety collaborative inspection system will preset a correspondence table between the food safety index and the food safety level. The table sets different food safety levels such as A, B, C, and D according to the level of the food safety index. Level A represents excellent food safety conditions, and the corresponding food safety index is usually above 90 points; Level B represents good food safety conditions, and the corresponding food safety index is usually between 80-90 points; Level C represents general food safety conditions, and the corresponding food safety index is usually between 60-80 points; and Level D represents poor food safety conditions, and the corresponding food safety index is usually below 60 points. This intuitive safety level division can help government regulatory departments and the public quickly understand and judge the food safety management level of merchants. In some embodiments, it can also be represented by excellent, good, medium, and poor.
[0095] S207: When the real-time food safety level is different from the historical food safety level recorded in the identification code, collect operation monitoring images of the target store, and determine the real-time safety score of the target store through the operation monitoring images.
[0096] Referring to step S104, the food safety collaborative inspection system determines the real-time safety score of the target store through the operation monitoring image.
[0097] S208. When the real-time safety score matches the real-time food safety level, a safety level update request and an operation monitoring image are sent to the supervision client.
[0098] Referring to step S105, when the real-time safety score matches the real-time food safety level, the food safety collaborative inspection system will send a security level update request and an operation monitoring image to the supervision client.
[0099] S209. In response to the update confirmation instruction returned by the supervision client, update the historical food safety level recorded in the identification code to the real-time food safety level.
[0100] Referring to step S106, the food safety collaborative inspection system will update the historical food safety level recorded in the identification code to the real-time food safety level.
[0101] In some embodiments, the food safety collaborative inspection system will obtain the location information of the target store and locate the target store on the food safety electronic map; then based on the real-time food safety level, the corresponding safety level logo will be added to the location of the target store in the food safety electronic map; when the real-time food safety level is a warning level, the system will display an early warning prompt in the information box of the target store in the food safety electronic map; finally, the system will count the number and distribution of stores of multiple food safety levels in the food safety electronic map, and generate a regional food safety assessment report.
[0102] Specifically, in some embodiments, the food safety collaborative inspection system will make full use of electronic map technology to intuitively present the food safety status of shops in the area. The system first obtains the location information of the target shop, such as geographic coordinates, address, etc., and accurately locates it on the food safety electronic map through algorithms such as geocoding. This process can be compared and verified with the store registration data of the government regulatory department to ensure the accuracy and authority of the positioning information. On this basis, the system adds A, B, C, D and other safety level logos to the corresponding positions in the map according to the real-time food safety level of the shop. Among them, Grade A corresponds to a green icon, indicating that the food safety status is excellent; Grade B corresponds to a blue icon, indicating that the food safety status is good; Grade C corresponds to a yellow icon, indicating that the food safety status is general; Grade D corresponds to a red icon, indicating that the food safety status is poor and needs to be paid special attention.
[0103] It should be noted that when the real-time food safety level of a store is at the warning level (such as C and D), the system will display a striking warning prompt in the information box of the store on the map, reminding consumers to choose carefully. Warning prompts usually include specific food safety hazard information, such as "recent complaints of moldy and spoiled ingredients" and "kitchen environment hygiene not up to standard", etc., to help consumers understand the problems of the store in detail. At the same time, the system also supports consumers to click on the store icon to view its food safety index, feedback evaluation and other detailed information, providing sufficient basis for consumer decision-making.
[0104] Through the food safety electronic map, the system can intuitively present the spatial distribution characteristics of food safety conditions in the region. Government regulatory authorities can use the statistical analysis function in the map to quickly understand the number and distribution of shops of different grades. For example, the system can automatically count that A- and B-level shops are concentrated in new urban areas, while C- and D-level shops are mainly distributed in old urban areas and urban-rural fringe areas, thereby judging the differences in food safety management levels and regulatory efforts in different regions. On this basis, the system can further use algorithms such as spatial clustering and hot spot analysis to identify weak areas of food safety management and form a regional food safety assessment report. The report can not only provide decision-making references for regulatory authorities, but also inform the public of the regional food safety situation and accept social supervision.
[0105] On the government regulatory side, the food safety electronic map can be connected to the food safety supervision information system of the regulatory department to achieve accurate deployment of regulatory forces. For example, when the number of Class C and Class D shops in a specific area surges, the system can automatically issue an early warning to prompt the regulatory department to increase the frequency of sampling and inspection in the area. On the public side, the food safety electronic map can be made public through government service platforms, WeChat applets and other channels, making it convenient for consumers to inquire and report at any time. At the same time, map data can also be connected to e-commerce platforms such as takeout and group buying to provide merchants with food safety background qualification verification services. In short, the food safety electronic map has built a social co-governance of food safety through digital means, forming a three-dimensional pattern of government supervision, corporate self-discipline, and public participation. It is an important exploration to promote the modernization of the food safety governance system and governance capabilities.
[0106] In the embodiment of the present application, since the food safety collaborative inspection system comprehensively utilizes multi-source heterogeneous information such as consumer active feedback and network public data to construct a food safety index evaluation mechanism, it can objectively reflect the actual situation of food safety, effectively solve the problems of single dimension of traditional food safety assessment data and single evaluation subject, and thus realize the food safety pattern of collaborative participation of multiple subjects and multi-dimensional data fusion application. The system uses artificial intelligence recognition, big data analysis and other technical means to intelligently identify the authenticity of consumer feedback information, automatically warn of food safety risks, and provide a digital grip for government regulatory departments to implement precise policies and targeted governance. At the same time, the system adopts intuitive quantitative rating of food safety index to urge catering companies to strengthen food safety management and guide the public to form a good public opinion atmosphere of rational supervision and joint governance of food safety. The innovative application of this embodiment has contributed valuable experience to solving the problem of social co-governance of food safety, and has important practical significance in improving the effectiveness of food safety governance and ensuring the "safety on the tip of the tongue" of the people.
[0107] The following describes the food safety collaborative inspection system in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , which is a schematic diagram of the physical device structure of the food safety collaborative inspection system in an embodiment of the present application.
[0108] It should be noted that Figure 3 The structure of the food safety collaborative inspection system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0109] like Figure 3As shown, the food safety collaborative inspection system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through bus 304. Input / output (I / O) interface 305 is also connected to bus 304.
[0110] The following components are connected to the I / O interface 305: an input section 306 including an audio input device, a button switch, etc.; an output section 307 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
[0111] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 309, and / or installed from a removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present invention are performed.
[0112] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.
[0114] Specifically, the food safety collaborative inspection system of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the identification code data updating method based on the food safety collaborative inspection system provided in the above embodiment is implemented.
[0115] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the food safety collaborative inspection system described in the above embodiment; or may exist independently without being assembled into the food safety collaborative inspection system. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the food safety collaborative inspection system, the food safety collaborative inspection system implements the identification code data update method based on the food safety collaborative inspection system provided in the above embodiment.
[0116] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. 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 cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0117] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0118] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A method for updating identification code data based on a food safety collaborative inspection system, characterized in that: Applied to a food safety collaborative inspection system, the method comprises: Receive safety feedback information uploaded by consumers scanning identification codes at target stores, and determine a customer feedback index based on the safety feedback information; the safety feedback information includes a safety feedback score, a safety feedback image, and a safety feedback text; Analyzing the safety feedback image using an image recognition model to identify key items with food safety risks; the key items include expired food, spoiled ingredients, and substandard takeout boxes; Analyze the safety feedback text using a natural language processing model to extract food keywords and sentiment tendencies related to food safety; Obtaining the historical food safety records of the target store, including historical complaint records, penalty records, and rectification records; Based on the key items, the food keywords, the sentiment tendency and the historical food safety records, a food safety risk warning is generated through a preset food safety risk assessment model; the food safety risk warning includes risk level, risk cause and response suggestions; When the risk level exceeds a preset risk threshold, the food safety risk warning is sent to a supervision client; Receive the on-site inspection task returned by the supervision client, and send the on-site inspection task to the law enforcement client corresponding to the target store; Receive the on-site inspection results uploaded by the law enforcement personnel client, and synchronize the on-site inspection results to the historical food safety records; Collecting online review data of the target store on the Internet, and determining an online rating index based on the online review data; Determining the real-time food safety level of the target store according to the customer feedback index and the network rating index; When the real-time food safety level is different from the historical food safety level recorded by the identification code, collecting an operation monitoring image of the target store, and determining a real-time safety score of the target store through the operation monitoring image; When the real-time safety score matches the real-time food safety level, sending a safety level update request and the operation monitoring image to a supervision client; In response to the update confirmation instruction returned by the supervision client, the historical food safety level recorded in the identification code is updated to the real-time food safety level.
2. The method according to claim 1, characterized in that: The receiving of security feedback information uploaded by consumers when scanning an identification code at a target store, and determining a customer feedback index based on the security feedback information, specifically includes: Receive security feedback information uploaded by consumers scanning identification codes at target stores; Obtaining multiple evaluation scores of multiple evaluation contents in the safety feedback score of the safety feedback information; the multiple evaluation contents include food freshness, environmental hygiene, service attitude and order accuracy; Taking a weighted average of the multiple evaluation scores to obtain a preliminary feedback index; Identify key elements in the safety feedback image of the safety feedback information; the key elements include order information, food image, takeaway packaging and delivery environment; Comparing the key elements with the security feedback text to obtain a feedback consistency score; A customer feedback index is determined according to the preliminary feedback index and the feedback consistency score.
3. The method according to claim 1, characterized in that Determining the real-time food safety level of the target store according to the customer feedback index and the network rating index specifically includes: The customer feedback index and the network rating index are standardized and mapped to the same quantitative rating interval respectively to obtain a standardized quantitative rating; Based on the standardized quantitative score, a weighted geometric mean of the customer feedback index and the network score index is calculated to obtain a comprehensive score index; the weight of the customer feedback index is greater than the weight of the network score index; Determining whether the comprehensive scoring index is higher than a preset credibility threshold; If so, the comprehensive scoring index is used as the food safety index, and the real-time food safety level corresponding to the food safety index is determined according to a preset corresponding relationship table.
4. The method according to any one of claims 1 to 3, characterized in that: After the step of updating the historical food safety level recorded in the identification code to the real-time food safety level in response to the update confirmation instruction returned by the supervision client, the method further includes: Obtaining location information of the target store and locating the target store on a food safety electronic map; Based on the real-time food safety level, adding a corresponding safety level mark at the location of the target store in the food safety electronic map; When the real-time food safety level is a warning level, displaying a warning prompt in the information box of the target store in the food safety electronic map; The number and distribution of shops at multiple food safety levels are counted in the food safety electronic map to generate a regional food safety assessment report.
5. The method according to claim 1, characterized in that After the step of receiving the security feedback information uploaded by the consumer scanning the identification code at the target store and determining the customer feedback index based on the security feedback information, the method further includes: Obtaining a user identity of the consumer, and associating and storing the user identity with a plurality of food safety feedbacks uploaded by the consumer; Tracking and analyzing the feedback behavior data of the user identity within a preset time period; the feedback behavior data includes feedback frequency, feedback content keywords and feedback emotional tendency; Determining whether the user identity has abnormal feedback behavior according to the feedback behavior data; When it is determined that there is abnormal feedback behavior, the user identity identifier is added to the feedback blacklist, and the corresponding abnormal feedback content is deleted from the identification code record.
6. A food safety collaborative inspection system, characterized in that: The food safety collaborative inspection system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the food safety collaborative inspection system to execute the method described in any one of claims 1-5.
7. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on the food safety collaborative inspection system, the food safety collaborative inspection system is caused to execute the method as described in any one of claims 1-5.
8. A computer program product, characterized in that When the computer program product runs on a food safety collaborative inspection system, the food safety collaborative inspection system is enabled to execute the method according to any one of claims 1 to 5.
