Movatterモバイル変換


[0]ホーム

URL:


WO2021232588A1 - Food safety risk assessment method, apparatus, device, and storage medium - Google Patents

Food safety risk assessment method, apparatus, device, and storage medium
Download PDF

Info

Publication number
WO2021232588A1
WO2021232588A1PCT/CN2020/105061CN2020105061WWO2021232588A1WO 2021232588 A1WO2021232588 A1WO 2021232588A1CN 2020105061 WCN2020105061 WCN 2020105061WWO 2021232588 A1WO2021232588 A1WO 2021232588A1
Authority
WO
WIPO (PCT)
Prior art keywords
food safety
risk
characteristic data
preset
risk assessment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/105061
Other languages
French (fr)
Chinese (zh)
Inventor
冷新波
刘佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co LtdfiledCriticalPing An International Smart City Technology Co Ltd
Publication of WO2021232588A1publicationCriticalpatent/WO2021232588A1/en
Anticipated expirationlegal-statusCritical
Ceasedlegal-statusCriticalCurrent

Links

Images

Classifications

Definitions

Landscapes

Abstract

A food safety risk assessment method, an apparatus, a device, and a storage medium, which are used for improving food safety risk assessment efficiency and accuracy. The method comprises: obtaining risk feature data for a plurality of food service enterprises (101); determining positive samples and negative samples according to the risk feature data (102); generating a training set according to the positive samples and the negative samples, inputting the training set into a preset decision tree model and performing training, and obtaining a target decision tree (103); respectively obtaining a path from the root node of the target decision tree to each leaf node, and respectively generating a corresponding food safety risk feature group according to each path (104), calculating corresponding risk assessment values, labeling the risk assessment values on corresponding leaf nodes of the target decision tree, and obtaining a food safety risk assessment model (105), and performing food safety risk assessment on a food service enterprise to be assessed (106).

Description

Translated fromChinese
食品安全风险评估方法、装置、设备及存储介质Food safety risk assessment method, device, equipment and storage medium

本申请要求于2020年5月21日提交中国专利局、申请号为202010433430.8、发明名称为“食品安全风险评估方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 21, 2020, the application number is 202010433430.8, and the invention title is "Food Safety Risk Assessment Method, Apparatus, Equipment and Storage Medium", the entire content of which is incorporated by reference Incorporate in the application.

技术领域Technical field

本申请涉及机器学习技术领域,尤其涉及食品安全风险评估方法、装置、设备及存储介质。This application relates to the field of machine learning technology, in particular to food safety risk assessment methods, devices, equipment and storage media.

背景技术Background technique

食品安全问题一直是社会高度重视的问题。近年来,餐饮企业的数量多、地域分散、更新迭代快与食品安全监管人员少的矛盾日益突出,在各区域风险程度不明确的前提下,依旧只能凭借经验或其他随机条件选择部分监管对象或区域进行监管,比如对每个餐饮企业每年至少检查一次,这种方式无法及时发现风险,很容易造成风险失控和有限监管力量的无效使用。Food safety has always been an issue that the society attaches great importance to. In recent years, the contradiction between the large number of catering companies, the geographical dispersion, the rapid update and iteration, and the small number of food safety supervision personnel has become increasingly prominent. Under the premise that the degree of risk in each region is not clear, it is still only possible to select some supervision objects based on experience or other random conditions Or regional supervision, such as inspecting each catering company at least once a year, this method cannot detect risks in time, and it is easy to cause risk out of control and ineffective use of limited supervisory power.

随着食品安全监管理念从事后查处向事前预防转变,食品安全风险评估工作的重要性越发突显出来。现有的食品安全风险评估方法,一般是由监管人员现场评估,发明人意识到这种评估方式效率低下,且各项评估指标对食品安全风险的影响程度依赖于人为判断,无法保证风险评估的客观性和准确性。As the concept of food safety supervision changes from post-investigation to pre-prevention, the importance of food safety risk assessment has become more and more prominent. Existing food safety risk assessment methods are generally assessed on site by supervisors. The inventor realizes that this assessment method is inefficient, and the impact of various assessment indicators on food safety risks depends on human judgment and cannot guarantee the risk assessment. Objectivity and accuracy.

发明内容Summary of the invention

本申请的主要目的在于提出一种食品安全风险评估方法、装置、设备及存储介质,旨在提高食品安全风险评估的效率和准确性。The main purpose of this application is to propose a food safety risk assessment method, device, equipment and storage medium, aiming to improve the efficiency and accuracy of food safety risk assessment.

本申请第一方面提供了一种食品安全风险评估方法,所述食品安全风险评估方法包括:The first aspect of this application provides a food safety risk assessment method. The food safety risk assessment method includes:

根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;

判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;

根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;

分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;

计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.

本申请第二方面提供了一种食品安全风险评估设备,所述食品安全风险评估设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的食品安全风险评估程序,所述处理器执行所述食品安全风险评估程序时实现如下步骤:The second aspect of the present application provides a food safety risk assessment device, the food safety risk assessment device comprising: a memory, a processor, and a food safety risk assessment program stored in the memory and running on the processor When the processor executes the food safety risk assessment program, the following steps are implemented:

根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;

判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;

根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;

分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;

计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.

本申请的第三方面提供了一种存储介质,一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:The third aspect of the present application provides a storage medium, a computer-readable storage medium in which computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a computer, the computer executes the following steps:

根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;

判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;

根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;

分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;

计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.

本申请第四方面提供了一种食品安全风险评估装置,所述食品安全风险评估装置包括:The fourth aspect of the present application provides a food safety risk assessment device, the food safety risk assessment device comprising:

第一获取模块,用于根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;The first acquisition module is used to acquire risk characteristic data of multiple catering companies according to preset food safety risk characteristic items;

判断模块,用于判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;The judgment module is used to judge whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use all catering companies as a positive sample. State the risk characteristic data of catering companies that have not had a food safety accident among multiple catering companies as a negative sample;

训练模块,用于根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;A training module, configured to generate a training set according to the positive sample and the negative sample, and input the training set into a preset decision tree model for training to obtain a target decision tree;

第二获取模块,用于分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;The second acquisition module is configured to respectively acquire the path from the root node of the target decision tree to each leaf node, and respectively generate a corresponding food safety risk feature combination according to each acquired path;

计算模块,用于计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;The calculation module is used to calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

风险评估模块,用于获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。The risk assessment module is used to obtain the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and use the food safety risk assessment model to analyze the risk characteristics of the catering company to be assessed. Assess catering companies to conduct food safety risk assessments.

本申请提出的食品安全风险评估方法,首先获取多个餐饮企业的风险特征数据,根据风险特征数据生成训练集输入至决策树模型中进行训练,得到目标决策树,然后,根据目标决策树获取多个食品安全风险特征组合,计算与每个食品安全风险特征组合对应的风险评估值,将风险评估值标记在目标决策树的对应叶子节点上,得到食品安全风险评估模型,最后,通过该食品安全风险评估模型对待评估餐饮企业进行食品安全风险评估。这种基于 决策树建立食品安全风险评估模型以对食品安全风险进行评估的方式,相比于现有技术中的人为评估,避免了评估不及时、评估数据项单一、主观性因素多等问题,提高了食品安全风险评估的效率和准确性。The food safety risk assessment method proposed in this application first obtains the risk characteristic data of multiple catering companies, generates a training set based on the risk characteristic data and inputs it into the decision tree model for training to obtain the target decision tree, and then obtains the target decision tree according to the target decision tree. Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain the food safety risk assessment model. Finally, pass the food safety risk assessment model. The risk assessment model conducts food safety risk assessment for the catering companies to be assessed. This method of establishing a food safety risk assessment model based on a decision tree to assess food safety risks, compared with the artificial assessment in the prior art, avoids problems such as untimely assessment, single assessment data items, and multiple subjective factors. Improve the efficiency and accuracy of food safety risk assessment.

附图说明Description of the drawings

图1为本申请食品安全风险评估方法的一个实施例的流程示意图;Figure 1 is a schematic flow chart of an embodiment of the food safety risk assessment method of this application;

图2为本申请食品安全风险评估装置的一个实施例的模块示意图;2 is a schematic diagram of modules of an embodiment of the food safety risk assessment device of the present application;

图3为本申请实施例提供的食品安全风险评估设备的结构示意图。Figure 3 is a schematic structural diagram of a food safety risk assessment device provided by an embodiment of the application.

具体实施方式Detailed ways

本申请实施例提供了一种食品安全风险评估方法、装置、设备及存储介质,通过基于决策树建立食品安全风险评估模型以对食品安全风险进行评估的方式,相比于现有技术中的人为评估,避免了评估不及时、评估数据项单一、主观性因素多等问题,提高了食品安全风险评估的效率和准确性。The embodiments of the present application provide a food safety risk assessment method, device, equipment and storage medium. The method of building a food safety risk assessment model based on a decision tree to assess food safety risks is compared with the artificial methods in the prior art. Evaluation avoids problems such as untimely evaluation, single evaluation data items, and multiple subjective factors, and improves the efficiency and accuracy of food safety risk evaluation.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, without having to use To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Steps or units, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.

为便于理解,下面对本申请食品安全风险评估方法实施例的具体流程进行描述。For ease of understanding, the specific process of the embodiment of the food safety risk assessment method of the present application will be described below.

参照图1,图1为本申请食品安全风险评估方法的一个实施例的流程示意图,该方法包括:Referring to Fig. 1, Fig. 1 is a schematic flowchart of an embodiment of the food safety risk assessment method of this application, and the method includes:

步骤101,根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;Step 101: Obtain risk characteristic data of multiple catering companies according to preset food safety risk characteristic items;

可以理解的是,本申请的执行主体可以为食品安全风险评估装置,还可以是终端或者服务器,具体此处不做限定。本申请实施例以服务器为执行主体为例进行说明。It is understandable that the execution subject of this application may be a food safety risk assessment device, or a terminal or a server, which is not specifically limited here. The embodiment of the present application takes the server as the execution subject as an example for description.

现实中餐饮企业的食品安全影响因素有很多,具体可以划分为以下四种类型的影响因素:In reality, there are many factors affecting food safety of catering companies, which can be divided into the following four types of factors:

资质许可类:如企业名称、企业类型、经营地址、法定代表人信息、统一社会信用代码、营业执照信息、年营业额、员工人数、最大就餐人数、经营面积、是否售卖自泡酒、是否售卖海鲜类、是否售卖冷荤凉菜、是否学校周边餐企等;Qualification permission category: such as company name, company type, business address, legal representative information, unified social credit code, business license information, annual turnover, number of employees, maximum number of diners, business area, whether to sell self-made wine, whether to sell Seafood, whether they sell cold meat and cold dishes, whether they are restaurants around the school, etc.;

行政监管类:如近半年视频巡检异常次数、近半年智能巡检逾期未整改次数、近半年智能巡检整改未通过次数、工作衣帽检查异常次数、可能污染食品行为检查异常次数、垃圾桶未加盖或溢出检查异常次数、近半年后厨发现老鼠次数、检查消洗消毒不合规次数、最近一次量化检查结论、无证经营检查异常次数等;Administrative supervision categories: such as the number of abnormal video inspections in the past six months, the number of overdue rectifications in the past six months of smart patrol inspections, the number of failed smart patrols and rectifications in the past six months, the number of abnormal work clothes and hats, the number of abnormal inspections of potentially contaminated food, trash cans The number of abnormal inspections that are not stamped or overflowed, the number of rats found in the kitchen in the past six months, the number of non-compliance inspections, disinfection and disinfection, the most recent quantitative inspection conclusion, the number of abnormal inspections for unlicensed operations, etc.;

经营风险类:如当前是否为商事主体黑名单、当前是否为经营异常名录、当前是否拖欠水电费、资产抵押总次数、累计拖欠政府债务次数等;Operational risks: such as whether it is currently a blacklist of commercial entities, whether it is currently a list of abnormal operations, whether it is currently in arrears with utility bills, the total number of asset mortgages, and the cumulative number of government debts in arrears;

社会责任类:如累计税务缴纳次数、是否对外投资、是否对外担保、员工是否缴纳社保、员工缴纳社保比例等。Social responsibility categories: such as the cumulative number of tax payments, whether to invest abroad, whether to guarantee externally, whether employees pay social insurance, the proportion of employees paying social insurance, etc.

在本实施例中,可由评估人员预先从上述影响因素中灵活选取多个作为食品安全风险特征项,服务器根据预先设置的食品安全风险特征项,获取多个餐饮企业的风险特征数据。比如,当预先设置的食品安全风险特征项包括经营面积和最近一次量化检查结论时,需要对应获取多个餐饮企业的经营面积数据和最近一次量化检查结论数据,这些获取到的数据即为餐饮企业的风险特征数据。In this embodiment, the assessor can flexibly select multiple food safety risk feature items from the above-mentioned influencing factors in advance, and the server obtains risk feature data of multiple catering companies according to the preset food safety risk feature items. For example, when the pre-set food safety risk feature items include the operating area and the last quantitative inspection conclusion, it is necessary to obtain the operating area data of multiple catering companies and the last quantitative inspection conclusion data. These acquired data are the catering company Risk characteristic data.

上述步骤101具体可以包括:从预设数据库中抽取多个餐饮企业的历史经营数据,对历史经营数据进行数据清洗,得到企业基础画像数据集;对于企业基础画像数据集中的每个餐饮企业,从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据。Theabove step 101 may specifically include: extracting historical operating data of multiple catering companies from a preset database, and performing data cleaning on the historical operating data to obtain a basic corporate profile data set; for each catering company in the corporate basic profile data set, from The risk feature data corresponding to the preset food safety risk feature items are extracted from the historical business data after data cleaning.

在本实施例中,服务器可以首先从预设数据库中抽取多个餐饮企业的历史经营数据,其中,预设数据库可以包括市场监管局登记许可数据库、行政执法数据库、综合监督数据库、企业年报数据库、商事信用数据库和抽检数据库等,历史经营数据可以包括餐饮企业在历史经营过程中所产生的资质许可类、行政监管类、经营风险类和社会责任类数据等;在抽取到多个餐饮企业的历史经营数据后,服务器对这些历史经营数据进行数据清洗,得到企业基础画像数据集,其中数据清洗包括删除不完整数据、残缺数据和错误数据等,通过数据清洗,可以提高数据质量;之后,对于企业基础画像数据集中的每个餐饮企业,服务器从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据,从而得到每个餐饮企业的风险特征数据。In this embodiment, the server may first extract historical operating data of multiple catering companies from a preset database, where the preset database may include a market supervision bureau registration license database, an administrative law enforcement database, a comprehensive supervision database, an enterprise annual report database, Commercial credit database and random inspection database, etc., historical operating data can include qualification license, administrative supervision, business risk, and social responsibility data generated by catering companies in the historical operation process; after extracting the history of multiple catering companies After operating the data, the server performs data cleaning on these historical operating data to obtain the basic image data set of the enterprise. The data cleaning includes deleting incomplete data, incomplete data, and erroneous data. Through data cleaning, data quality can be improved; For each catering company in the basic portrait data set, the server extracts the risk feature data corresponding to the preset food safety risk feature items from the historical business data after data cleaning, so as to obtain the risk feature data of each catering company.

通过上述方式,实现了从多维度提取餐饮企业的风险特征数据,通过这些风险特征数据建立食品安全风险评估模型,有利于提高食品安全风险评估的准确性。Through the above method, the risk characteristic data of the catering enterprise is extracted from multiple dimensions, and the food safety risk assessment model is established through the risk characteristic data, which is beneficial to improve the accuracy of the food safety risk assessment.

其中,为了避免数据被篡改,可以将餐饮企业的风险特征数据存储于区块链中。本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。Among them, in order to avoid data tampering, the risk characteristic data of catering companies can be stored in the blockchain. The blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

步骤102,判断多个餐饮企业在预设时长内是否发生过食品安全事故,将多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Step 102: Determine whether multiple catering companies have had food safety incidents within a preset period of time, take the risk characteristic data of catering companies that have had food safety incidents in multiple catering companies as a positive sample, and take the risk characteristics of catering companies that have not occurred in multiple catering companies The risk characteristic data of catering companies that have experienced food safety incidents are used as negative samples;

该步骤中,服务器判断上述多个餐饮企业在预设时长内是否发生过食品安全事件,其中预设时长可以灵活设置,比如1年、半年等;服务器将多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本。In this step, the server judges whether food safety incidents have occurred in the above-mentioned multiple catering companies within a preset time period. The preset time period can be flexibly set, such as 1 year, half a year, etc.; the server will determine whether food safety incidents have occurred in multiple catering companies The risk characteristic data of catering companies are taken as positive samples, and the risk characteristic data of catering companies that have not had food safety accidents among multiple catering companies are taken as negative samples.

在一实施方式中,上述判断多个餐饮企业在预设时长内是否发生过食品安全事故的步骤具体可以包括:从预设媒体数据库获取预设时长内多个餐饮企业的食品安全报导信息;根据食品安全报导信息判断多个餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录;当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,判定餐饮企业在预设时长内发生过食品安全事故。In one embodiment, the step of judging whether multiple catering companies have had food safety incidents within a preset time period may specifically include: obtaining food safety report information of multiple catering companies within a preset time period from a preset media database; Food safety report information determines whether multiple catering companies have experienced food poisoning incidents, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities; when a food poisoning incident has occurred in a catering company, or there is a judicial penalty or When the administrative penalty record is included in the list of business abnormalities, it is determined that the catering company has had a food safety incident within a preset period of time.

具体地,服务器可以首先从预设媒体数据库获取预设时长内多个餐饮企业的食品安全报导信息,其中预设媒体数据库包括但不限于新闻网站、微博、企业网站、餐饮公众号等数据库;然后,服务器可以对获取到的食品安全报导信息进行关键字识别,以判断各餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录,比如当某个餐饮企业的食品安全报导信息中存在“食品中毒”关键字时,可以判定该餐饮企业发生过食品中毒事件,当某个餐饮企业的食品安全报导信息中存在“责令整改”关键字时,可以判定该餐饮企业被给予过司法及行政处罚;当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,服务器即判定该餐饮企业在预设时长内发生过食品安全事故。Specifically, the server may first obtain food safety report information of multiple catering companies within a preset time period from a preset media database, where the preset media database includes, but is not limited to, databases such as news websites, Weibo, corporate websites, and catering official accounts; Then, the server can perform keyword identification on the obtained food safety report information to determine whether food poisoning incidents have occurred in various catering companies, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities, such as Dang When the “food poisoning” keyword exists in the food safety report information of a catering company, it can be determined that the catering company has had a food poisoning incident. When the food safety report information of a catering company has the keyword “order rectification”, you can It is determined that the catering company has been given judicial and administrative penalties; when a food poisoning event has occurred in a catering company, or there is a record of judicial or administrative penalties, or is included in the list of abnormal operations, the server determines that the catering company Food safety incidents have occurred within a period of time.

通过上述方式,实现了对餐饮企业在预设时长内是否发生过食品安全事故进行准确、可靠地判断。Through the above method, it is possible to accurately and reliably determine whether a food safety incident has occurred within a preset period of time.

步骤103,根据正样本和负样本生成训练集,将训练集输入至预设的决策树模型中进行训练,得到目标决策树;Step 103: Generate a training set according to the positive sample and the negative sample, and input the training set into a preset decision tree model for training to obtain a target decision tree;

在确定了正样本和负样本后,服务器根据正样本和负样本生成训练集,具体地,在一实施方式中,服务器可以直接将上述确定的正样本和负样本进行合并后,作为训练集输入至预设的决策树模型中进行训练,在另一实施方式中,为提高模型训练的准确性和效率,服务器也可以对正样本和负样本中包含的风险特征数据做进一步筛选,以获得具有预测价值的风险特征数据,该具有预测价值的风险特征数据指的是与风险评估结果强相关的风险特征数据,即能够在较大程度上决定一个餐饮企业是否发生食品安全事故,比如近半年后厨发现老鼠次数、最近一次量化检查结论等。After determining the positive sample and the negative sample, the server generates a training set based on the positive sample and the negative sample. Specifically, in one embodiment, the server may directly merge the positive sample and the negative sample determined above and use it as the training set input In another embodiment, in order to improve the accuracy and efficiency of model training, the server can also further filter the risk characteristic data contained in the positive and negative samples to obtain Risk characteristic data with predictive value. The risk characteristic data with predictive value refers to the risk characteristic data that is strongly related to the risk assessment result, that is, it can determine to a large extent whether a food safety incident occurs in a catering company, for example, nearly half a year later The number of times the kitchen found rats, the conclusion of the last quantitative inspection, etc.

在获得训练集后,服务器将训练集输入至预设的决策树模型中进行训练,得到目标决策树。决策树是一种机器学习的方法,在生成的目标决策树中,每个节点表示一个属性上的判断,每个分支代表一个判断结果的输出,最后每个叶子节点代表一种分类结果,在本实施例中,目标决策树的生成算法可以采用现有的C4.5或C5.0算法,此处不做赘述。After obtaining the training set, the server inputs the training set into the preset decision tree model for training, and obtains the target decision tree. Decision tree is a method of machine learning. In the generated target decision tree, each node represents a judgment on an attribute, each branch represents the output of a judgment result, and finally each leaf node represents a classification result. In this embodiment, the algorithm for generating the target decision tree can use the existing C4.5 or C5.0 algorithm, which will not be repeated here.

步骤104,分别获取目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Step 104: Obtain the path from the root node of the target decision tree to each leaf node, and generate a corresponding food safety risk feature combination according to each obtained path;

该步骤中,服务器分别获取目标决策树的根节点到每个叶子节点的路径,根据每条路径上的节点对应的风险特征数据分别生成一个对应的食品安全风险特征组合。In this step, the server separately obtains the path from the root node of the target decision tree to each leaf node, and generates a corresponding food safety risk feature combination according to the risk feature data corresponding to the node on each path.

比如,当目标决策树的根节点到某个叶子节点的路径为:近半年后厨发现老鼠次数大于或等于2→最近一次量化检查结论为合格→经营面积大于200平→近一个月整改通过时,则将“近半年后厨发现老鼠次数大于或等于2、最近一次量化检查结论为合格、经营面积大于200平,且近一个月整改通过”作为与该路径对应的食品安全风险特征组合。For example, when the path from the root node of the target decision tree to a certain leaf node is: the number of rats found in the kitchen in the past six months is greater than or equal to 2 → the last quantitative inspection concluded that it is qualified → the operating area is greater than 200 square meters → the rectification passed in the past month , The food safety risk feature combination corresponding to this path is “the number of rats found in the kitchen after the past six months is greater than or equal to 2, the last quantitative inspection concluded that it is qualified, the operating area is greater than 200 square meters, and the rectification passed in the past month”.

步骤105,计算与每个食品安全风险特征组合对应的风险评估值,将风险评估值标记在目标决策树的对应叶子节点上,得到食品安全风险评估模型;Step 105: Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

该步骤中,服务器进一步计算与每个食品安全风险特征组合对应的风险评估值,并将风险评估值标记在目标决策树的对应叶子节点上,得到食品安全风险评估模型。In this step, the server further calculates the risk assessment value corresponding to each food safety risk feature combination, and marks the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model.

上述计算与每个食品安全风险特征组合对应的风险评估值的步骤具体可以包括:统计与每个食品安全风险特征组合对应的正样本数和负样本数,将与每个食品安全风险特征组合对应的正样本数和负样本数相加,得到样本总数;计算与每个食品安全风险特征组合对应的正样本数占样本总数的比例,将比例作为与每个食品安全风险特征组合对应的风险评估值。The above step of calculating the risk assessment value corresponding to each food safety risk feature combination may specifically include: counting the number of positive samples and the number of negative samples corresponding to each food safety risk feature combination, which will correspond to each food safety risk feature combination Add the number of positive samples and the number of negative samples to get the total number of samples; calculate the ratio of the number of positive samples corresponding to each combination of food safety risk characteristics to the total number of samples, and use the ratio as the risk assessment corresponding to each combination of food safety risk characteristics value.

比如,服务器统计符合食品安全风险特征组合“近半年后厨发现老鼠次数大于或等于2、最近一次量化检查结论为合格、经营面积大于200平,且近一个月整改通过”的样本总数为100,其中正样本数为10,负样本数为90,则与该食品安全风险特征组合对应的风险评估值为0.1。For example, server statistics meet the food safety risk feature combination "The number of times the kitchen has found rats greater than or equal to 2, the last quantitative inspection concluded that it is qualified, the business area is greater than 200 square meters, and the total number of samples passed the rectification in the past month" is 100. Where the number of positive samples is 10 and the number of negative samples is 90, the risk assessment value corresponding to the food safety risk feature combination is 0.1.

上述方式通过将食品安全风险特征组合中的正样本数占样本总数的比例作为与该食品安全风险特征组合对应的风险评估值,实现了根据样本数客观而准确地评价一个食品安全风险特征组合的风险。The above method uses the ratio of the number of positive samples in the food safety risk feature combination to the total number of samples as the risk assessment value corresponding to the food safety risk feature combination, and realizes the objective and accurate evaluation of a food safety risk feature combination based on the number of samples. risk.

步骤106,获取待评估餐饮企业的风险特征数据,将待评估餐饮企业的风险特征数据输入至食品安全风险评估模型中,通过食品安全风险评估模型对待评估餐饮企业进行食品安全风险评估。Step 106: Obtain the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into a food safety risk assessment model, and conduct a food safety risk assessment for the catering company to be assessed through the food safety risk assessment model.

在得到食品安全风险评估模型后,对于后续待进行食品安全风险评估的餐饮企业,服 务器可以根据预设的食品安全风险特征项,从预设数据库中提取该待评估餐饮企业的风险特征数据,其中预设数据库包括但不限于市场监管局登记许可数据库、行政执法数据库、综合监督数据库、企业年报数据库、商事信用数据库和抽检数据库等,然后,服务器将该待评估餐饮企业的风险特征数据输入至该食品安全风险评估模型中,以使食品安全风险评估模型输出该待评估餐饮企业所属的食品安全风险特征组合及对应的风险值。After obtaining the food safety risk assessment model, the server can extract the risk characteristic data of the catering company to be assessed from the preset database according to the preset food safety risk feature items for the catering company to be assessed for the subsequent food safety risk assessment, where The preset database includes, but is not limited to, the registration and license database of the Market Supervision Bureau, the administrative law enforcement database, the comprehensive supervision database, the enterprise annual report database, the commercial credit database, and the sampling database. Then, the server inputs the risk characteristic data of the catering company to be assessed into the In the food safety risk assessment model, the food safety risk assessment model outputs the combination of food safety risk characteristics and the corresponding risk value to which the catering company to be assessed belongs.

进一步地,服务器还可以将该待评估餐饮企业所属的食品安全风险特征组合及对应的风险值发送至预设的综合监管系统,以使监管人员能够对高风险的餐饮企业及时采取相应措施,如现场检查或远程巡查处理等;此外,还可以将检查结果作为样本反馈到服务器的决策树训练模型中,以进一步优化和提升模型的精度。Further, the server can also send the food safety risk feature combination and corresponding risk value of the catering company to be assessed to a preset comprehensive supervision system, so that supervisors can take corresponding measures in time for high-risk catering companies, such as On-site inspection or remote inspection processing, etc.; in addition, the inspection results can also be fed back to the server's decision tree training model as a sample to further optimize and improve the accuracy of the model.

本实施例提出的食品安全风险评估方法,首先获取多个餐饮企业的风险特征数据,根据风险特征数据生成训练集输入至决策树模型中进行训练,得到目标决策树,然后,根据目标决策树获取多个食品安全风险特征组合,计算与每个食品安全风险特征组合对应的风险评估值,将风险评估值标记在目标决策树的对应叶子节点上,得到食品安全风险评估模型,最后,通过该食品安全风险评估模型对待评估餐饮企业进行食品安全风险评估。这种基于决策树建立食品安全风险评估模型以对食品安全风险进行评估的方式,相比于现有技术中的人为评估,避免了评估不及时、评估数据项单一、主观性因素多等问题,提高了食品安全风险评估的效率和准确性。The food safety risk assessment method proposed in this embodiment first obtains the risk characteristic data of multiple catering companies, generates a training set according to the risk characteristic data and inputs it to the decision tree model for training to obtain the target decision tree, and then obtains the target decision tree according to the target decision tree. Multiple food safety risk feature combinations, calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model. Finally, pass the food The safety risk assessment model conducts food safety risk assessment for the catering companies to be assessed. This method of establishing a food safety risk assessment model based on a decision tree to assess food safety risks, compared with the artificial assessment in the prior art, avoids problems such as untimely assessment, single assessment data items, and multiple subjective factors. Improve the efficiency and accuracy of food safety risk assessment.

本申请可应用于智慧政务领域,从而推动智慧城市的建设。This application can be applied to the field of smart government affairs, thereby promoting the construction of smart cities.

进一步地,基于本申请中食品安全风险评估方法的第一实施例,提出本申请中食品安全风险评估方法的第二实施例。Further, based on the first embodiment of the food safety risk assessment method in this application, a second embodiment of the food safety risk assessment method in this application is proposed.

在本实施例中,上述步骤103具体可以包括:根据卡方检验算法,从正样本和负样本中筛选出具有风险预测价值的目标离散型风险特征数据;根据证据权重算法和信息价值算法,从正样本和负样本中筛选出具有风险预测价值的目标连续型风险特征数据;将目标离散型风险特征数据和目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树。In this embodiment, theabove step 103 may specifically include: screening the target discrete risk feature data with risk prediction value from positive samples and negative samples according to the chi-square test algorithm; according to the weight of evidence algorithm and the information value algorithm, from Target continuous risk feature data with risk prediction value is selected from the positive samples and negative samples; the target discrete risk feature data and target continuous risk feature data are input as the training set into the preset decision tree model for training. Target decision tree.

其中,卡方检验是一种常用的特征选择算法,卡方检验就是统计样本的实际观测值与理论推断值之间的偏离程度,实际观测值与理论推断值之间的偏离程度就决定卡方值的大小,如果卡方值越大,二者偏差程度越大;反之,二者偏差越小;若两个值完全相等时,卡方值就为0,表明理论值完全符合。对于正样本和负样本中的离散型风险特征数据,如:是否对外投资、是否学校周边餐企等,服务器可以通过卡方检验算法,从中筛选出具有风险预测价值的目标离散型风险特征数据。证据权重算法(weight of evidence,WOE)和信息价值算法(information value,IV)是一种用来衡量变量的预测能力的算法,WOE和IV的值越大,表示此变量的预测能力越强。对于正样本和负样本中的连续型风险特征数据,如:经营面积、员工人数等,服务器可以通过证据权重算法和信息价值算法,从中筛选出具有风险预测价值的目标连续型风险特征数据。Among them, the chi-square test is a commonly used feature selection algorithm. The chi-square test is the degree of deviation between the actual observation value of the statistical sample and the theoretical inferred value. The degree of deviation between the actual observation value and the theoretical inferred value determines the chi-square The size of the value, if the chi-square value is greater, the degree of deviation between the two is greater; conversely, the deviation between the two is smaller; if the two values are completely equal, the chi-square value is 0, indicating that the theoretical value is completely consistent. For the discrete risk characteristic data in the positive sample and the negative sample, such as whether it is investing abroad, whether it is a restaurant company around the school, etc., the server can use the chi-square test algorithm to filter out the target discrete risk characteristic data with risk prediction value. Weight of evidence algorithm (WOE) and information value algorithm (information value, IV) are algorithms used to measure the predictive ability of a variable. The larger the value of WOE and IV, the stronger the predictive ability of this variable. For the continuous risk characteristic data in the positive and negative samples, such as business area, number of employees, etc., the server can select the target continuous risk characteristic data with risk prediction value through the evidence weight algorithm and the information value algorithm.

进一步地,根据卡方检验算法,从正样本和负样本中筛选出具有风险预测价值的目标离散型风险特征数据的步骤可以包括:对于正样本和负样本中的离散型风险特征数据,统计与离散型风险特征数据对应的正样本数和负样本数;将与离散型风险特征数据对应的正样本数、负样本数,以及预设的样本数理论推断值代入卡方检验算法中进行计算,得到离散型风险特征数据的卡方值;当卡方值小于或等于第一预设阈值时,将离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。Further, according to the chi-square test algorithm, the step of screening the target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample may include: for the discrete risk characteristic data in the positive sample and the negative sample, statistics and The number of positive samples and the number of negative samples corresponding to the discrete risk feature data; the number of positive samples, the number of negative samples corresponding to the discrete risk feature data, and the theoretical inferred value of the sample number corresponding to the discrete risk feature data are substituted into the chi-square test algorithm for calculation, The chi-square value of the discrete risk feature data is obtained; when the chi-square value is less than or equal to the first preset threshold, the discrete risk feature data is used as the target discrete risk feature data with risk prediction value.

具体地,对于正样本和负样本中的离散型风险特征数据,服务器首先统计与该离散型风险特征数据对应的正样本数和负样本数,然后将与离散型风险特征数据对应的正样本数、 负样本数,以及预设的样本数理论推断值代入卡方检验算法中进行计算,得到离散型风险特征数据的卡方值,其中,卡方检验算法的公式为:Specifically, for the discrete risk characteristic data in a positive sample and a negative sample, the server first counts the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data, and then calculates the number of positive samples corresponding to the discrete risk characteristic data. The number of negative samples and the theoretical inferred value of the preset sample number are substituted into the chi-square test algorithm for calculation to obtain the chi-square value of the discrete risk characteristic data. The formula of the chi-square test algorithm is:

Figure PCTCN2020105061-appb-000001
Figure PCTCN2020105061-appb-000001

其中,X2为卡方值,observed为样本数的观测值,expected为样本数理论推断值。Among them, X2 is the chi-square value, observed is the observed value of the number of samples, and expected is the theoretical inferred value of the number of samples.

服务器判断计算的卡方值是否小于或等于第一预设阈值,若是,则将该离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。The server determines whether the calculated chi-square value is less than or equal to the first preset threshold, and if so, uses the discrete risk characteristic data as target discrete risk characteristic data with risk prediction value.

进一步地,根据证据权重算法和信息价值算法,从正样本和负样本中筛选出具有风险预测价值的目标连续型风险特征数据的步骤可以包括:对于正样本和负样本中的连续型风险特征数据,将连续型风险特征数据进行分段;根据证据权重算法,计算与每个分段对应的证据权重,根据计算得到的证据权重和信息价值算法,计算与每个分段对应的信息价值;将与每个分段对应的信息价值进行求和,得到与连续型风险特征数据对应的信息价值;当与连续型风险特征数据对应的信息价值大于或等于第二预设阈值时,将连续型风险特征数据作为具有风险预测价值的目标连续型风险特征数据。Further, according to the weight of evidence algorithm and the information value algorithm, the step of screening the target continuous risk characteristic data with risk prediction value from the positive sample and the negative sample may include: for the continuous risk characteristic data in the positive sample and the negative sample , Divide the continuous risk characteristic data into segments; calculate the evidence weight corresponding to each segment according to the evidence weight algorithm, and calculate the information value corresponding to each segment according to the calculated evidence weight and information value algorithm; The information value corresponding to each segment is summed to obtain the information value corresponding to the continuous risk characteristic data; when the information value corresponding to the continuous risk characteristic data is greater than or equal to the second preset threshold, the continuous risk Feature data is used as target continuous risk feature data with risk prediction value.

具体地,对于正样本和负样本中的连续型风险特征数据,服务器首先将该连续型风险特征数据进行分段,其中分段数及每个分段的大小可以灵活设置,然后根据证据权重算法,计算与每个分段对应的证据权重WOE,其中WOE=ln(P1/P2),P1为当前分段中正样本占所有正样本的比例,P2为当前分段中负样本占所有负样本的比例;之后,再将WOE值代入信息价值算法中进行计算,得到与每个分段对应的信息价值IV,其中IV=(P1-P2)*WOE;将与每个分段对应的信息价值进行求和,即得到与该连续型风险特征数据对应的信息价值,服务器判断该信息价值是否大于或等于第二预设阈值,若是,则将该连续型风险特征数据作为具有风险预测价值的目标连续型风险特征数据。Specifically, for the continuous risk feature data in the positive sample and the negative sample, the server first segment the continuous risk feature data, where the number of segments and the size of each segment can be flexibly set, and then the weight of evidence algorithm is used , Calculate the weight of evidence WOE corresponding to each segment, where WOE=ln(P1/P2), P1 is the proportion of positive samples in the current segment to all positive samples, and P2 is the ratio of negative samples in the current segment to all negative samples Proportion; After that, the WOE value is substituted into the information value algorithm for calculation, and the information value IV corresponding to each segment is obtained, where IV=(P1-P2)*WOE; the information value corresponding to each segment is calculated Sum, that is, the information value corresponding to the continuous risk characteristic data is obtained, and the server judges whether the information value is greater than or equal to the second preset threshold. If so, the continuous risk characteristic data is regarded as a continuous target with risk prediction value. Type risk characteristic data.

之后,服务器将上述目标离散型风险特征数据和目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树,由此能够提高模型训练的准确性和效率。After that, the server inputs the target discrete risk characteristic data and target continuous risk characteristic data as a training set into the preset decision tree model for training, and obtains the target decision tree, thereby improving the accuracy and efficiency of model training.

本申请实施例还提供一种食品安全风险评估装置。The embodiment of the application also provides a food safety risk assessment device.

参照图2,图2为本申请食品安全风险评估装置的一个实施例的模块示意图。本实施例中,所述食品安全风险评估装置包括:Referring to Fig. 2, Fig. 2 is a schematic diagram of a module of an embodiment of the food safety risk assessment device of the present application. In this embodiment, the food safety risk assessment device includes:

第一获取模块201,用于根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;The first acquisition module 201 is configured to acquire risk characteristic data of multiple catering companies according to preset food safety risk characteristic items;

判断模块202,用于判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;The judging module 202 is used to judge whether the multiple catering companies have had food safety accidents within a preset time period, taking the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and taking The risk characteristic data of the catering companies that have not had a food safety accident among the plurality of catering companies are taken as a negative sample;

训练模块203,用于根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;The training module 203 is configured to generate a training set according to the positive sample and the negative sample, and input the training set into a preset decision tree model for training, to obtain a target decision tree;

第二获取模块204,用于分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;The second obtaining module 204 is configured to obtain the path from the root node of the target decision tree to each leaf node, and respectively generate a corresponding food safety risk feature combination according to each obtained path;

计算模块205,用于计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;The calculation module 205 is configured to calculate a risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;

风险评估模块206,用于获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型 对所述待评估餐饮企业进行食品安全风险评估。The risk assessment module 206 is configured to obtain the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and compare the risk characteristics of the catering company to the food safety risk assessment model. The catering companies to be assessed conduct food safety risk assessments.

可选的,所述第一获取模块201还用于:Optionally, the first obtaining module 201 is further configured to:

从预设数据库中抽取多个餐饮企业的历史经营数据,对所述历史经营数据进行数据清洗,得到企业基础画像数据集;Extract historical operating data of multiple catering companies from a preset database, and perform data cleaning on the historical operating data to obtain a basic image data set of the enterprise;

对于企业基础画像数据集中的每个餐饮企业,从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据。For each catering enterprise in the enterprise basic profile data set, the risk characteristic data corresponding to the preset food safety risk characteristic items are extracted from the historical operating data after data cleaning.

可选的,所述判断模块202还用于:Optionally, the judgment module 202 is further configured to:

从预设媒体数据库获取预设时长内所述多个餐饮企业的食品安全报导信息;Obtaining food safety report information of the plurality of catering companies within a preset time period from a preset media database;

根据所述食品安全报导信息判断所述多个餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录;According to the food safety report information, determine whether the multiple catering companies have experienced food poisoning incidents, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities;

当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,判定所述餐饮企业在预设时长内发生过食品安全事故。When a certain catering company has experienced a food poisoning incident, or has a record of judicial or administrative penalties, or is included in the list of business abnormalities, it is determined that the catering company has had a food safety incident within a preset period of time.

可选的,所述训练模块203还用于:Optionally, the training module 203 is also used to:

根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据;According to a chi-square test algorithm, select target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample;

根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据;According to the weight of evidence algorithm and the information value algorithm, select target continuous risk characteristic data with risk prediction value from the positive sample and the negative sample;

将所述目标离散型风险特征数据和所述目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树。The target discrete risk characteristic data and the target continuous risk characteristic data are input into a preset decision tree model as a training set for training, to obtain a target decision tree.

可选的,所述训练模块203还用于:Optionally, the training module 203 is also used to:

对于所述正样本和所述负样本中的离散型风险特征数据,统计与所述离散型风险特征数据对应的正样本数和负样本数;For the discrete risk characteristic data in the positive sample and the negative sample, count the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data;

将与所述离散型风险特征数据对应的正样本数、负样本数,以及预设的样本数理论推断值代入卡方检验算法中进行计算,得到所述离散型风险特征数据的卡方值;Substituting the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data, and the preset theoretical inferred value of the sample number into the chi-square test algorithm for calculation, to obtain the chi-square value of the discrete risk characteristic data;

当所述卡方值小于或等于第一预设阈值时,将所述离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。When the chi-square value is less than or equal to the first preset threshold, the discrete risk characteristic data is used as target discrete risk characteristic data with risk prediction value.

可选的,所述训练模块203还用于:Optionally, the training module 203 is also used to:

对于所述正样本和所述负样本中的连续型风险特征数据,将所述连续型风险特征数据进行分段;For the continuous risk characteristic data in the positive sample and the negative sample, segment the continuous risk characteristic data;

根据证据权重算法,计算与每个分段对应的证据权重,根据计算得到的所述证据权重和信息价值算法,计算与每个分段对应的信息价值;According to the evidence weight algorithm, calculate the evidence weight corresponding to each segment, and calculate the information value corresponding to each segment according to the calculated evidence weight and information value algorithm;

将与每个分段对应的信息价值进行求和,得到与所述连续型风险特征数据对应的信息价值;Summing the information value corresponding to each segment to obtain the information value corresponding to the continuous risk characteristic data;

当与所述连续型风险特征数据对应的信息价值大于或等于第二预设阈值时,将所述连续型风险特征数据作为具有风险预测价值的目标连续型风险特征数据。When the information value corresponding to the continuous risk characteristic data is greater than or equal to a second preset threshold, the continuous risk characteristic data is used as target continuous risk characteristic data with risk prediction value.

可选的,所述计算模块205还用于:Optionally, the calculation module 205 is further configured to:

统计与每个食品安全风险特征组合对应的正样本数和负样本数,将与每个食品安全风险特征组合对应的正样本数和负样本数相加,得到样本总数;Count the number of positive samples and negative samples corresponding to each food safety risk feature combination, and add the number of positive samples and negative samples corresponding to each food safety risk feature combination to get the total number of samples;

计算与每个食品安全风险特征组合对应的正样本数占所述样本总数的比例,将所述比例作为与每个食品安全风险特征组合对应的风险评估值。Calculate the ratio of the number of positive samples corresponding to each food safety risk feature combination to the total number of samples, and use the ratio as the risk assessment value corresponding to each food safety risk feature combination.

上述食品安全风险评估装置中各个模块的功能实现及有益效果与上述食品安全风险评估方法实施例中各步骤相对应,此处不再赘述。The functional realization and beneficial effects of each module in the above food safety risk assessment device correspond to the steps in the embodiment of the above food safety risk assessment method, and will not be repeated here.

上面从模块化功能实体的角度对本申请实施例中的食品安全风险评估装置进行了详细 描述,下面从硬件处理的角度对本申请实施例中食品安全风险评估设备进行详细描述。The food safety risk assessment device in the embodiment of the present application is described in detail above from the perspective of modular functional entity, and the food safety risk assessment device in the embodiment of the present application is described in detail from the perspective of hardware processing.

参照图3,图3为本申请实施例提供的食品安全风险评估设备的结构示意图。该食品安全风险评估设备300可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)310(例如,一个或一个以上处理器)和存储器320,一个或一个以上存储应用程序333或数据332的存储介质330(例如一个或一个以上海量存储设备)。其中,存储器320和存储介质330可以是短暂存储或持久存储。存储在存储介质330的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对食品安全风险评估设备300中的一系列指令操作。更进一步地,处理器310可以设置为与存储介质330通信,在食品安全风险评估设备300上执行存储介质330中的一系列指令操作。Referring to Fig. 3, Fig. 3 is a schematic structural diagram of a food safety risk assessment device provided by an embodiment of the application. The food safetyrisk assessment device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and amemory 320. One ormore storage media 330 for storingapplication programs 333 or data 332 (for example, one or one storage device with a large amount of storage). Among them, thememory 320 and thestorage medium 330 may be short-term storage or persistent storage. The program stored in thestorage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of command operations in the food safetyrisk assessment device 300. Furthermore, theprocessor 310 may be configured to communicate with thestorage medium 330 and execute a series of instruction operations in thestorage medium 330 on the food safetyrisk assessment device 300.

食品安全风险评估设备300还可以包括一个或一个以上电源340,一个或一个以上有线或无线网络接口350,一个或一个以上输入输出接口360,和/或,一个或一个以上操作系统331,例如Windows Serve,Mac OS X,Unix,Linux,FreeBSD等等。本领域技术人员可以理解,图3示出的食品安全风险评估设备结构并不构成对食品安全风险评估设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The food safetyrisk assessment device 300 may also include one ormore power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and/or one ormore operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the structure of the food safety risk assessment equipment shown in FIG. 3 does not constitute a limitation on the food safety risk assessment equipment, and may include more or less components than shown in the figure, or combine certain components, or Different component arrangements.

本申请还提供一种存储介质,该存储介质可以为非易失性存储介质,也可以为易失性存储介质,所述存储介质中存储有食品安全风险评估程序,所述食品安全风险评估程序被处理器执行时实现如上所述的食品安全风险评估方法的步骤。The present application also provides a storage medium, which may be a non-volatile storage medium or a volatile storage medium, the storage medium stores a food safety risk assessment program, and the food safety risk assessment program When executed by the processor, the steps of the food safety risk assessment method as described above are realized.

其中,在所述处理器上运行的食品安全风险评估程序被执行时所实现的方法及有益效果可参照本申请食品安全风险评估方法的各个实施例,此处不再赘述。For the methods and beneficial effects achieved when the food safety risk assessment program running on the processor is executed, refer to the various embodiments of the food safety risk assessment method of the present application, which will not be repeated here.

进一步地,该计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function, etc.; the storage data area may store a block chain node Use the created data, etc.

本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

本领域技术人员可以理解,上述集成的模块或单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that if the above integrated modules or units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .

以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still compare the previous embodiments. The recorded technical solutions are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

Translated fromChinese
一种食品安全风险评估方法,其中,所述食品安全风险评估方法包括如下步骤:A food safety risk assessment method, wherein the food safety risk assessment method includes the following steps:根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.如权利要求1所述的食品安全风险评估方法,其中,所述根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据的步骤包括:The food safety risk assessment method according to claim 1, wherein the step of obtaining risk characteristic data of multiple catering companies according to preset food safety risk characteristic items comprises:从预设数据库中抽取多个餐饮企业的历史经营数据,对所述历史经营数据进行数据清洗,得到企业基础画像数据集;Extract historical operating data of multiple catering companies from a preset database, and perform data cleaning on the historical operating data to obtain a basic image data set of the enterprise;对于企业基础画像数据集中的每个餐饮企业,从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据。For each catering enterprise in the enterprise basic profile data set, the risk characteristic data corresponding to the preset food safety risk characteristic items are extracted from the historical operating data after data cleaning.如权利要求1所述的食品安全风险评估方法,其中,所述判断所述多个餐饮企业在预设时长内是否发生过食品安全事故的步骤包括:5. The food safety risk assessment method according to claim 1, wherein the step of judging whether a food safety accident has occurred in the plurality of catering companies within a preset time period comprises:从预设媒体数据库获取预设时长内所述多个餐饮企业的食品安全报导信息;Obtaining food safety report information of the plurality of catering companies within a preset time period from a preset media database;根据所述食品安全报导信息判断所述多个餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录;According to the food safety report information, determine whether the multiple catering companies have experienced food poisoning incidents, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities;当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,判定所述餐饮企业在预设时长内发生过食品安全事故。When a certain catering company has experienced a food poisoning incident, or has a record of judicial or administrative penalties, or is included in the list of business abnormalities, it is determined that the catering company has had a food safety incident within a preset period of time.如权利要求1-3中任一项所述的食品安全风险评估方法,其中,所述根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树的步骤包括:The food safety risk assessment method according to any one of claims 1 to 3, wherein the training set is generated according to the positive sample and the negative sample, and the training set is input to a preset decision tree model The steps to get the target decision tree include:根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据;According to a chi-square test algorithm, select target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample;根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据;According to the weight of evidence algorithm and the information value algorithm, select target continuous risk characteristic data with risk prediction value from the positive sample and the negative sample;将所述目标离散型风险特征数据和所述目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树。The target discrete risk characteristic data and the target continuous risk characteristic data are input into a preset decision tree model as a training set for training, to obtain a target decision tree.如权利要求4所述的食品安全风险评估方法,其中,所述根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据的步骤包括:The food safety risk assessment method according to claim 4, wherein the step of screening target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample according to the chi-square test algorithm comprises :对于所述正样本和所述负样本中的离散型风险特征数据,统计与所述离散型风险特征数据对应的正样本数和负样本数;For the discrete risk characteristic data in the positive sample and the negative sample, count the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data;将与所述离散型风险特征数据对应的正样本数、负样本数,以及预设的样本数理论推 断值代入卡方检验算法中进行计算,得到所述离散型风险特征数据的卡方值;Substituting the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data, and the preset theoretical inference value of the sample number into the chi-square test algorithm for calculation, to obtain the chi-square value of the discrete risk characteristic data;当所述卡方值小于或等于第一预设阈值时,将所述离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。When the chi-square value is less than or equal to the first preset threshold, the discrete risk characteristic data is used as target discrete risk characteristic data with risk prediction value.如权利要求4所述的食品安全风险评估方法,其中,所述根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据的步骤包括:The food safety risk assessment method according to claim 4, wherein, according to the weight of evidence algorithm and the information value algorithm, the target continuous risk characteristic data with risk prediction value is selected from the positive sample and the negative sample The steps include:对于所述正样本和所述负样本中的连续型风险特征数据,将所述连续型风险特征数据进行分段;For the continuous risk characteristic data in the positive sample and the negative sample, segment the continuous risk characteristic data;根据证据权重算法,计算与每个分段对应的证据权重,根据计算得到的所述证据权重和信息价值算法,计算与每个分段对应的信息价值;According to the evidence weight algorithm, calculate the evidence weight corresponding to each segment, and calculate the information value corresponding to each segment according to the calculated evidence weight and information value algorithm;将与每个分段对应的信息价值进行求和,得到与所述连续型风险特征数据对应的信息价值;Summing the information value corresponding to each segment to obtain the information value corresponding to the continuous risk characteristic data;当与所述连续型风险特征数据对应的信息价值大于或等于第二预设阈值时,将所述连续型风险特征数据作为具有风险预测价值的目标连续型风险特征数据。When the information value corresponding to the continuous risk characteristic data is greater than or equal to a second preset threshold, the continuous risk characteristic data is used as target continuous risk characteristic data with risk prediction value.如权利要求1所述的食品安全风险评估方法,其中,所述计算与每个食品安全风险特征组合对应的风险评估值的步骤包括:The food safety risk assessment method of claim 1, wherein the step of calculating the risk assessment value corresponding to each combination of food safety risk features comprises:统计与每个食品安全风险特征组合对应的正样本数和负样本数,将与每个食品安全风险特征组合对应的正样本数和负样本数相加,得到样本总数;Count the number of positive samples and negative samples corresponding to each food safety risk feature combination, and add the number of positive samples and negative samples corresponding to each food safety risk feature combination to get the total number of samples;计算与每个食品安全风险特征组合对应的正样本数占所述样本总数的比例,将所述比例作为与每个食品安全风险特征组合对应的风险评估值。Calculate the ratio of the number of positive samples corresponding to each food safety risk feature combination to the total number of samples, and use the ratio as the risk assessment value corresponding to each food safety risk feature combination.一种食品安全风险评估设备,其中,所述食品安全风险评估设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的食品安全风险评估程序,所述处理器执行所述食品安全风险评估程序时实现如下步骤:A food safety risk assessment device, wherein the food safety risk assessment device includes a memory, a processor, and a food safety risk assessment program stored in the memory and running on the processor, and the processor The following steps are implemented when implementing the food safety risk assessment procedure:根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.如权利要求8所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据时,包括以下步骤:The food safety risk assessment device according to claim 8, wherein the processor executes the food safety risk assessment program to realize the time when the risk characteristic data of multiple catering companies is obtained according to the preset food safety risk characteristic items , Including the following steps:从预设数据库中抽取多个餐饮企业的历史经营数据,对所述历史经营数据进行数据清洗,得到企业基础画像数据集;Extract historical operating data of multiple catering companies from a preset database, and perform data cleaning on the historical operating data to obtain a basic image data set of the enterprise;对于企业基础画像数据集中的每个餐饮企业,从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据。For each catering enterprise in the enterprise basic profile data set, the risk characteristic data corresponding to the preset food safety risk characteristic items are extracted from the historical operating data after data cleaning.如权利要求8所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述判断所述多个餐饮企业在预设时长内是否发生过食品安全事故时,包括以下步骤:8. The food safety risk assessment device according to claim 8, wherein said processor executes said food safety risk assessment program to realize said determining whether said plurality of catering companies have had food safety accidents within a preset period of time, It includes the following steps:从预设媒体数据库获取预设时长内所述多个餐饮企业的食品安全报导信息;Obtaining food safety report information of the plurality of catering companies within a preset time period from a preset media database;根据所述食品安全报导信息判断所述多个餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录;According to the food safety report information, determine whether the multiple catering companies have experienced food poisoning incidents, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities;当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,判定所述餐饮企业在预设时长内发生过食品安全事故。When a certain catering company has experienced a food poisoning incident, or has a record of judicial or administrative penalties, or is included in the list of business abnormalities, it is determined that the catering company has had a food safety incident within a preset period of time.如权利要求8-10中任一项所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树时,包括以下步骤:10. The food safety risk assessment device according to any one of claims 8-10, wherein the processor executes the food safety risk assessment program to realize the generation of a training set based on the positive sample and the negative sample, Inputting the training set into the preset decision tree model for training, and obtaining the target decision tree includes the following steps:根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据;According to a chi-square test algorithm, select target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample;根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据;According to the weight of evidence algorithm and the information value algorithm, select target continuous risk characteristic data with risk prediction value from the positive sample and the negative sample;将所述目标离散型风险特征数据和所述目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树。The target discrete risk characteristic data and the target continuous risk characteristic data are input into a preset decision tree model as a training set for training, to obtain a target decision tree.如权利要求11所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据时,包括以下步骤:The food safety risk assessment device according to claim 11, wherein the processor executes the food safety risk assessment program to implement the chi-square test algorithm to select from the positive sample and the negative sample with The target discrete risk characteristic data of risk prediction value includes the following steps:对于所述正样本和所述负样本中的离散型风险特征数据,统计与所述离散型风险特征数据对应的正样本数和负样本数;For the discrete risk characteristic data in the positive sample and the negative sample, count the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data;将与所述离散型风险特征数据对应的正样本数、负样本数,以及预设的样本数理论推断值代入卡方检验算法中进行计算,得到所述离散型风险特征数据的卡方值;Substituting the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data, and the preset theoretical inferred value of the sample number into the chi-square test algorithm for calculation, to obtain the chi-square value of the discrete risk characteristic data;当所述卡方值小于或等于第一预设阈值时,将所述离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。When the chi-square value is less than or equal to the first preset threshold, the discrete risk characteristic data is used as target discrete risk characteristic data with risk prediction value.如权利要求11所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据时,包括以下步骤:The food safety risk assessment device according to claim 11, wherein the processor executes the food safety risk assessment program to realize the weight of evidence algorithm and the information value algorithm, from the positive sample and the negative sample When screening target continuous risk characteristic data with risk prediction value, the following steps are included:对于所述正样本和所述负样本中的连续型风险特征数据,将所述连续型风险特征数据进行分段;For the continuous risk characteristic data in the positive sample and the negative sample, segment the continuous risk characteristic data;根据证据权重算法,计算与每个分段对应的证据权重,根据计算得到的所述证据权重和信息价值算法,计算与每个分段对应的信息价值;According to the evidence weight algorithm, calculate the evidence weight corresponding to each segment, and calculate the information value corresponding to each segment according to the calculated evidence weight and information value algorithm;将与每个分段对应的信息价值进行求和,得到与所述连续型风险特征数据对应的信息价值;Summing the information value corresponding to each segment to obtain the information value corresponding to the continuous risk characteristic data;当与所述连续型风险特征数据对应的信息价值大于或等于第二预设阈值时,将所述连续型风险特征数据作为具有风险预测价值的目标连续型风险特征数据。When the information value corresponding to the continuous risk characteristic data is greater than or equal to a second preset threshold, the continuous risk characteristic data is used as target continuous risk characteristic data with risk prediction value.如权利要求8所述的食品安全风险评估设备,其中,所述处理器执行所述食品安全风险评估程序实现所述计算与每个食品安全风险特征组合对应的风险评估值时,包括以下步骤:8. The food safety risk assessment device according to claim 8, wherein when the processor executes the food safety risk assessment program to realize the calculation of the risk assessment value corresponding to each combination of food safety risk features, it comprises the following steps:统计与每个食品安全风险特征组合对应的正样本数和负样本数,将与每个食品安全风险特征组合对应的正样本数和负样本数相加,得到样本总数;Count the number of positive samples and negative samples corresponding to each food safety risk feature combination, and add the number of positive samples and negative samples corresponding to each food safety risk feature combination to get the total number of samples;计算与每个食品安全风险特征组合对应的正样本数占所述样本总数的比例,将所述比 例作为与每个食品安全风险特征组合对应的风险评估值。Calculate the ratio of the number of positive samples corresponding to each food safety risk feature combination to the total number of samples, and use the ratio as the risk assessment value corresponding to each food safety risk feature combination.一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:A computer-readable storage medium in which computer instructions are stored, and when the computer instructions are executed on a computer, the computer executes the following steps:根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;According to preset food safety risk feature items, obtain risk feature data of multiple catering companies;判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;Determine whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use the multiple catering companies as a positive sample. The risk characteristic data of catering companies that have not had food safety accidents in the data are used as negative samples;根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;Generate a training set according to the positive sample and the negative sample, input the training set into a preset decision tree model for training, and obtain a target decision tree;分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;Obtaining a path from the root node of the target decision tree to each leaf node, and generating a corresponding food safety risk feature combination according to each obtained path;计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;Calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。Acquire the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and conduct food safety on the catering company to be assessed through the food safety risk assessment model risk assessment.如权利要求15所述的计算机可读存储介质,所述计算机可读存储介质执行所述计算机指令实现所述根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据时,包括以下步骤:15. The computer-readable storage medium according to claim 15, when the computer-readable storage medium executes the computer instructions to implement the risk characteristic data of multiple catering companies according to the preset food safety risk characteristic items, it includes The following steps:从预设数据库中抽取多个餐饮企业的历史经营数据,对所述历史经营数据进行数据清洗,得到企业基础画像数据集;Extract historical operating data of multiple catering companies from a preset database, and perform data cleaning on the historical operating data to obtain a basic image data set of the enterprise;对于企业基础画像数据集中的每个餐饮企业,从进行数据清洗后的历史经营数据中提取出与预设的食品安全风险特征项对应的风险特征数据。For each catering enterprise in the enterprise basic profile data set, the risk characteristic data corresponding to the preset food safety risk characteristic items are extracted from the historical operating data after data cleaning.如权利要求15所述的计算机可读存储介质,所述计算机可读存储介质执行所述计算机指令实现所述判断所述多个餐饮企业在预设时长内是否发生过食品安全事故时,包括以下步骤:15. The computer-readable storage medium according to claim 15, when the computer-readable storage medium executes the computer instructions to realize the determination of whether the plurality of catering companies have had a food safety incident within a preset period of time, including the following step:从预设媒体数据库获取预设时长内所述多个餐饮企业的食品安全报导信息;Obtaining food safety report information of the plurality of catering companies within a preset time period from a preset media database;根据所述食品安全报导信息判断所述多个餐饮企业是否发生过食品中毒事件、是否存在司法处罚或行政处罚记录,以及是否被列入经营异常名录;According to the food safety report information, determine whether the multiple catering companies have experienced food poisoning incidents, whether there are judicial or administrative punishment records, and whether they are included in the list of business abnormalities;当某个餐饮企业发生过食品中毒事件,或存在司法处罚或行政处罚记录,或被列入经营异常名录时,判定所述餐饮企业在预设时长内发生过食品安全事故。When a certain catering company has experienced a food poisoning incident, or has a record of judicial or administrative penalties, or is included in the list of business abnormalities, it is determined that the catering company has had a food safety incident within a preset period of time.如权利要求15-17中任一项所述的计算机可读存储介质,所述计算机可读存储介质执行所述计算机指令实现所述根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树时,包括以下步骤:The computer-readable storage medium according to any one of claims 15-17, the computer-readable storage medium executes the computer instructions to realize the generation of a training set based on the positive sample and the negative sample, and the The training set is input into the preset decision tree model for training, and when the target decision tree is obtained, the following steps are included:根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据;According to a chi-square test algorithm, select target discrete risk characteristic data with risk prediction value from the positive sample and the negative sample;根据证据权重算法和信息价值算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标连续型风险特征数据;According to the weight of evidence algorithm and the information value algorithm, select target continuous risk characteristic data with risk prediction value from the positive sample and the negative sample;将所述目标离散型风险特征数据和所述目标连续型风险特征数据作为训练集输入至预设的决策树模型中进行训练,得到目标决策树。The target discrete risk characteristic data and the target continuous risk characteristic data are input into a preset decision tree model as a training set for training, to obtain a target decision tree.如权利要求18所述的计算机可读存储介质,所述计算机可读存储介质执行所述计算机指令实现所述根据卡方检验算法,从所述正样本和所述负样本中筛选出具有风险预测价值的目标离散型风险特征数据时,包括以下步骤:The computer-readable storage medium according to claim 18, wherein the computer-readable storage medium executes the computer instructions to implement the chi-square test algorithm to select risk predictions from the positive samples and the negative samples The value target discrete risk characteristic data includes the following steps:对于所述正样本和所述负样本中的离散型风险特征数据,统计与所述离散型风险特征数据对应的正样本数和负样本数;For the discrete risk characteristic data in the positive sample and the negative sample, count the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data;将与所述离散型风险特征数据对应的正样本数、负样本数,以及预设的样本数理论推断值代入卡方检验算法中进行计算,得到所述离散型风险特征数据的卡方值;Substituting the number of positive samples and the number of negative samples corresponding to the discrete risk characteristic data, and the preset theoretical inferred value of the sample number into the chi-square test algorithm for calculation, to obtain the chi-square value of the discrete risk characteristic data;当所述卡方值小于或等于第一预设阈值时,将所述离散型风险特征数据作为具有风险预测价值的目标离散型风险特征数据。When the chi-square value is less than or equal to the first preset threshold, the discrete risk characteristic data is used as target discrete risk characteristic data with risk prediction value.一种食品安全风险评估装置,其中,所述食品安全风险评估装置包括:A food safety risk assessment device, wherein the food safety risk assessment device includes:第一获取模块,用于根据预设的食品安全风险特征项,获取多个餐饮企业的风险特征数据;The first acquisition module is used to acquire risk characteristic data of multiple catering companies according to preset food safety risk characteristic items;判断模块,用于判断所述多个餐饮企业在预设时长内是否发生过食品安全事故,将所述多个餐饮企业中发生过食品安全事故的餐饮企业的风险特征数据作为正样本,将所述多个餐饮企业中未发生过食品安全事故的餐饮企业的风险特征数据作为负样本;The judgment module is used to judge whether the multiple catering companies have had food safety accidents within a preset period of time, use the risk characteristic data of the catering companies that have had food safety accidents among the multiple catering companies as a positive sample, and use all catering companies as a positive sample. State the risk characteristic data of catering companies that have not had a food safety accident among multiple catering companies as a negative sample;训练模块,用于根据所述正样本和所述负样本生成训练集,将所述训练集输入至预设的决策树模型中进行训练,得到目标决策树;A training module, configured to generate a training set according to the positive sample and the negative sample, and input the training set into a preset decision tree model for training to obtain a target decision tree;第二获取模块,用于分别获取所述目标决策树的根节点到每个叶子节点的路径,根据获取到的每一条路径分别生成一个对应的食品安全风险特征组合;The second acquisition module is configured to respectively acquire the path from the root node of the target decision tree to each leaf node, and respectively generate a corresponding food safety risk feature combination according to each acquired path;计算模块,用于计算与每个食品安全风险特征组合对应的风险评估值,将所述风险评估值标记在所述目标决策树的对应叶子节点上,得到食品安全风险评估模型;The calculation module is used to calculate the risk assessment value corresponding to each food safety risk feature combination, and mark the risk assessment value on the corresponding leaf node of the target decision tree to obtain a food safety risk assessment model;风险评估模块,用于获取待评估餐饮企业的风险特征数据,将所述待评估餐饮企业的风险特征数据输入至所述食品安全风险评估模型中,通过所述食品安全风险评估模型对所述待评估餐饮企业进行食品安全风险评估。The risk assessment module is used to obtain the risk characteristic data of the catering company to be assessed, input the risk characteristic data of the catering company to be assessed into the food safety risk assessment model, and use the food safety risk assessment model to analyze the risk characteristics of the catering company to be assessed. Assess catering companies to conduct food safety risk assessments.
PCT/CN2020/1050612020-05-212020-07-28Food safety risk assessment method, apparatus, device, and storage mediumCeasedWO2021232588A1 (en)

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN202010433430.82020-05-21
CN202010433430.8ACN111738549A (en)2020-05-212020-05-21 Food safety risk assessment methods, devices, equipment and storage media

Publications (1)

Publication NumberPublication Date
WO2021232588A1true WO2021232588A1 (en)2021-11-25

Family

ID=72647526

Family Applications (1)

Application NumberTitlePriority DateFiling Date
PCT/CN2020/105061CeasedWO2021232588A1 (en)2020-05-212020-07-28Food safety risk assessment method, apparatus, device, and storage medium

Country Status (2)

CountryLink
CN (1)CN111738549A (en)
WO (1)WO2021232588A1 (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114492214A (en)*2022-04-182022-05-13支付宝(杭州)信息技术有限公司Method and device for determining selection operator and optimizing strategy combination by using machine learning
CN114926074A (en)*2022-06-012022-08-19武汉东湖大数据交易中心股份有限公司Enterprise safety risk identification and evaluation method and system based on identification analysis data
CN115034564A (en)*2022-05-132022-09-09北京市科学技术研究院Food safety risk response handling method, electronic device and storage medium
CN115375194A (en)*2022-10-242022-11-22浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心)Risk early warning method and device, electronic equipment and storage medium
CN116596300A (en)*2023-04-192023-08-15浙江物芯数科信息产业有限公司Intelligent supervision method, system, equipment and medium for food production enterprises
CN116739617A (en)*2023-06-082023-09-12中国标准化研究院Food related product risk management system and method based on data analysis
CN116934359A (en)*2023-09-152023-10-24深圳市金谷园实业发展有限公司Food safety full-flow supervision system based on Internet
CN117669810A (en)*2023-11-272024-03-08国家电网有限公司 A multi-strategy fusion material sampling method
CN118037141A (en)*2024-04-152024-05-14中国标准化研究院Digital comprehensive evaluation method and system for catering enterprises
CN118134260A (en)*2024-04-302024-06-04元尔科技(无锡)有限公司Food safety risk assessment method and system
CN118134432A (en)*2024-04-302024-06-04元尔科技(无锡)有限公司Cooperative supervision method, system, electronic equipment and medium for food safety
CN118378897A (en)*2024-06-212024-07-23杭州祐全科技发展有限公司 A data processing method and system for food safety risk identification
CN118379075A (en)*2024-06-242024-07-23聊城大学 Food full cycle traceability method based on food safety
CN118485310A (en)*2024-06-252024-08-13甘肃衍河石油管道涂层有限公司Control system and method for preparing anti-corrosion, wax-proof and scale-proof coating
CN118584890A (en)*2024-08-072024-09-03江苏新美源机械有限公司 A canning control system and method based on carbonated beverages
CN118918639A (en)*2024-08-012024-11-08上海市大数据中心Food safety automatic diagnosis system and method based on artificial intelligence
CN119027144A (en)*2024-10-292024-11-26贵州食科源信息科技有限公司 A food quality and safety traceability method and system
CN119250647A (en)*2024-12-042025-01-03日照市捷悟大数据科技有限公司 A food quality supervision method, platform and device
CN119397503A (en)*2024-10-252025-02-07广州钛动科技股份有限公司 Enterprise rights management method, system, device and medium based on machine learning
CN119721856A (en)*2024-12-242025-03-28食药环检验研究院(山东)集团有限公司 Food safety prediction method and system based on qualified food sampling monitoring report
CN119962972A (en)*2025-04-072025-05-09大连金马衡器有限公司 A food safety risk assessment method and system based on smart agricultural wholesale supervision
CN120028510A (en)*2025-04-182025-05-23江苏爱箔乐铝箔制品有限公司 A method and device for quality inspection of finished aluminum foil lunch box products

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112101819B (en)*2020-10-282024-08-23平安国际智慧城市科技股份有限公司Food risk prediction method, device, equipment and storage medium
CN113298438B (en)*2021-06-222024-09-17中国平安财产保险股份有限公司Regional risk level assessment method and device, computer equipment and storage medium
CN113887868B (en)*2021-08-312024-09-06华南农业大学Method for realizing food risk assessment based on improved neural network
CN113762764B (en)*2021-09-022024-04-12南京大学Automatic grading and early warning system and method for imported food safety risks
CN113886716B (en)*2021-11-302022-04-05国家食品安全风险评估中心Emergency disposal recommendation method and system for food safety emergencies
CN114140095A (en)*2021-12-132022-03-04成都市食品检验研究院System for intelligently generating key control measures of food production and operation enterprises
CN115496372B (en)*2022-09-262023-10-24广东顺峰智慧能源研究院有限公司Charging system safety risk prediction method, device, equipment and readable storage medium
CN115829321B (en)*2022-11-222023-08-15成都市食品检验研究院Intelligent processing risk disposal system for food enterprises
CN117314149A (en)*2023-05-172023-12-29南京汉卫公共卫生研究院有限公司Food safety supervision and management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107563645A (en)*2017-09-042018-01-09杭州云算信达数据技术有限公司A kind of Financial Risk Analysis method based on big data
CN108269012A (en)*2018-01-122018-07-10中国平安人寿保险股份有限公司Construction method, device, storage medium and the terminal of risk score model
US20180232805A1 (en)*2016-06-122018-08-16Tencent Technology (Shenzhen) Company LimitedUser credit rating method and apparatus, and storage medium
CN108764273A (en)*2018-04-092018-11-06中国平安人寿保险股份有限公司A kind of method, apparatus of data processing, terminal device and storage medium
CN109657894A (en)*2018-09-272019-04-19深圳壹账通智能科技有限公司Credit Risk Assessment of Enterprise method for early warning, device, equipment and storage medium
CN109858762A (en)*2018-12-292019-06-07重庆誉存大数据科技有限公司A kind of business risk prediction technique and device
CN111062736A (en)*2018-10-172020-04-24百度在线网络技术(北京)有限公司Model training and clue sequencing method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110516910B (en)*2019-07-232023-05-26平安科技(深圳)有限公司Insurance policy and insurance model training method and insurance risk assessment method based on big data
CN110400092A (en)*2019-07-312019-11-01北京金和网络股份有限公司The recognition methods and system of food-safety problem based on big data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20180232805A1 (en)*2016-06-122018-08-16Tencent Technology (Shenzhen) Company LimitedUser credit rating method and apparatus, and storage medium
CN107563645A (en)*2017-09-042018-01-09杭州云算信达数据技术有限公司A kind of Financial Risk Analysis method based on big data
CN108269012A (en)*2018-01-122018-07-10中国平安人寿保险股份有限公司Construction method, device, storage medium and the terminal of risk score model
CN108764273A (en)*2018-04-092018-11-06中国平安人寿保险股份有限公司A kind of method, apparatus of data processing, terminal device and storage medium
CN109657894A (en)*2018-09-272019-04-19深圳壹账通智能科技有限公司Credit Risk Assessment of Enterprise method for early warning, device, equipment and storage medium
CN111062736A (en)*2018-10-172020-04-24百度在线网络技术(北京)有限公司Model training and clue sequencing method, device and equipment
CN109858762A (en)*2018-12-292019-06-07重庆誉存大数据科技有限公司A kind of business risk prediction technique and device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114492214A (en)*2022-04-182022-05-13支付宝(杭州)信息技术有限公司Method and device for determining selection operator and optimizing strategy combination by using machine learning
CN115034564A (en)*2022-05-132022-09-09北京市科学技术研究院Food safety risk response handling method, electronic device and storage medium
CN114926074A (en)*2022-06-012022-08-19武汉东湖大数据交易中心股份有限公司Enterprise safety risk identification and evaluation method and system based on identification analysis data
CN115375194A (en)*2022-10-242022-11-22浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心)Risk early warning method and device, electronic equipment and storage medium
CN116596300A (en)*2023-04-192023-08-15浙江物芯数科信息产业有限公司Intelligent supervision method, system, equipment and medium for food production enterprises
CN116739617A (en)*2023-06-082023-09-12中国标准化研究院Food related product risk management system and method based on data analysis
CN116934359A (en)*2023-09-152023-10-24深圳市金谷园实业发展有限公司Food safety full-flow supervision system based on Internet
CN116934359B (en)*2023-09-152023-12-29深圳市金谷园实业发展有限公司Food safety full-flow supervision system based on Internet
CN117669810A (en)*2023-11-272024-03-08国家电网有限公司 A multi-strategy fusion material sampling method
CN118037141A (en)*2024-04-152024-05-14中国标准化研究院Digital comprehensive evaluation method and system for catering enterprises
CN118134260A (en)*2024-04-302024-06-04元尔科技(无锡)有限公司Food safety risk assessment method and system
CN118134432A (en)*2024-04-302024-06-04元尔科技(无锡)有限公司Cooperative supervision method, system, electronic equipment and medium for food safety
CN118378897A (en)*2024-06-212024-07-23杭州祐全科技发展有限公司 A data processing method and system for food safety risk identification
CN118379075A (en)*2024-06-242024-07-23聊城大学 Food full cycle traceability method based on food safety
CN118379075B (en)*2024-06-242024-09-20聊城大学Food full-period tracing method based on food safety
CN118485310A (en)*2024-06-252024-08-13甘肃衍河石油管道涂层有限公司Control system and method for preparing anti-corrosion, wax-proof and scale-proof coating
CN118918639A (en)*2024-08-012024-11-08上海市大数据中心Food safety automatic diagnosis system and method based on artificial intelligence
CN118584890A (en)*2024-08-072024-09-03江苏新美源机械有限公司 A canning control system and method based on carbonated beverages
CN119397503A (en)*2024-10-252025-02-07广州钛动科技股份有限公司 Enterprise rights management method, system, device and medium based on machine learning
CN119027144A (en)*2024-10-292024-11-26贵州食科源信息科技有限公司 A food quality and safety traceability method and system
CN119250647A (en)*2024-12-042025-01-03日照市捷悟大数据科技有限公司 A food quality supervision method, platform and device
CN119721856A (en)*2024-12-242025-03-28食药环检验研究院(山东)集团有限公司 Food safety prediction method and system based on qualified food sampling monitoring report
CN119962972A (en)*2025-04-072025-05-09大连金马衡器有限公司 A food safety risk assessment method and system based on smart agricultural wholesale supervision
CN120028510A (en)*2025-04-182025-05-23江苏爱箔乐铝箔制品有限公司 A method and device for quality inspection of finished aluminum foil lunch box products

Also Published As

Publication numberPublication date
CN111738549A (en)2020-10-02

Similar Documents

PublicationPublication DateTitle
WO2021232588A1 (en)Food safety risk assessment method, apparatus, device, and storage medium
Dai et al.Utilizing blockchain and smart contracts to enable audit 4.0: From the perspective of accountability audit of air pollution control in China
CN111310803B (en)Environment data processing method and device
CN113449964A (en)Enterprise financial risk monitoring and early warning system and monitoring and early warning method
CN113177839A (en)Credit risk assessment method, device, storage medium and equipment
CN114529402A (en)Credit management method, device and medium based on big data wind control
CN114169686A (en)ESG evaluation method for listed company
CN111709669A (en)Enterprise credit scoring system and method
CN116777140A (en)Enterprise business management method, device, equipment and medium
CN117522598A (en)Block chain financial audit and transaction tracking system
CN110738570A (en)Information type manipulation automatic identification method based on multi-channel heterogeneous data
CN110288038A (en) Method and device for classifying enterprises
SudhakarApplied Science and Engineering Journal for Advanced Research
CN119444402A (en) Enterprise credit evaluation system and method
KR101666824B1 (en)Chain bankruptcy risk management system and bankruptcy risk management method using the same
CN111899112A (en)Real estate trust project management method and device
CN117610935A (en)Litigation behavior analysis method and system based on litigation risk
CN117217625A (en)Enterprise safety supervision method and device based on data analysis
US20230316207A1 (en)Device, method, and computer-readable medium for assessing individual compliance risk
CN109377016A (en) Operation and maintenance risk monitoring method, device and computer-readable storage medium
TWM622331U (en)System and device for risk prediction therefor
CN114066464A (en) Industry personnel monitoring and management method, device and electronic equipment in consumption installment scenario
CN119809642B (en) Transaction risk early warning control method and device based on risk measurement model
MengResearch and Practice on Audit Risk Prevention and Control Methods for Small and Medium-sized Accounting Firms
CN119721496A (en) A security strategy analysis method based on multi-technology integration

Legal Events

DateCodeTitleDescription
121Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number:20936800

Country of ref document:EP

Kind code of ref document:A1

NENPNon-entry into the national phase

Ref country code:DE

122Ep: pct application non-entry in european phase

Ref document number:20936800

Country of ref document:EP

Kind code of ref document:A1


[8]ページ先頭

©2009-2025 Movatter.jp