[go: up one dir, main page]

CN117314269A - Quality inspection model management method, system, electronic equipment and storage medium - Google Patents

Quality inspection model management method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN117314269A
CN117314269A CN202311190419.3A CN202311190419A CN117314269A CN 117314269 A CN117314269 A CN 117314269A CN 202311190419 A CN202311190419 A CN 202311190419A CN 117314269 A CN117314269 A CN 117314269A
Authority
CN
China
Prior art keywords
quality inspection
model
data
sample
training
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.)
Granted
Application number
CN202311190419.3A
Other languages
Chinese (zh)
Other versions
CN117314269B (en
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.)
Bohan Intelligent Shenzhen Co ltd
Original Assignee
Bohan Intelligent Shenzhen 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 Bohan Intelligent Shenzhen Co ltd filed Critical Bohan Intelligent Shenzhen Co ltd
Priority to CN202311190419.3A priority Critical patent/CN117314269B/en
Publication of CN117314269A publication Critical patent/CN117314269A/en
Application granted granted Critical
Publication of CN117314269B publication Critical patent/CN117314269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Evolutionary Biology (AREA)
  • Game Theory and Decision Science (AREA)
  • Software Systems (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Factory Administration (AREA)

Abstract

The embodiment of the application provides a quality inspection model management method, a quality inspection model management system, electronic equipment and a storage medium, and belongs to the technical field of model management. The method comprises the following steps: acquiring an initial quality inspection model, and performing quality inspection operation on a target object according to the initial quality inspection model to obtain initial quality inspection parameters; when the initial quality inspection parameters are monitored to be not in the preset quality inspection parameter range, screening from a database, obtaining sample training data, and training an initial quality inspection model according to the sample training data; screening and obtaining sample test data from a database, testing the trained initial quality inspection model according to the sample test data, and obtaining model test parameters; when the model test parameters are matched with the preset model standard reaching values, determining the initial quality inspection model after the test as a target quality inspection model, wherein the target quality inspection model is used for carrying out quality inspection operation on the target object again. The quality inspection model updating method and device can reduce the updating difficulty of the quality inspection model and improve the updating efficiency of the quality inspection model.

Description

质检模型管理方法、系统、电子设备及存储介质Quality inspection model management method, system, electronic equipment and storage medium

技术领域Technical field

本申请涉及模型管理技术领域,尤其涉及一种质检模型管理方法、系统、电子设备及存储介质。The present application relates to the field of model management technology, and in particular to a quality inspection model management method, system, electronic equipment and storage medium.

背景技术Background technique

目前,常使用质检模型来提高质检工作的处理效率,如工业质检中,常利用工业质检模型来对大量工业产品的相关数据进行分析处理,并且,工业质检模型的使用提高了工业产品的质检效率。At present, quality inspection models are often used to improve the processing efficiency of quality inspection work. For example, in industrial quality inspection, industrial quality inspection models are often used to analyze and process relevant data of a large number of industrial products. Moreover, the use of industrial quality inspection models has improved the efficiency of quality inspection work. Quality inspection efficiency of industrial products.

但是,在工业质检模型的实际运用中,会随着时间的推移出现质检输出结果与不断变化的质检需求不匹配的情况,最终导致工业质检模型不满足工业质检的精度要求。相关技术中,对工业质检模型的调整更新依赖于专业工程师的开发迭代,然而,工业质检模型的实际使用者通常为工厂人员,传统的工业质检模型更新迭代方法存在步骤多、专业性强、更新时间长等问题,使得工业质检模型的更新复杂度较高,从而造成了工业质检模型的更新效率较低,进而影响了工业质检相关工作的工作效率。However, in the actual application of industrial quality inspection models, quality inspection output results will not match the changing quality inspection requirements over time, which ultimately leads to the industrial quality inspection model not meeting the accuracy requirements of industrial quality inspection. In related technologies, the adjustment and update of industrial quality inspection models rely on the development and iteration of professional engineers. However, the actual users of industrial quality inspection models are usually factory personnel. The traditional iteration method of updating industrial quality inspection models has many steps and is professional. Problems such as strong and long update time make the update complexity of the industrial quality inspection model high, resulting in low update efficiency of the industrial quality inspection model, which in turn affects the efficiency of industrial quality inspection related work.

发明内容Contents of the invention

本申请实施例的主要目的在于提出一种质检模型管理方法、系统、电子设备及存储介质,能够降低质检模型的更新难度,提高质检模型的更新效率。The main purpose of the embodiments of this application is to propose a quality inspection model management method, system, electronic device and storage medium, which can reduce the difficulty of updating the quality inspection model and improve the update efficiency of the quality inspection model.

为实现上述目的,本申请实施例的第一方面提出了一种质检模型管理方法,所述方法包括:获取初始质检模型,根据所述初始质检模型对目标物体进行质检操作,得到初始质检参数;当监控到所述初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据所述样本训练数据对所述初始质检模型进行训练;从数据库中筛选并得到样本测试数据,根据所述样本测试数据对训练后的所述初始质检模型进行测试,并得到模型测试参数;当所述模型测试参数与预设的模型达标值匹配时,确定测试后的所述初始质检模型为目标质检模型,所述目标质检模型用于对所述目标物体重新进行质检操作。In order to achieve the above purpose, the first aspect of the embodiment of the present application proposes a quality inspection model management method. The method includes: obtaining an initial quality inspection model, performing quality inspection operations on the target object according to the initial quality inspection model, and obtaining Initial quality inspection parameters; when monitoring that the initial quality inspection parameters are not within the preset quality inspection parameter range, filter and obtain sample training data from the database, and train the initial quality inspection model based on the sample training data ; Screen and obtain sample test data from the database, test the initial quality inspection model after training according to the sample test data, and obtain model test parameters; when the model test parameters match the preset model compliance value When, the initial quality inspection model after testing is determined to be the target quality inspection model, and the target quality inspection model is used to re-perform quality inspection operations on the target object.

在一些实施例中,在所述根据所述样本测试数据对训练后的所述初始质检模型进行测试,并得到模型测试参数之后,还包括:当所述模型测试参数与预设的模型达标值不匹配时,重新从数据库中筛选并得到样本训练数据和样本测试数据;根据重新确定的所述样本训练数据和所述样本测试数据,重新对所述初始质检模型进行更新训练和更新测试,并得到更新后的模型测试参数,当所述模型测试参数与预设的模型达标值匹配时,确定更新后的所述初始质检模型为目标质检模型In some embodiments, after testing the trained initial quality inspection model based on the sample test data and obtaining model test parameters, the method further includes: when the model test parameters meet the preset model standards When the values do not match, re-screen and obtain sample training data and sample test data from the database; re-train and update the initial quality inspection model based on the re-determined sample training data and sample test data. , and obtain the updated model test parameters. When the model test parameters match the preset model compliance value, the updated initial quality inspection model is determined to be the target quality inspection model.

在一些实施例中,所述当监控到所述初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,包括:解析所述初始质检参数,得到所述初始质检参数的多个参数类别,每一所述参数类别包括对应的置信度,所述置信度用于表征所述初始质检模型属于所述参数类别的可信程度;当所述置信度不在预设的质检参数范围内时,根据所述置信度确定从数据库中筛选的样本训练数据的筛选类别,并根据所述筛选类别,从数据库中选取对应的样本训练数据。In some embodiments, when it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range, filtering and obtaining sample training data from the database includes: parsing the initial quality inspection parameters to obtain the A plurality of parameter categories of the initial quality inspection parameters, each parameter category includes a corresponding confidence level, the confidence level is used to represent the degree of credibility of the initial quality inspection model belonging to the parameter category; when the confidence level When the confidence level is not within the preset quality inspection parameter range, the screening category of the sample training data screened from the database is determined according to the confidence level, and the corresponding sample training data is selected from the database according to the screening category.

在一些实施例中,所述样本训练数据包括难例数据和常规数据;所述根据所述样本训练数据对所述初始质检模型进行训练,包括:当从数据库中确定所述样本训练数据时,激活所述初始质检模型的训练触发器;根据处于激活状态的所述训练触发器,将所述难例数据输入至所述初始质检模型中,得到难例训练结果,并将所述常规数据输入至所述初始质检模型中,得到常规训练结果;根据所述难例训练结果和所述常规训练结果,完成对所述初始质检模型的训练。In some embodiments, the sample training data includes difficult example data and regular data; training the initial quality inspection model based on the sample training data includes: when determining the sample training data from a database , activate the training trigger of the initial quality inspection model; according to the training trigger in the activated state, input the difficult case data into the initial quality inspection model, obtain the difficult case training results, and put the difficult case data into the initial quality inspection model. Regular data is input into the initial quality inspection model to obtain regular training results; based on the difficult example training results and the regular training results, training of the initial quality inspection model is completed.

在一些实施例中,所述从数据库中筛选并得到样本测试数据,根据所述样本测试数据对训练后的所述初始质检模型进行测试,并得到模型测试参数,包括:当完成对所述初始质检模型的训练时,激活所述初始质检模型的测试触发器;根据处于激活状态的所述测试触发器,从数据库中筛选并得到样本测试数据;根据所述样本测试数据,对训练后的所述初始质检模型进行测试,并得到模型测试参数。In some embodiments, filtering and obtaining sample test data from the database, testing the initial quality inspection model after training according to the sample test data, and obtaining model test parameters includes: when completing the When training the initial quality inspection model, activate the test trigger of the initial quality inspection model; filter and obtain sample test data from the database according to the test trigger in the activated state; perform training based on the sample test data The subsequent initial quality inspection model is tested and the model test parameters are obtained.

在一些实施例中,所述确定训练后的所述初始质检模型为目标质检模型之后,还包括:显示质检模型管理界面,在所述质检模型管理界面显示所述初始质检模型的配置组件,其中,所述配置组件包括数据配置组件、模型训练组件、模型测试组件和模型发布组件;响应于数据配置组件点击操作,在所述质检模型管理界面显示配置得到的样本数据,其中,所述样本数据包括样本训练数据样本测试数据;响应于模型训练组件点击操作,在所述质检模型管理界面显示模型训练参数值,所述模型训练参数值为所述初始质检模型根据所述样本训练数据进行训练后得到的;响应于模型测试组件点击操作,在所述质检模型管理界面显示模型测试参数值,所述模型测试参数值为所述初始质检模型根据所述样本测试数据进行测试后得到的,并确定测试通过后的所述初始质检模型为目标质检模型;响应于模型发布组件点击操作,在质检模型管理界面显示发布后的所述目标质检模型。In some embodiments, after determining that the trained initial quality inspection model is the target quality inspection model, the method further includes: displaying a quality inspection model management interface, and displaying the initial quality inspection model on the quality inspection model management interface. A configuration component, wherein the configuration component includes a data configuration component, a model training component, a model testing component and a model publishing component; in response to a click operation on the data configuration component, the configured sample data is displayed on the quality inspection model management interface, Wherein, the sample data includes sample training data and sample test data; in response to the click operation of the model training component, model training parameter values are displayed on the quality inspection model management interface, and the model training parameter values are based on the initial quality inspection model. The sample training data is obtained after training; in response to the click operation of the model test component, the model test parameter value is displayed on the quality inspection model management interface, and the model test parameter value is the initial quality inspection model according to the sample The test data is obtained after testing, and the initial quality inspection model after passing the test is determined to be the target quality inspection model; in response to the click operation of the model release component, the released target quality inspection model is displayed on the quality inspection model management interface .

在一些实施例中,所述在所述质检模型管理界面显示配置得到的样本数据,包括:显示质检模型配置界面,在所述质检模型配置界面显示所述样本数据的数据生成组件和数据标注组件;响应于数据生成组件点击操作,在所述质检模型配置界面的数据配置区域显示根据所述初始质检参数配置得到的样本训练数据和样本测试数据,其中,所述样本训练数据包括难例数据和常规数据;响应于数据标注组件点击操作,在所述质检模型配置界面的数据标注区域显示对所述样本训练数据的标注结果,其中,所述标注结果包括难例数据标注结果和常规数据标注结果;响应于数据配置完成操作,根据所述样本测试数据和包含标注结果的所述样本训练数据在所述质检模型管理界面显示配置得到的样本数据。In some embodiments, displaying the configured sample data on the quality inspection model management interface includes: displaying a quality inspection model configuration interface, displaying a data generation component of the sample data on the quality inspection model configuration interface, and Data annotation component; in response to the click operation of the data generation component, the sample training data and sample test data obtained according to the initial quality inspection parameter configuration are displayed in the data configuration area of the quality inspection model configuration interface, wherein the sample training data Including difficult example data and regular data; in response to the click operation of the data annotation component, the annotation results for the sample training data are displayed in the data annotation area of the quality inspection model configuration interface, wherein the annotation results include the difficult example data annotation results and conventional data annotation results; in response to the completion of the data configuration operation, the configured sample data is displayed on the quality inspection model management interface according to the sample test data and the sample training data containing the annotation results.

为实现上述目的,本申请实施例的第二方面提出了一种质检模型管理系统,所述系统包括:获取模块,用于获取初始质检模型,根据所述初始质检模型对目标物体进行质检操作,得到初始质检参数;模型训练模块,用于当监控到所述初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据所述样本训练数据对所述初始质检模型进行训练;模型测试模块,用于从数据库中筛选并得到样本测试数据,根据所述样本测试数据对训练后的所述初始质检模型进行测试,并得到模型测试参数;目标质检模型模块,用于当所述模型测试参数与预设的模型达标值匹配时,确定测试后的所述初始质检模型为目标质检模型,所述目标质检模型用于对所述目标物体重新进行质检操作。In order to achieve the above purpose, the second aspect of the embodiment of the present application proposes a quality inspection model management system. The system includes: an acquisition module, used to obtain an initial quality inspection model, and perform inspection on the target object according to the initial quality inspection model. The quality inspection operation is to obtain initial quality inspection parameters; the model training module is used to filter and obtain sample training data from the database when it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range. The training data trains the initial quality inspection model; the model testing module is used to screen and obtain sample test data from the database, test the trained initial quality inspection model according to the sample test data, and obtain the model Test parameters; target quality inspection model module, used to determine that the initial quality inspection model after testing is the target quality inspection model when the model test parameters match the preset model compliance value, and the target quality inspection model is used To re-perform the quality inspection operation on the target object.

为实现上述目的,本申请实施例的第三方面提出了一种电子设备,所述电子设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述第一方面实施例所述的方法。In order to achieve the above object, a third aspect of the embodiment of the present application proposes an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the above is implemented. The method described in the embodiment of the first aspect.

为实现上述目的,本申请实施例的第四方面提出了一种存储介质,所述存储介质为计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面实施例所述的方法。In order to achieve the above object, the fourth aspect of the embodiment of the present application proposes a storage medium. The storage medium is a computer-readable storage medium. The storage medium stores a computer program. The computer program is implemented when executed by a processor. The method described in the above embodiment of the first aspect.

本申请提出的质检模型管理方法、系统、电子设备及存储介质,其首先通过获取初始质检模型,并根据初始质检模型对目标物体进行质检操作,得到初始质检参数;接着,当监控到初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据样本训练数据对初始质检模型进行训练,这样,能够根据样本训练数据对初始质检模型进行训练,以适应不断变化的质检需求;之后,从数据库中筛选并得到样本测试数据,根据样本测试数据对训练后的初始质检模型进行测试,并得到模型测试参数;当模型测试参数与预设的模型达标值匹配时,确定测试后的初始质检模型为目标质检模型,目标质检模型用于对目标物体重新进行质检操作。可以理解的是,测试通过后的初始质检模型表示其在经过训练和测试后已经能够满足当前的质检需求,因此,可以确定测试通过后的初始质检模型为目标质检模型,并使用该目标质检模型对目标物体进行重新质检,在实际的质检模型更新过程中,只需从预设数据库中筛选并得到样本训练数据和样本测试数据的即可自动化执行质检模型的迭代更新,以降低质检模型的更新难度,提高质检模型的更新效率,进而提高质检工作效率。The quality inspection model management method, system, electronic equipment and storage medium proposed in this application first obtain the initial quality inspection model and perform quality inspection operations on the target object according to the initial quality inspection model to obtain the initial quality inspection parameters; then, when When it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range, the sample training data is screened from the database and the initial quality inspection model is trained based on the sample training data. In this way, the initial quality inspection can be performed based on the sample training data. The model is trained to adapt to the changing quality inspection needs; then, sample test data is screened from the database and sample test data is obtained. The trained initial quality inspection model is tested based on the sample test data and the model test parameters are obtained; when the model test parameters When it matches the preset model compliance value, the initial quality inspection model after testing is determined to be the target quality inspection model, and the target quality inspection model is used to re-perform quality inspection operations on the target object. It can be understood that the initial quality inspection model after passing the test means that it can meet the current quality inspection needs after training and testing. Therefore, the initial quality inspection model after passing the test can be determined as the target quality inspection model, and use The target quality inspection model re-inspects the target object. In the actual quality inspection model update process, only the sample training data and sample test data are obtained from the preset database to automatically execute the iteration of the quality inspection model. Update to reduce the difficulty of updating the quality inspection model, improve the update efficiency of the quality inspection model, and thereby improve the efficiency of quality inspection work.

附图说明Description of drawings

图1是本申请实施例提供的质检模型管理系统的应用场景示意图;Figure 1 is a schematic diagram of the application scenario of the quality inspection model management system provided by the embodiment of the present application;

图2是本申请实施例提供的质检模型管理方法的一个可选的流程图;Figure 2 is an optional flow chart of the quality inspection model management method provided by the embodiment of the present application;

图3是图2步骤S104之后的一个实现流程图;Figure 3 is an implementation flow chart after step S104 in Figure 2;

图4是图2步骤S102的一个实现流程图;Figure 4 is an implementation flow chart of step S102 in Figure 2;

图5是图2步骤S102的另一个实现流程图;Figure 5 is another implementation flow chart of step S102 in Figure 2;

图6是图2步骤S103的一个实现流程图;Figure 6 is an implementation flow chart of step S103 in Figure 2;

图7是本申请实施例提供的质检模型管理方法的一个可选的工作流配置示意图;Figure 7 is a schematic diagram of an optional workflow configuration of the quality inspection model management method provided by the embodiment of the present application;

图8是本申请实施例提供的质检模型管理方法的另一个可选的工作流配置示意图;Figure 8 is a schematic diagram of another optional workflow configuration of the quality inspection model management method provided by the embodiment of the present application;

图9是本申请实施例提供的质检模型管理的一个可选的工作流执行示意图;Figure 9 is an optional workflow execution diagram of quality inspection model management provided by the embodiment of the present application;

图10是本申请实施例提供的质检模型管理方法的一个可选的流程示意图;Figure 10 is an optional flow diagram of the quality inspection model management method provided by the embodiment of the present application;

图11是本申请实施例提供的质检模型管理方法的另一个可选的流程图;Figure 11 is another optional flow chart of the quality inspection model management method provided by the embodiment of the present application;

图12是图11步骤S602的一个实现流程图;Figure 12 is an implementation flow chart of step S602 in Figure 11;

图13是本申请实施例提供的质检模型管理的功能模块示意图;Figure 13 is a schematic diagram of the functional modules of quality inspection model management provided by the embodiment of the present application;

图14是本申请实施例提供的电子设备的硬件结构示意图。Figure 14 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the device schematic diagram and the logical sequence is shown in the flow chart, in some cases, the modules can be divided into different modules in the device or the order in the flow chart can be executed. The steps shown or described. The terms "first", "second", etc. in the description, claims, and above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific sequence or sequence.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

首先,对本申请中涉及的若干名词进行解析:First, let’s analyze some terms involved in this application:

人工智能(artificial intelligence,AI):是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门新的技术科学;人工智能是计算机科学的一个分支,人工智能企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器,该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。人工智能可以对人的意识、思维的信息过程的模拟。人工智能还是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。Artificial intelligence (AI): It is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science, artificial intelligence Intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a manner similar to human intelligence. Research in this field includes robotics, language recognition, image recognition, natural language processing, and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

机器学习工程化(Machine Learning Operations,MLOps),指的是将软件工程的最佳实践应用于机器学习模型的开发、部署和维护过程,以提高机器学习系统的可靠性、可扩展性和可重复性,是机器学习中的持续交付和自动化流水线。Machine Learning Operations (MLOps) refers to applying the best practices of software engineering to the development, deployment and maintenance process of machine learning models to improve the reliability, scalability and repeatability of machine learning systems. Nature is continuous delivery and automated pipelines in machine learning.

数据抽取、转换与加载(ETL),是一种数据集成过程,其名称代表“提取(Extract)”,“转换(Transform)”,“加载(Load)”。ETL通常用于将数据从不同的数据源(例如数据库、文件或API)提取出来,然后经过转换处理,最终将其加载到目标数据存储位置(例如数据仓库或数据湖)中。Data extraction, transformation and loading (ETL) is a data integration process, and its name stands for "Extract", "Transform", and "Load". ETL is typically used to extract data from disparate data sources (such as databases, files, or APIs), then transform it and finally load it into a target data storage location (such as a data warehouse or data lake).

消息队列(Message Queue,MQ),用于在不同的服务间进行消息传递。Message Queue (MQ) is used for message delivery between different services.

工作流(workflow),是MLOps运行的一个具体的流水线。一个工作流分为许多步骤,这些步骤前后有依赖关系,按照工作流的步骤,一步步执行下来,便完成了一次模型的更新迭代。Workflow is a specific pipeline run by MLOps. A workflow is divided into many steps, and these steps have dependencies. If you follow the steps of the workflow and execute them step by step, an update iteration of the model will be completed.

工作流服务器(workflow server),是一个用于管理和执行工作流程的服务器软件。它提供了一种集中管理和自动化执行各种业务流程的方式,可以帮助组织提高工作效率、优化业务流程,并实现任务协作和监控。Workflow server is a server software used to manage and execute workflow. It provides a way to centrally manage and automate the execution of various business processes, helping organizations improve work efficiency, optimize business processes, and enable task collaboration and monitoring.

基于此,本申请实施例提供了一种质检模型管理方法、系统、电子设备及存储介质,能够降低质检模型的更新难度,提高质检模型的更新效率。Based on this, embodiments of the present application provide a quality inspection model management method, system, electronic device and storage medium, which can reduce the difficulty of updating the quality inspection model and improve the update efficiency of the quality inspection model.

本申请实施例提供的质检模型管理方法、系统、电子设备及存储介质,具体通过如下实施例进行说明,首先描述本申请实施例中的质检模型管理系统。The quality inspection model management method, system, electronic device and storage medium provided by the embodiment of the present application are specifically described through the following embodiments. First, the quality inspection model management system in the embodiment of the present application is described.

目前,常使用质检模型来提高质检工作的处理效率,如工业质检中,常利用工业质检模型来对大量工业产品的相关数据进行分析处理,并且,工业质检模型的使用提高了工业产品的质检效率。At present, quality inspection models are often used to improve the processing efficiency of quality inspection work. For example, in industrial quality inspection, industrial quality inspection models are often used to analyze and process relevant data of a large number of industrial products. Moreover, the use of industrial quality inspection models has improved the efficiency of quality inspection work. Quality inspection efficiency of industrial products.

但是,在工业质检模型的实际运用中,会随着时间的推移出现质检输出结果与不断变化的质检需求不匹配的情况,最终导致工业质检模型不满足工业质检的精度要求。相关技术中,对工业质检模型的调整更新依赖于专业工程师的开发迭代,然而,工业质检模型的实际使用者通常为工厂人员,传统的工业质检模型更新迭代方法存在步骤多、专业性强、更新时间长等问题,使得工业质检模型的更新复杂度较高,从而造成了工业质检模型的更新效率较低,进而影响了工业质检相关工作的工作效率。However, in the actual application of industrial quality inspection models, quality inspection output results will not match the changing quality inspection requirements over time, which ultimately leads to the industrial quality inspection model not meeting the accuracy requirements of industrial quality inspection. In related technologies, the adjustment and update of industrial quality inspection models rely on the development and iteration of professional engineers. However, the actual users of industrial quality inspection models are usually factory personnel. The traditional iteration method of updating industrial quality inspection models has many steps and professionalism. Problems such as strong and long update time make the update complexity of the industrial quality inspection model high, resulting in low update efficiency of the industrial quality inspection model, which in turn affects the efficiency of industrial quality inspection related work.

基于此,本申请提出的质检模型管理方法、系统、电子设备及存储介质,其首先通过获取初始质检模型,并根据初始质检模型对目标物体进行质检操作,得到初始质检参数;接着,当监控到初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据样本训练数据对初始质检模型进行训练,这样,能够根据样本训练数据对初始质检模型进行训练,以适应不断变化的质检需求;之后,从数据库中筛选并得到样本测试数据,根据样本测试数据对训练后的初始质检模型进行测试,并得到模型测试参数;当模型测试参数与预设的模型达标值匹配时,确定测试后的初始质检模型为目标质检模型,目标质检模型用于对目标物体重新进行质检操作。可以理解的是,测试通过后的初始质检模型表示其在经过训练和测试后已经能够满足当前的质检需求,因此,可以确定测试通过后的初始质检模型为目标质检模型,并使用该目标质检模型对目标物体进行重新质检,在实际的质检模型更新过程中,只需从预设数据库中筛选并得到样本训练数据和样本测试数据的即可自动化执行质检模型的迭代更新,以降低质检模型的更新难度,提高质检模型的更新效率,进而提高质检工作效率。Based on this, the quality inspection model management method, system, electronic device and storage medium proposed in this application first obtain the initial quality inspection model and perform quality inspection operations on the target object according to the initial quality inspection model to obtain the initial quality inspection parameters; Then, when it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range, the sample training data is screened from the database and the initial quality inspection model is trained based on the sample training data. In this way, the sample training data can be used to The initial quality inspection model is trained to adapt to the changing quality inspection needs; then, the sample test data is screened from the database, and the trained initial quality inspection model is tested based on the sample test data, and the model test parameters are obtained; when When the model test parameters match the preset model compliance value, the initial quality inspection model after testing is determined to be the target quality inspection model, and the target quality inspection model is used to re-perform quality inspection operations on the target object. It can be understood that the initial quality inspection model after passing the test means that it can meet the current quality inspection needs after training and testing. Therefore, the initial quality inspection model after passing the test can be determined as the target quality inspection model, and use The target quality inspection model re-inspects the target object. In the actual quality inspection model update process, only the sample training data and sample test data are obtained from the preset database to automatically execute the iteration of the quality inspection model. Update to reduce the difficulty of updating the quality inspection model, improve the update efficiency of the quality inspection model, and thereby improve the efficiency of quality inspection work.

本申请实施例提供的质检模型管理方法、系统、电子设备及存储介质,具体通过如下实施例进行说明。The quality inspection model management method, system, electronic device and storage medium provided by the embodiments of this application are specifically explained through the following embodiments.

示例性地,如图1所示,图1是本申请实施例提供的质检模型管理系统的应用场景示意图,在质检模型管理系统(以下简称“系统”)中,可以包含用户端11和管理端12,其中,本申请实施例的质检模型管理方法和质检模型管理系统可以均运行于用户端11,或者,在用户端11运行本申请实施例提供的质检模型管理系统,并在管理端12运行本申请实施例提供的质检模型管理方法,通过远程连接的方式连接用户端11和管理端12,通过远程控制的方式,将管理端12中的质检模型管理方法应用于用户端11的质检模型管理系统中。具体按照操作人员的实际需要进行设定,在此本申请实施例不做具体限制。Illustratively, as shown in Figure 1, Figure 1 is a schematic diagram of the application scenario of the quality inspection model management system provided by the embodiment of the present application. The quality inspection model management system (hereinafter referred to as "system") may include a user terminal 11 and Management terminal 12, in which the quality inspection model management method and the quality inspection model management system of the embodiment of the present application can both be run on the user terminal 11, or the quality inspection model management system provided by the embodiment of the present application is run on the user terminal 11, and Run the quality inspection model management method provided by the embodiment of the present application on the management end 12, connect the user end 11 and the management end 12 through remote connection, and apply the quality inspection model management method in the management end 12 through remote control. In the quality inspection model management system of client 11. The settings are specifically set according to the actual needs of the operator, and are not specifically limited in the embodiments of this application.

本申请实施例中的质检模型管理方法可以通过如下实施例进行说明。The quality inspection model management method in the embodiment of the present application can be explained through the following embodiment.

在一些实施例中,本申请实施例还可以基于人工智能技术对相关的数据进行获取和处理。例如,可以通过人工智能对获取到的数据进行智能划分,得到样本难例数据和样本常规数据,并将样本难例数据和样本常规数据以样本训练数据存储于数据库中,减少了人为对大量数据的筛选划分,进一步提高了质检模型的更新效率。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。In some embodiments, the embodiments of the present application can also acquire and process relevant data based on artificial intelligence technology. For example, artificial intelligence can be used to intelligently divide the acquired data to obtain sample difficult case data and sample regular data, and store the sample difficult case data and sample regular data in the database as sample training data, reducing the need for artificial processing of large amounts of data. The screening and division further improves the update efficiency of the quality inspection model. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or digital computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、机器人技术、生物识别技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation/interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometric technology, speech processing technology, natural language processing technology, and machine learning/deep learning.

本申请实施例提供的质检模型管理方法,涉及人工智能技术领域。本申请实施例提供的质检模型管理方法可应用于终端中,也可应用于服务器端中,还可以是运行于终端或服务器端中的软件。在一些实施例中,终端可以是智能手机、平板电脑、笔记本电脑、台式计算机等;服务器端可以配置成独立的物理服务器,也可以配置成多个物理服务器构成的服务器集群或者分布式系统,还可以配置成提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN以及大数据和人工智能平台等基础云计算服务的云服务器;软件可以是实现质检模型管理方法的应用等,但并不局限于以上形式。The quality inspection model management method provided by the embodiment of this application relates to the field of artificial intelligence technology. The quality inspection model management method provided by the embodiment of the present application can be applied in a terminal or a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smartphone, a tablet, a laptop, a desktop computer, etc.; the server can be configured as an independent physical server, or as a server cluster or distributed system composed of multiple physical servers. A cloud that can be configured to provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Server; software can be an application that implements quality inspection model management methods, etc., but is not limited to the above forms.

本申请可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application may be used in a variety of general or special purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, including Distributed computing environment for any of the above systems or devices, etc. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

需要说明的是,在本申请的各个具体实施方式中,当涉及到需要根据用户信息、用户行为数据,用户历史数据以及用户位置信息等与用户身份或特性相关的数据进行相关处理时,都会先获得用户的许可或者同意。而且,对这些数据的收集、使用和处理等,都会遵守相关法律法规和标准。此外,当本申请实施例需要获取用户的敏感个人信息时,会通过弹窗或者跳转到确认页面等方式获得用户的单独许可或者单独同意,在明确获得用户的单独许可或者单独同意之后,再获取用于使本申请实施例能够正常运行的必要的用户相关数据。It should be noted that in each specific implementation of the present application, when it comes to relevant processing based on user information, user behavior data, user historical data, user location information and other data related to user identity or characteristics, the first step is to perform relevant processing. Obtain the user's permission or consent. Moreover, the collection, use and processing of this data will comply with relevant laws, regulations and standards. In addition, when the embodiment of this application needs to obtain the user's sensitive personal information, it will obtain the user's separate permission or separate consent through a pop-up window or jump to a confirmation page. After clearly obtaining the user's separate permission or separate consent, it will then Obtain necessary user-related data for normal operation of the embodiment of the present application.

基于此,本申请实施例中的质检模型管理方法可以通过如下实施例进行说明。Based on this, the quality inspection model management method in the embodiment of the present application can be explained through the following embodiment.

如图2所示,图2是本申请实施例提供的质检模型管理方法的一个可选的流程图,图2中的方法可以包括但不限于包括步骤S101至步骤S104。As shown in Figure 2, Figure 2 is an optional flow chart of the quality inspection model management method provided by the embodiment of the present application. The method in Figure 2 may include, but is not limited to, steps S101 to S104.

步骤S101,获取初始质检模型,根据初始质检模型对目标物体进行质检操作,得到初始质检参数;Step S101, obtain an initial quality inspection model, perform quality inspection operations on the target object according to the initial quality inspection model, and obtain initial quality inspection parameters;

在一些实施例中,初始质检模型可以运用在工业领域中,目标物体可以是工业制造中的产品或零部件,例如,可以是汽车工业生产中的汽车零部件。In some embodiments, the initial quality inspection model can be applied in the industrial field, and the target object can be a product or component in industrial manufacturing, for example, it can be an automobile component in automobile industry production.

在一些实施例中,初始质检模型可以是按初始质检需求生成的,示例性地,需要某批汽车发动机零件进行质检,即根据第一质检需求生成了初始质检模型,然而,随着时间的推移,产生了第二质检需求,此时,若再利用由第一质检需求生成的初始质检模型对该汽车发动机零件进行质检,是无法达到预期的质检结果的,因此,需要对初始质检模型进行更新。In some embodiments, the initial quality inspection model may be generated based on initial quality inspection requirements. For example, a certain batch of automobile engine parts needs to be quality inspected, that is, the initial quality inspection model is generated based on the first quality inspection requirements. However, As time goes by, a second quality inspection requirement arises. At this time, if the initial quality inspection model generated by the first quality inspection requirement is used to inspect the automobile engine parts, the expected quality inspection results cannot be achieved. , therefore, the initial quality inspection model needs to be updated.

在一些实施例中,对目标物体的质检可以包括外观缺陷,如裂纹、破损和变形等方面的质检,还可以包括尺寸要求,如直径、长度和平整度等方面的质检。In some embodiments, the quality inspection of the target object may include quality inspection of appearance defects, such as cracks, damage, and deformation, and may also include quality inspection of dimensional requirements, such as diameter, length, and flatness.

在一些实施例中,初始质检参数可以由初始质检模型对目标物体进行质检操作得到,如当对汽车发动机零部件的尺寸进行质检时,初始质检参数为汽车发动机零部件的尺寸数据记录,具体地,还可以包括直径数据、长度数据和平整度数据。In some embodiments, the initial quality inspection parameters can be obtained by performing quality inspection operations on the target object using the initial quality inspection model. For example, when quality inspection is performed on the dimensions of automobile engine parts, the initial quality inspection parameters are the dimensions of the automobile engine parts. The data records, in particular, may also include diameter data, length data and flatness data.

需要说明的是,初始质检模型也可以运用在需要进行质检操作的其他产品制造业,目标物体也可以根据实际情况进行调整,本申请实施例仅是以较佳实施例进行说明,并不做具体限制。It should be noted that the initial quality inspection model can also be used in other product manufacturing industries that require quality inspection operations, and the target object can also be adjusted according to the actual situation. The embodiments of this application are only explained with preferred embodiments and are not Make specific restrictions.

在一些实施例中,初始质检模型的迭代更新可以在搭载有MLOps能力的平台(以下简称“平台”)中进行,如Kubeflow、MLflow、TensorFlow Extended或DataRobot等平台。由于搭载有MLOps能力的平台通常内置了一系列适用于机器学习开发和管理的工具和组件,如模型版本控制系统、自动化部署工具、模型性能监控系统等,这些工具和组件能够使开发人员更加便捷地进行模型的开发、部署和管理,通过在搭载有MLOps能力的平台上执行初始质检模型的更新,能够提高质检模型的更新迭代效率。In some embodiments, the iterative update of the initial quality inspection model can be performed on a platform equipped with MLOps capabilities (hereinafter referred to as the "platform"), such as Kubeflow, MLflow, TensorFlow Extended, or DataRobot. Because platforms equipped with MLOps capabilities usually have a series of built-in tools and components suitable for machine learning development and management, such as model version control systems, automated deployment tools, model performance monitoring systems, etc., these tools and components can make developers more convenient The development, deployment and management of models can be carried out independently. By performing the update of the initial quality inspection model on a platform equipped with MLOps capabilities, the efficiency of the update and iteration of the quality inspection model can be improved.

步骤S102,当监控到初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据样本训练数据对初始质检模型进行训练;Step S102, when it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range, sample training data is obtained from the database, and the initial quality inspection model is trained based on the sample training data;

在一些实施例中,预设的质检参数范围实际上即质检需求,质检参数范围可以根据实际需要进行调整,并可以将预设的质检参数范围输入至搭载有MLOps能力的平台中。其中,预设的质检参数范围可以由相关操作人员定时更新得到。In some embodiments, the preset quality inspection parameter range is actually the quality inspection requirement. The quality inspection parameter range can be adjusted according to actual needs, and the preset quality inspection parameter range can be input into a platform equipped with MLOps capabilities. . Among them, the preset quality inspection parameter range can be updated regularly by relevant operators.

在一些实施例中,需要根据初始质检参数的类别在数据库中筛选得到对应的样本训练数据。示例性地,使用初始质检模型对汽车发动零部件进行尺寸质检时,输出的是直径质检结果,此时需要对数据库中“尺寸-直径”这一类别的数据进行数据筛选,以得到训练初始质检模型的样本训练数据。In some embodiments, it is necessary to filter the database according to the category of the initial quality inspection parameter to obtain corresponding sample training data. For example, when using the initial quality inspection model to conduct dimensional quality inspection of automobile engine parts, the output is the diameter quality inspection result. At this time, it is necessary to filter the data of the "size-diameter" category in the database to obtain Sample training data for training the initial quality inspection model.

在一些实施例中,平台中可以部署有数据库,或者,可以通过通信连接部署有数据库的服务器来获取样本数据,其中,样本数据包括样本训练数据和样本测试数据。In some embodiments, a database may be deployed in the platform, or sample data may be obtained through a communication connection to a server where the database is deployed, where the sample data includes sample training data and sample test data.

在一些实施例中,平台中可以包括用于实时监控生成的初始质检参数的控制器,当初始质检参数不在预设的质检参数范围内时,可以自动触发样本训练数据的获取,或者,可以发出提示警报使相关操作人员确认是否需要更新初始质检模型。In some embodiments, the platform may include a controller for real-time monitoring of the generated initial quality inspection parameters. When the initial quality inspection parameters are not within the preset quality inspection parameter range, the acquisition of sample training data may be automatically triggered, or , a prompt alarm can be issued to allow relevant operators to confirm whether the initial quality inspection model needs to be updated.

在一些实施例中,数据库中的数据可以定时进行采集更新,例如,相关操作人员可以依据经验定时更新数据库中的数据,或者,可以通过更新脚本从指定数据源处获取得到。In some embodiments, the data in the database can be collected and updated regularly. For example, relevant operators can regularly update the data in the database based on experience, or can obtain it from a designated data source through an update script.

在一些实施例中,可以通过获取多组样本训练数据对初始质检模型分别进行训练,得到多个不同训练后的初始质检模型。In some embodiments, the initial quality inspection model can be trained separately by acquiring multiple sets of sample training data to obtain multiple different trained initial quality inspection models.

在一些实施例中,在完成对初始质检模型的训练后,还可以对训练后的初始质检模型进行初步评估,常用的评估手段包括使用混淆矩阵、特征曲线(Receiver OperatingCharacteristic Curve,ROC)和特征曲线下的面积(Area Under the Curve,AUC)进行评估等手段,且评估的度量指标通常包括准确率、精确率、召回率、F1分数等。In some embodiments, after completing the training of the initial quality inspection model, a preliminary evaluation of the trained initial quality inspection model can also be performed. Commonly used evaluation methods include using confusion matrix, characteristic curve (Receiver Operating Characteristic Curve, ROC) and Area under the curve (AUC) is used to evaluate the characteristics, and the evaluation metrics usually include accuracy, precision, recall, F1 score, etc.

步骤S103,从数据库中筛选并得到样本测试数据,根据样本测试数据对训练后的初始质检模型进行测试,并得到模型测试参数;Step S103, filter and obtain sample test data from the database, test the trained initial quality inspection model based on the sample test data, and obtain model test parameters;

在一些实施例中,在完成对初始质检模型的训练后,需要对训练后的初始质检模型进行测试,并能够得到模型测试参数,以确定训练后的初始质检模型是否达到期望质检要求。In some embodiments, after completing the training of the initial quality inspection model, the trained initial quality inspection model needs to be tested and the model test parameters can be obtained to determine whether the trained initial quality inspection model meets the expected quality inspection. Require.

在一些实施例中,若在对初始质检模型训练时,产生了多组样本训练数据下不同训练版本的初始质检模型,可以分别对训练后得到的多组不同初始质检模型可以进行测试。In some embodiments, if when training the initial quality inspection model, different training versions of the initial quality inspection model under multiple sets of sample training data are generated, the multiple sets of different initial quality inspection models obtained after training can be tested separately. .

在一些实施例中,对训练后的初始质检模型进行测试可以包括A/B测试和线上指标观测。其中,A/B测试指的是对训练后的初始质检模型进行比较,以确定哪一训练后的初始质检模型表现更好。线上指标观测指的是运行A/B测试下的初始质检模型,并对比A/B测试间的指标,比如模型精确度、召回率等,通过线上的实时运行综合判断哪一个版本的模型更优。In some embodiments, testing the trained initial quality inspection model may include A/B testing and online indicator observation. Among them, A/B testing refers to comparing the initial quality inspection models after training to determine which initial quality inspection model after training performs better. Online indicator observation refers to running the initial quality inspection model under A/B testing, and comparing the indicators between A/B tests, such as model accuracy, recall rate, etc., and comprehensively judging which version is available through online real-time operation. The model is better.

在一些实施例中,为保证样本测试数据的真实性,从数据库中获取得到的样本测试数据可以是随机生成的,这样,能够使得样本测试数据更具有代表性,以增强质检模型的鲁棒性和稳定性。In some embodiments, in order to ensure the authenticity of the sample test data, the sample test data obtained from the database can be randomly generated. In this way, the sample test data can be made more representative to enhance the robustness of the quality inspection model. sex and stability.

步骤S104,当模型测试参数与预设的模型达标值匹配时,确定测试后的初始质检模型为目标质检模型,目标质检模型用于对目标物体重新进行质检操作。Step S104: When the model test parameters match the preset model compliance value, the initial quality inspection model after testing is determined to be the target quality inspection model, and the target quality inspection model is used to re-perform quality inspection operations on the target object.

在一些实施例中,预先设定有模型达标值,其中,模型达标值用于表示更新后的初始质检模型是否达到预期的质检效果。In some embodiments, a model compliance value is preset, where the model compliance value is used to indicate whether the updated initial quality inspection model achieves the expected quality inspection effect.

在一些实施例中,可以将对初始质检模型测试得到模型测试参数与预设的模型达标值进行对比,若模型测试参数落入预设的模型达标值范围内,表示经过训练测试后的初始质检模型符合模型预期值,则确定该更新后的初始质检模型为目标质检模型。使用该目标质检模型对目标物体进行重新的质检操作,以完成对目标物体地精确质检工作。In some embodiments, the model test parameters obtained from the initial quality inspection model test can be compared with the preset model compliance values. If the model test parameters fall within the preset model compliance value range, it means that the initial model test parameters after training and testing If the quality inspection model meets the expected value of the model, the updated initial quality inspection model is determined to be the target quality inspection model. Use the target quality inspection model to perform a new quality inspection operation on the target object to complete accurate quality inspection of the target object.

需要说明的是,在对初始质检模型进行更新的过程中,初始质检模型质检精度的下降可以由平台进行自动监测,对应的样本训练数据和样本测试数据也为预先在数据库中配置好的,不需要专业人员人工挖掘并筛选数据,在经过测试后,选取测试效果最优的质检模型作为目标质检模型。可以理解的是,即使是专业性不强的工厂操作人员,也可以自主完成质检模型地更新,提高了质检模型的更新效率。并且,更新确定后的目标质检模型立即能够运用到目标物体的质检工作中,如此,极大地提高了质检工作地效率,若在实际运用中再次发生质检精度下降的问题,仍可以再次对质检模型进行更新操作。It should be noted that during the process of updating the initial quality inspection model, the decline in quality inspection accuracy of the initial quality inspection model can be automatically monitored by the platform, and the corresponding sample training data and sample test data are also pre-configured in the database. It does not require professionals to manually mine and filter data. After testing, the quality inspection model with the best test effect is selected as the target quality inspection model. It is understandable that even factory operators who are not very professional can complete the update of the quality inspection model independently, which improves the efficiency of the update of the quality inspection model. Moreover, the updated and determined target quality inspection model can be immediately applied to the quality inspection of the target object. This greatly improves the efficiency of the quality inspection work. If the problem of quality inspection accuracy decline occurs again in actual use, it can still be used. Update the quality inspection model again.

如图3所示,图3是图2步骤S104之后的一个实现流程图,在一些实施例中,步骤S104之后还可以包括步骤S201至步骤S202:As shown in Figure 3, Figure 3 is an implementation flow chart after step S104 in Figure 2. In some embodiments, steps S201 to S202 may also be included after step S104:

步骤S201,当模型测试参数与预设的模型达标值不匹配时,重新从数据库中筛选并得到样本训练数据和样本测试数据;Step S201, when the model test parameters do not match the preset model compliance value, re-screen the database and obtain sample training data and sample test data;

在一些实施例中,若模型测试参数与预设的模型达标值不匹配,表示初始质检模型的训练没有达到预期的效果,需要重新从数据库中筛选并得到样本训练数据和样本测试数据以对初始质检模型进行再次训练与测试。其中,重新训练时所筛选得到的样本训练数据应与之前训练时所采用的样本训练数据不同,样本测试数据可以为同一数据,以更好地检测训练后的初始质检模型的训练效果。In some embodiments, if the model test parameters do not match the preset model compliance value, it means that the training of the initial quality inspection model has not achieved the expected results, and it is necessary to re-screen the database and obtain sample training data and sample test data to correct the problem. The initial quality inspection model is trained and tested again. Among them, the sample training data screened during retraining should be different from the sample training data used in previous training, and the sample test data can be the same data to better detect the training effect of the initial quality inspection model after training.

在一些实施例中,当模型测试参数与预设的模型达标值不匹配时,还可以根据模型测试参数与预设的模型达标值的偏差值来筛选得到样本训练数据,例如,当模型测试参数与预设的模型达标值的偏差值范围较小时,表示更新后的质检模型可能存在过拟合问题,此时选取第一训练数据,第一训练数据中包括了多样化的样本训练数据;当模型测试参数与预设的模型达标值的偏差值范围较大时,表示更新后的质检模型可能质量不高,此时选取第二训练数据,第二训练数据中包括了高质量的样本训练数据,这样,能够对初始质检模型进行更有针对性地模型训练。In some embodiments, when the model test parameters do not match the preset model compliance value, the sample training data can also be filtered based on the deviation value between the model test parameters and the preset model compliance value. For example, when the model test parameters When the deviation value range from the preset model standard value is small, it means that the updated quality inspection model may have an overfitting problem. At this time, the first training data is selected, and the first training data includes diverse sample training data; When the deviation range between the model test parameters and the preset model compliance value is large, it means that the quality of the updated quality inspection model may not be high. At this time, the second training data is selected, and the second training data includes high-quality samples. training data, so that the initial quality inspection model can be trained more specifically.

步骤S202,根据重新确定的样本训练数据和样本测试数据,重新对初始质检模型进行更新训练和更新测试,并得到更新后的模型测试参数,当模型测试参数与预设的模型达标值匹配时,确定更新后的初始质检模型为目标质检模型Step S202: Based on the redetermined sample training data and sample test data, re-train and update the initial quality inspection model and obtain updated model test parameters. When the model test parameters match the preset model compliance value , determine the updated initial quality inspection model as the target quality inspection model

在一些实施例中,在重新确定样本训练数据和样本测试数据后,可以利用该样本训练数据和样本测试数据对初始质检模型进行重新训练与测试,如果重新训练和测试后得到的更新模型测试参数仍与预设的模型达标值不匹配,则需要重复执行步骤S201至步骤S202,直至模型测试参数与预设的模型达标值匹配时,得到目标质检模型。In some embodiments, after the sample training data and sample test data are re-determined, the sample training data and sample test data can be used to retrain and test the initial quality inspection model. If the updated model obtained after retraining and testing is tested If the parameters still do not match the preset model compliance value, steps S201 to S202 need to be repeatedly executed until the model test parameters match the preset model compliance value, and the target quality inspection model is obtained.

如图4所示,图4是图2步骤S102的一个实现流程图,在一些实施例中,步骤S102可以包括步骤S301至步骤S302:As shown in Figure 4, Figure 4 is an implementation flow chart of step S102 in Figure 2. In some embodiments, step S102 may include steps S301 to step S302:

步骤S301,解析初始质检参数,得到初始质检参数的多个参数类别,每一参数类别包括对应的置信度,置信度用于表征初始质检模型属于参数类别的可信程度;Step S301: Analyze the initial quality inspection parameters to obtain multiple parameter categories of the initial quality inspection parameters. Each parameter category includes a corresponding confidence level. The confidence level is used to represent the degree of credibility of the initial quality inspection model belonging to the parameter category;

在一些实施例中,当初始质检参数不在预设的质检参数范围内时,可以对该初始质检参数进行解析,解析的目的是为了得到初始质检参数的参数类别。示例性地,当初始质检模型为图像分类模型时,会输出一个结果列表,结果列表中中包括了每一质检目标对象的参数类别,以及该参数类别对应的置信度。In some embodiments, when the initial quality inspection parameters are not within the preset quality inspection parameter range, the initial quality inspection parameters can be parsed. The purpose of the analysis is to obtain the parameter category of the initial quality inspection parameters. For example, when the initial quality inspection model is an image classification model, a result list will be output. The result list includes the parameter category of each quality inspection target object and the confidence level corresponding to the parameter category.

在一些实施例中,若得到的初始质检参数为参数代码,可以解析该代码并得到对应的参数类别。In some embodiments, if the obtained initial quality inspection parameter is a parameter code, the code can be parsed and the corresponding parameter category can be obtained.

步骤S302,当置信度不在预设的质检参数范围内时,根据置信度确定从数据库中筛选的样本训练数据的筛选类别,并根据筛选类别,从数据库中选取对应的样本训练数据。Step S302: When the confidence level is not within the preset quality inspection parameter range, determine the screening category of the sample training data screened from the database based on the confidence level, and select the corresponding sample training data from the database based on the screening category.

在一些实施例中,当解析得到的置信度不在预设的质检参数范围内时,即可确定初始质检模型的质检精度下降,需要对该初始质检模型进行训练更新,而从数据库中选取样本训练数据的依据就是初始质检参数,具体地,根据参数类别确定从数据库中筛选的样本训练数据,并根据置信度确定所筛选的样本训练数据的样本数量等。In some embodiments, when the confidence obtained by analysis is not within the preset quality inspection parameter range, it can be determined that the quality inspection accuracy of the initial quality inspection model has declined, and the initial quality inspection model needs to be trained and updated, and the initial quality inspection model needs to be updated from the database. The basis for selecting sample training data is the initial quality inspection parameters. Specifically, the sample training data screened from the database is determined according to the parameter category, and the sample number of the screened sample training data is determined based on the confidence level.

在一些实施例中,样本训练数据包括难例数据,其中,难例数据可以通过SQL进行筛选,也可以用ETL进行筛选,或者可以提供一个筛选程序,具体使用哪个策略跟用户的具体场景相关。In some embodiments, the sample training data includes difficult case data, where the difficult case data can be filtered through SQL or ETL, or a screening program can be provided, and which strategy to use is related to the user's specific scenario.

如图5所示,图5是图2步骤S102的另一个实现流程图,在一些实施例中,步骤S102还可以包括步骤S401至步骤S403:As shown in Figure 5, Figure 5 is another implementation flow chart of step S102 in Figure 2. In some embodiments, step S102 may also include steps S401 to step S403:

步骤S401,当从数据库中确定样本训练数据时,激活初始质检模型的训练触发器;Step S401, when the sample training data is determined from the database, activate the training trigger of the initial quality inspection model;

在一些实施例中,样本训练数据包括难例数据和常规数据,其中,常规数据为初始质检模型在实际质检过程中常遇到的数据,难例数据为初始质检模型在实际质检过程中不常遇到的数据。In some embodiments, the sample training data includes hard case data and regular data, where the regular data is data that the initial quality inspection model often encounters during the actual quality inspection process, and the hard case data is the data that the initial quality inspection model often encounters during the actual quality inspection process. data that is not commonly encountered in .

在一些实施例中,还设置有训练触发器(Trigger),当完成从数据库中确定样本训练数据时,可以激活初始质检模型的训练触发器。In some embodiments, a training trigger (Trigger) is also provided. When the sample training data is determined from the database, the training trigger of the initial quality inspection model can be activated.

步骤S402,根据处于激活状态的训练触发器,将难例数据输入至初始质检模型中,得到难例训练结果,并将常规数据输入至初始质检模型中,得到常规训练结果;Step S402, according to the training trigger in the activated state, input the difficult case data into the initial quality inspection model to obtain the difficult case training results, and input the regular data into the initial quality inspection model to obtain the regular training results;

在一些实施例中,当训练触发器出于激活状态时,即可确定需要根据获取到的样本训练数据对初始质检模型进行训练,首先可以将难例数据输入初始质检模型中,因为难例数据通常代表着极端或边界情况下的数据,对于初始质检模型的训练起到关键作用,能够提高模型的精度和泛化能力。In some embodiments, when the training trigger is in the activated state, it can be determined that the initial quality inspection model needs to be trained based on the obtained sample training data. First, the difficult example data can be input into the initial quality inspection model, because it is difficult to Example data usually represents data under extreme or boundary conditions and plays a key role in the training of the initial quality inspection model, which can improve the accuracy and generalization ability of the model.

在一些实施例中,难例数据可以包括边界数据、特殊格式数据、异常数据和极端数据等。In some embodiments, hard case data may include boundary data, special format data, abnormal data, extreme data, etc.

在一些实施例中,在完成了难例数据的测试后,通常还需要根据常规数据对初始质检模型进行测试,以观察训练后的初始质检模型的普遍数据处理能力。In some embodiments, after completing the test on the difficult example data, it is usually necessary to test the initial quality inspection model based on regular data to observe the general data processing capabilities of the trained initial quality inspection model.

在一些实施例中,将常规数据输入至初始质检模型后,初始质检模型可以根据输入的常规数据进行训练,并得到常规训练结果,通常,难例训练结果与常规训练结果类似的,都包括训练结果正确和训练结果错误两种情况,跟难例训练结果和常规训练结果,可以决定是否需要增加样本训练数据。In some embodiments, after inputting regular data into the initial quality inspection model, the initial quality inspection model can be trained based on the input regular data and obtain regular training results. Generally, the hard case training results are similar to the regular training results. Including two situations: correct training results and wrong training results, as well as difficult example training results and regular training results, it can be decided whether it is necessary to increase sample training data.

步骤S403,根据难例训练结果和常规训练结果,完成对初始质检模型的训练。Step S403: Complete the training of the initial quality inspection model based on the difficult example training results and the regular training results.

在一些实施例中,难例数据可以是难例数据集,根据该难例数据集对初始质检模型进行训练可以得到多个难例训练结果,并可以设定难例训练结果的达标百分比,如设定难例数据集达到70%的正确率即为难例训练通过。In some embodiments, the difficult example data may be a difficult example data set. Training the initial quality inspection model based on the difficult example data set can obtain multiple difficult example training results, and the target percentage of the difficult example training results can be set. If the accuracy rate of setting the difficult example data set reaches 70%, the difficult example training is passed.

在一些实施例中,若难例训练不通过时,可以无需进行常规数据的训练,因为初始质检模型在不满足极端数据训练的情况下,表示其对于难例数据对应的目标物体的质检仍存在质检误差,而在质检尤其是工业质检活动中,难例数据的训练是十分关键的,因此,如若难例训练不通过,可以直接重新从数据库中获取样本训练数据和样本训练数据,不需要执行当前样本训练数据的训练。如此,能够进一步提高质检模型的更新效率。In some embodiments, if the difficult example training fails, there is no need to perform training on regular data, because the initial quality inspection model represents its quality inspection of the target object corresponding to the difficult example data without meeting the requirements of extreme data training. There are still quality inspection errors, and in quality inspection, especially industrial quality inspection activities, the training of difficult example data is very critical. Therefore, if the difficult example training fails, the sample training data and sample training can be directly re-obtained from the database data, there is no need to perform training on the current sample training data. In this way, the update efficiency of the quality inspection model can be further improved.

如图6所示,图6是图2步骤S103的一个实现流程图,在一些实施例中,步骤S103还可以包括步骤S501至步骤S503:As shown in Figure 6, Figure 6 is an implementation flow chart of step S103 in Figure 2. In some embodiments, step S103 may also include steps S501 to S503:

步骤S501,当完成对初始质检模型的训练时,激活初始质检模型的测试触发器;Step S501, when the training of the initial quality inspection model is completed, activate the test trigger of the initial quality inspection model;

在一些实施例中,设置有测试触发器,当完成从数据库中确定样本训练数据时,可以激活初始质检模型的测试触发器。In some embodiments, a test trigger is provided, and when the sample training data is determined from the database, the test trigger of the initial quality inspection model can be activated.

步骤S502,根据处于激活状态的测试触发器,从数据库中筛选并得到样本测试数据;Step S502, filter and obtain sample test data from the database according to the activated test trigger;

在一些实施例中,当测试触发器出于激活状态时,即可确定需要进行初始质检模型的测试。与初始质检模型的训练过程类似的,需要首先从数据库中确定初始质检模型的样本测试数据。通过测试触发器,触发对样本测试数据的获取,避免了传统质检模型更新中,需要人工等待并监测到初始质检模型的训练结束后,并手动开启初始质检模型测试的繁琐步骤,进一步提高了质检模型的更新效率。In some embodiments, when the test trigger is in the activated state, it can be determined that the initial quality inspection model needs to be tested. Similar to the training process of the initial quality inspection model, the sample test data of the initial quality inspection model needs to be determined from the database first. Through the test trigger, the acquisition of sample test data is triggered, which avoids the tedious steps of manually waiting and monitoring the training of the initial quality inspection model and manually starting the initial quality inspection model test during traditional quality inspection model updates. Further, Improved the efficiency of updating quality inspection models.

在一些实施例中,样本测试数据也可以是相关操作人员实时输入的,具体可以依据实际情况进行设定,本申请不做具体的限制。In some embodiments, the sample test data can also be input in real time by relevant operators, and can be set according to the actual situation. This application does not impose specific restrictions.

步骤S503,根据样本测试数据,对训练后的初始质检模型进行测试,并得到模型测试参数。Step S503: Test the trained initial quality inspection model based on the sample test data, and obtain model test parameters.

在一些实施例中,将获取到的样本测试数据输入训练后的初始质检模型中,用以执行对训练后初始质检模型的测试,测试完成后,可以得到该初始质检模型的模型测试参数。In some embodiments, the obtained sample test data is input into the trained initial quality inspection model to perform testing of the trained initial quality inspection model. After the test is completed, the model test of the initial quality inspection model can be obtained. parameter.

在一些实施例中,模型测试参数用于与预设的模型达标值进行对比,模型达标值可以是一个范围,若得到的模型测试参数值不落入该范围内,则表示初始质检模型的测试不通过,需要重新获取样本训练数据和样本测试数据进行模型更新操作。In some embodiments, the model test parameters are used to compare with a preset model compliance value. The model compliance value can be a range. If the obtained model test parameter value does not fall within this range, it represents the initial quality inspection model. If the test fails, you need to re-obtain sample training data and sample test data to update the model.

如图7所示,图7是本申请实施例提供的质检模型管理方法的一个可选的工作流配置示意图,为提高质检模型的更新效率,可以将在搭载有MLOps的相关平台中将相关更新步骤进行逻辑连接,并形成可视化的工作流步骤,并且,平台包括管理端和用户端,管理端负责对工作流进行配置,用户端负责对工作流进行展示和运行,管理端包括管理界面,用户端包括用户界面。As shown in Figure 7, Figure 7 is an optional workflow configuration diagram of the quality inspection model management method provided by the embodiment of the present application. In order to improve the update efficiency of the quality inspection model, the relevant platform equipped with MLOps can be Relevant update steps are logically connected and form a visual workflow step. Furthermore, the platform includes a management end and a user end. The management end is responsible for configuring the workflow, the user end is responsible for displaying and running the workflow, and the management end includes a management interface. , the client includes the user interface.

示例性地,图7中左边区域为可视化区,右边区域为配置区,可视化区的工作流可以包括多个子工作流,每一子工作流中均包括了以下步骤:难例筛选-难例标注-数据集-训练评估-测试,每一子工作流的关键步骤即为难例数据的选取,因此,配置区用于为每一子工作流进行难例数据的筛选与标注。具体地,配置区的可视化表用于选择具体的可视化显示方式;筛选范围用于表示难例数据的筛选范围;模型名称用于表示选择需要进行更新迭代的初始质检模型;标注类型用于选择需要标注的类型;标签模版用于调整可视化区的标签样式。其中,可视化区每一工作流节点后均带有判断标识,若该节点配置通过则判断标识显示配置成功状态,若该节点配置不通过则判断标识显示配置失败状态。需要说明的是,管理端所配置的工作流需要用户端设置具体的参数后才能执行。For example, the left area in Figure 7 is the visualization area, and the right area is the configuration area. The workflow in the visualization area can include multiple sub-workflows, and each sub-workflow includes the following steps: Difficult case screening - Difficult case labeling -Data set-training evaluation-testing. The key step of each sub-workflow is the selection of difficult example data. Therefore, the configuration area is used to screen and label difficult example data for each sub-workflow. Specifically, the visualization table in the configuration area is used to select a specific visualization display method; the filtering range is used to represent the filtering range of difficult case data; the model name is used to represent the selection of the initial quality inspection model that needs to be updated and iterated; the annotation type is used to select The type of label required; the label template is used to adjust the label style of the visualization area. Among them, there is a judgment mark after each workflow node in the visualization area. If the node configuration passes, the judgment mark displays the configuration success status. If the node configuration fails, the judgment mark displays the configuration failure status. It should be noted that the workflow configured on the management side requires the user to set specific parameters before it can be executed.

如图8所示,图8是本申请实施例提供的质检模型管理方法的另一个可选的工作流配置示意图,在搭载有MLOps的相关平台的管理端完成质检模型的工作流配置后,可以在用户界面显示质检模型管理的对应工作流配置,其中,模型的训练评估和测试均在图8中的“模型评估”区域显示。通过管理端事先配置好的工作流逻辑,相关操作人员只需在用户端点击各步骤对应的组件按钮,即可完成质检模型地自动化更新操作,在初始质检模型的质检精度下降时,无需人工手动获取相关数据并逐一输入待更新的初始质检模型中,降低了操作的专业性,并提高了质检模型的更新效率,这样,操作人员能够立即更新质检模型,并在得到更新后的质检模型后直接投入使用,进而提高了相关质检工作的效率。As shown in Figure 8, Figure 8 is another optional workflow configuration diagram of the quality inspection model management method provided by the embodiment of the present application. After the workflow configuration of the quality inspection model is completed on the management end of the relevant platform equipped with MLOps , the corresponding workflow configuration of quality inspection model management can be displayed on the user interface, in which the training evaluation and testing of the model are displayed in the "Model Evaluation" area in Figure 8. Through the pre-configured workflow logic on the management side, relevant operators only need to click the component buttons corresponding to each step on the user side to complete the automated update operation of the quality inspection model. When the quality inspection accuracy of the initial quality inspection model decreases, There is no need to manually obtain relevant data and input it one by one into the initial quality inspection model to be updated, which reduces the professionalism of the operation and improves the update efficiency of the quality inspection model. In this way, the operator can immediately update the quality inspection model and get the update after The final quality inspection model is directly put into use, thereby improving the efficiency of related quality inspection work.

如图9所示,图9是本申请实施例提供的质检模型管理的一个可选的工作流执行示意图,由于管理端的配置和用户端的运行、展示这几个功能都是由workflow-server这个后端服务来提供,因此,在平台管理端配置完成工作流后,可以在用户端(用户端-web)配置具体的参数,并接着通过workflow-server这个后端服务执行具体的操作步骤,详细流程如下:As shown in Figure 9, Figure 9 is an optional workflow execution diagram for quality inspection model management provided by the embodiment of this application. Since the configuration of the management end and the operation and display of the user end are all controlled by the workflow-server The back-end service is provided. Therefore, after configuring the workflow on the platform management side, you can configure specific parameters on the user side (user-web), and then perform specific operation steps through the back-end service of workflow-server. Details The process is as follows:

1、在平台管理端的管理界面对工作流进行配置,配置工作包括创建MLOps工作流模板、配置虚拟数据集和推理服务(即配置样本训练集以及样本训练集的训练方式)、实例化MLOps工作以及生成工作流配置;1. Configure the workflow in the management interface of the platform management side. The configuration work includes creating MLOps workflow templates, configuring virtual data sets and inference services (that is, configuring sample training sets and training methods of sample training sets), instantiating MLOps work, and Generate workflow configuration;

2、在用户端-web开启一个更新迭代,运行工作流某个步骤,具体包括获取平台管理端配置的MLOps工作流配置、根据工作流配置展示实例化MLOps步骤以及运行MLOps数据集;2. Start an update iteration on the client-web and run a certain step of the workflow, including obtaining the MLOps workflow configuration configured on the platform management side, displaying the instantiated MLOps steps according to the workflow configuration, and running the MLOps data set;

3、根据用户端-web的操作,在workflow-server后端服务中找到对应的触发器(Trigger),并触发对应的Component逻辑;3. According to the operation of the client-web, find the corresponding trigger (Trigger) in the workflow-server back-end service and trigger the corresponding Component logic;

4、Component会调用对应的服务来完成相关逻辑,完成之后,发送事件到MessageQueue(MQ);4. Component will call the corresponding service to complete the relevant logic. After completion, send the event to MessageQueue (MQ);

5、workflow-controller从MQ中获取事件,存储当前步骤的执行结果,其中,可以对运行结果进行持久化操作,并将工作流前进到下一个工作流步骤。5. The workflow-controller obtains events from MQ and stores the execution results of the current step. The execution results can be persisted and the workflow can be advanced to the next workflow step.

其中,Trigger是当用户点击某个工作流步骤组件时,由Trigger发起执行服务;Component是具体执行某个步骤的服务,比如难例筛选、训练、评估等;Controller用于执行工作流状态的流转,当某个步骤完成之后,负责存储这个步骤的输出结果,扭转当前步骤的状态,并且前进到下一个步骤。Among them, Trigger is the execution service initiated by Trigger when the user clicks on a certain workflow step component; Component is the service that specifically executes a certain step, such as difficult case screening, training, evaluation, etc.; Controller is used to execute the flow of workflow status. , when a step is completed, it is responsible for storing the output of this step, reversing the status of the current step, and advancing to the next step.

另外,为更清晰地了解本申请上述实施例,以下将做进一步地示例说明。In addition, in order to understand the above-mentioned embodiments of the present application more clearly, further examples will be provided below.

如图10所示,图10是本申请实施例提供的质检模型管理方法的一个可选的流程示意图,以下是该示例的具体步骤说明:As shown in Figure 10, Figure 10 is an optional flow diagram of the quality inspection model management method provided by the embodiment of the present application. The following is a specific step description of this example:

步骤1,服务部署,首先将初质检始模型部署到服务场景中,初始质检模型会对初始质检参数数据进行推理,并产生回传数据;Step 1, service deployment, first deploy the initial quality inspection model to the service scenario. The initial quality inspection model will reason about the initial quality inspection parameter data and generate return data;

步骤2,数据分析,从回传数据中,可以进行统计相关的模型指标,以确定模型效果是否下降,如果下降,则需要进行模型迭代,具体地,可以通过模型指标统计来判断模型效果下降,对于工业质检领域来讲,通过实时采集产线数据,可以统计出模型的精度,缺陷检出率,假点去除率,直通率,等指标,并通过可视化的方式来判断指标是否下降;Step 2, data analysis. From the returned data, statistics related model indicators can be used to determine whether the model effect has declined. If it has declined, model iteration is required. Specifically, model indicator statistics can be used to determine whether the model effect has declined. For the field of industrial quality inspection, by collecting production line data in real time, the accuracy of the model, defect detection rate, false point removal rate, through rate, and other indicators can be statistically calculated, and whether the indicators have declined can be judged through visualization;

步骤3,模型迭代分为以下步骤:难例筛选、数据标注、训练、评估、A/B测试、线上指标观测、灰度发布等,其中,模型迭代可运行多次,并选择最优的目标质检模型替换线上运行的初始质检模型。Step 3. Model iteration is divided into the following steps: difficult case selection, data annotation, training, evaluation, A/B testing, online indicator observation, grayscale release, etc. Among them, model iteration can be run multiple times and the optimal one is selected. The target quality inspection model replaces the initial quality inspection model running online.

如图11所示,图11是本申请实施例提供的质检模型管理方法的另一个可选的流程图,图11中的方法可以包括但不限于包括步骤S601至步骤S605。As shown in Figure 11, Figure 11 is another optional flow chart of the quality inspection model management method provided by the embodiment of the present application. The method in Figure 11 may include, but is not limited to, steps S601 to S605.

步骤S601,显示质检模型管理界面,在质检模型管理界面显示初始质检模型的配置组件,其中,配置组件包括数据配置组件、模型训练组件、模型测试组件和模型发布组件;Step S601, display the quality inspection model management interface, and display the configuration components of the initial quality inspection model on the quality inspection model management interface, where the configuration components include a data configuration component, a model training component, a model testing component and a model publishing component;

在一些实施例中,为进一步提高质检模型的更新效率,可以通过可视化的方式显示质检模型的更新操作步骤。In some embodiments, in order to further improve the efficiency of updating the quality inspection model, the update operation steps of the quality inspection model can be displayed in a visual manner.

如图9所示,其中,数据配置组件包括难例筛选组件、难例标注组件和数据集组件。其中,点击难例筛选组件,可以显示选取难例筛选的开始时间和完成时间,不同的开始时间和结束时间对应了多组不同的难例数据;点击难例标注组件,可以显示所选难例数据对应的难例标注,难例标注可以基于人工智能模型进行标注,或者,由人工进行手动标注;点击数据集组件,可以显示选取的一组或多组难例数据,并且,还可以包括通用的常规数据。As shown in Figure 9, the data configuration component includes a difficult case filtering component, a difficult case labeling component, and a data set component. Among them, click on the difficult case screening component to display the start time and completion time of the selected difficult case screening. Different start times and end times correspond to multiple different sets of difficult case data; click on the difficult case labeling component to display the selected difficult cases. Difficult example annotations corresponding to the data. Difficult example annotations can be annotated based on artificial intelligence models, or manually annotated by humans; click on the data set component to display one or more selected groups of difficult example data, and can also include general regular data.

在一些实施例中,由于相关样本数据是预先设置并存储在数据库中的,无需操作人员手动选取整合,同时,相关平台能够根据选取到的样本数据执行自动化测试,即搭载MLOps能力的平台可以进行自动数据采集,自动模型监控,并通过预置的难例筛选方法和预置的模型训练评估方法使得相关操作人员只需简单点击相关组件,并选择开始迭代组件,即可自动完成初始质检模型的更新,极大地简化了模型更新的操作步骤,提高了质检模型的更新效率。In some embodiments, since the relevant sample data is preset and stored in the database, there is no need for operators to manually select and integrate it. At the same time, the relevant platform can perform automated testing based on the selected sample data, that is, a platform equipped with MLOps capabilities can perform Automatic data collection, automatic model monitoring, and through preset difficult case screening methods and preset model training and evaluation methods allow relevant operators to simply click on relevant components and select to start iterating components to automatically complete the initial quality inspection model The update greatly simplifies the operation steps of model update and improves the efficiency of quality inspection model update.

步骤S602,响应于数据配置组件点击操作,在质检模型管理界面显示配置得到的样本数据,其中,样本数据包括样本训练数据样本测试数据;Step S602, in response to the click operation of the data configuration component, display the configured sample data on the quality inspection model management interface, where the sample data includes sample training data and sample test data;

在一些实施例中,在点击数据配置组件后,可以在质检模型管理界面显示配置得到的样本数据。示例性地,可以在图8的数据集组件下方区域显示样本训练数据和样本测试数据。In some embodiments, after clicking the data configuration component, the configured sample data can be displayed on the quality inspection model management interface. For example, sample training data and sample test data may be displayed in the area below the data set component of FIG. 8 .

步骤S603,响应于模型训练组件点击操作,在质检模型管理界面显示模型训练参数值,模型训练参数值为初始质检模型根据样本训练数据进行训练后得到的;Step S603, in response to the click operation of the model training component, the model training parameter values are displayed on the quality inspection model management interface. The model training parameter values are obtained after the initial quality inspection model is trained based on the sample training data;

在一些实施例中,在点击模型训练组件后,可以在质检模型管理界面显示初始质检模型训练后的模型训练参数值。示例性地,模型训练参数值可以包括模型权重和损失函数等信息。In some embodiments, after clicking the model training component, the model training parameter values after the initial quality inspection model training can be displayed on the quality inspection model management interface. For example, the model training parameter values may include information such as model weights and loss functions.

步骤S604,响应于模型测试组件点击操作,在质检模型管理界面显示模型测试参数值,模型测试参数值为初始质检模型根据样本测试数据进行测试后得到的,并确定测试通过后的初始质检模型为目标质检模型;Step S604: In response to the click operation of the model test component, the model test parameter values are displayed on the quality inspection model management interface. The model test parameter values are obtained after the initial quality inspection model is tested based on the sample test data, and the initial quality after passing the test is determined. The inspection model is the target quality inspection model;

在一些实施例中,可以点击模型测试组件以执行初始质检模型的测试,并在质检模型管理界面显示测试相关的模型测试参数值。示例性地,测试参数值可以包括经模型测试后得到的模型测试值,以及预设的模型达标值,便于与模型测试值进行直观地数据对比。In some embodiments, you can click the model testing component to perform testing of the initial quality inspection model, and display test-related model testing parameter values in the quality inspection model management interface. For example, the test parameter values may include model test values obtained after model testing, and preset model compliance values to facilitate intuitive data comparison with the model test values.

步骤S605,响应于模型发布组件点击操作,在质检模型管理界面显示发布后的目标质检模型。Step S605: In response to the click operation of the model release component, the released target quality inspection model is displayed on the quality inspection model management interface.

在一些实施例中,当初始质检模型的测试通过后,可以点击模型发布组件,表示正式上线该目标质检模型。或者,还可以设置有模拟上线组件,当点击该模拟上线组件时,可以在部分终端模拟目标质检模型的上线情况,以先确保目标质检模型的可靠性和实际可用性后,再进行真实上线。In some embodiments, after the initial quality inspection model passes the test, you can click the model release component to indicate that the target quality inspection model is officially launched. Alternatively, you can also set up a simulated online component. When the simulated online component is clicked, the online situation of the target quality inspection model can be simulated on some terminals to ensure the reliability and actual availability of the target quality inspection model before proceeding with the actual online launch. .

如图12所示,图12是图11步骤S602的一个实现流程图,在一些实施例中,步骤S602可以包括步骤S701至步骤S704:As shown in Figure 12, Figure 12 is an implementation flow chart of step S602 in Figure 11. In some embodiments, step S602 may include steps S701 to step S704:

步骤S701,显示质检模型配置界面,在质检模型配置界面显示样本数据的数据生成组件和数据标注组件;Step S701, display the quality inspection model configuration interface, and display the data generation component and data annotation component of the sample data on the quality inspection model configuration interface;

在一些实施例中,质检模型配置界面可以是弹出式的,即当不进行样本数据的获取时,可以隐匿在质检模型管理界面中,增强界面的简洁性。In some embodiments, the quality inspection model configuration interface may be pop-up, that is, when sample data is not being obtained, it may be hidden in the quality inspection model management interface to enhance the simplicity of the interface.

在一些实施例中,为实现样本数据的配置,可以在质检模型管理界面中进一步显示质检模型配置界面,其中,质检模型配置界面包括数据生成组件和数据标注组件,数据生成组件对应图8中的“生成难例”组件,数据标注组件对应图8中的“提交标注”组件。In some embodiments, in order to configure the sample data, the quality inspection model configuration interface can be further displayed in the quality inspection model management interface, where the quality inspection model configuration interface includes a data generation component and a data annotation component, and the data generation component corresponds to the diagram The "Generate Difficult Examples" component in Figure 8 and the data annotation component correspond to the "Submit Annotation" component in Figure 8.

步骤S702,响应于数据生成组件点击操作,在质检模型配置界面的数据配置区域显示根据初始质检参数配置得到的样本训练数据和样本测试数据,其中,样本训练数据包括难例数据和常规数据;Step S702, in response to the click operation of the data generation component, the sample training data and sample test data obtained according to the initial quality inspection parameter configuration are displayed in the data configuration area of the quality inspection model configuration interface, where the sample training data includes difficult case data and regular data. ;

在一些实施例中,点击数据生成组件以执行难例数据的生成,并在图8“数据集”组件的下方区域显示配置得到的样本训练数据和样本测试数据。由于对目标物体的质检中,更重要的是对难例数据的获取,因此,数据生成组件实际上是对难例数据的生成,而不显示常规数据的生成组件,而是由数据库中固定存储得到。In some embodiments, click the data generation component to generate difficult example data, and display the configured sample training data and sample test data in the lower area of the "Dataset" component in Figure 8. Since the acquisition of difficult case data is more important in the quality inspection of target objects, the data generation component actually generates hard case data, and does not display the generation component of regular data, but is fixed in the database. Storage gets.

步骤S703,响应于数据标注组件点击操作,在质检模型配置界面的数据标注区域显示对样本训练数据的标注结果,其中,标注结果包括难例数据标注结果和常规数据标注结果;Step S703, in response to the click operation of the data annotation component, display the annotation results of the sample training data in the data annotation area of the quality inspection model configuration interface, where the annotation results include the difficult example data annotation results and the regular data annotation results;

在一些实施例中,点击数据标注组件,可以在图8中“提交标注”组件的下方区域显示对样本训练数据的标注结果,其中,样本训练数据的标注可以是通过人工智能标注得到,或者,经相关工作人员手动标注得到。In some embodiments, by clicking on the data annotation component, the annotation results of the sample training data can be displayed in the area below the "Submit annotation" component in Figure 8, where the annotation of the sample training data can be obtained through artificial intelligence annotation, or, Obtained by manual annotation by relevant staff.

步骤S704,响应于数据配置完成操作,根据样本测试数据和包含标注结果的样本训练数据在质检模型管理界面显示配置得到的样本数据。Step S704, in response to the completion of the data configuration operation, display the configured sample data on the quality inspection model management interface according to the sample test data and the sample training data containing the annotation results.

在一些实施例中,当生成样本训练数据、样本测试数据以及对应的标注结果时,即完成样本数据的获取。In some embodiments, when sample training data, sample test data and corresponding annotation results are generated, the acquisition of sample data is completed.

如图13所示,图13是本申请实施例提供的质检模型管理的功能模块示意图,本申请实施例还提供一种质检模型管理系统,可以实现上述质检模型管理方法,质检模型管理系统包括:As shown in Figure 13, Figure 13 is a schematic diagram of the functional modules of quality inspection model management provided by the embodiment of the present application. The embodiment of the present application also provides a quality inspection model management system that can implement the above quality inspection model management method, quality inspection model Management system includes:

获取模块801,用于获取初始质检模型,根据初始质检模型对目标物体进行质检操作,得到初始质检参数;The acquisition module 801 is used to obtain the initial quality inspection model, perform quality inspection operations on the target object according to the initial quality inspection model, and obtain initial quality inspection parameters;

模型训练模块802,用于当监控到初始质检参数不在预设的质检参数范围内时,从数据库中筛选并得到样本训练数据,根据样本训练数据对初始质检模型进行训练;The model training module 802 is used to filter and obtain sample training data from the database when it is monitored that the initial quality inspection parameters are not within the preset quality inspection parameter range, and train the initial quality inspection model based on the sample training data;

模型测试模块803,用于从数据库中筛选并得到样本测试数据,根据样本测试数据对训练后的初始质检模型进行测试,并得到模型测试参数;The model testing module 803 is used to filter and obtain sample test data from the database, test the trained initial quality inspection model based on the sample test data, and obtain model test parameters;

目标质检模型模块804,用于当模型测试参数与预设的模型达标值匹配时,确定测试后的初始质检模型为目标质检模型,目标质检模型用于对目标物体重新进行质检操作。The target quality inspection model module 804 is used to determine the initial quality inspection model after testing as the target quality inspection model when the model test parameters match the preset model compliance value. The target quality inspection model is used to re-inspect the target object. operate.

该质检模型管理系统的具体实施方式与上述质检模型管理方法的具体实施例基本相同,在此不再赘述。在满足本申请实施例要求的前提下,质检模型管理系统还可以设置其他功能模块,以实现上述实施例中的质检模型管理方法。The specific implementation of the quality inspection model management system is basically the same as the specific embodiment of the above-mentioned quality inspection model management method, and will not be described again here. On the premise of meeting the requirements of the embodiments of this application, the quality inspection model management system may also be provided with other functional modules to implement the quality inspection model management method in the above embodiments.

需要说明的是,在对初始质检模型进行更新的过程中,初始质检模型质检精度的下降可以由平台进行自动监测,对应的样本训练数据和样本测试数据也为预先在数据库中配置好的,不需要专业人员人工挖掘并筛选数据,在经过测试后,选取测试效果最优的质检模型作为目标质检模型。可以理解的是,即使是专业性不强的工厂操作人员,也可以自主完成质检模型地更新,提高了质检模型的更新效率。并且,更新确定后的目标质检模型立即能够运用到目标物体的质检工作中,如此,极大地提高了质检工作地效率,若在实际运用中再次发生质检精度下降的问题,仍可以再次对质检模型进行更新操作。It should be noted that during the process of updating the initial quality inspection model, the decline in quality inspection accuracy of the initial quality inspection model can be automatically monitored by the platform, and the corresponding sample training data and sample test data are also pre-configured in the database. It does not require professionals to manually mine and filter data. After testing, the quality inspection model with the best test effect is selected as the target quality inspection model. It is understandable that even factory operators who are not very professional can complete the update of the quality inspection model independently, which improves the efficiency of the update of the quality inspection model. Moreover, the updated and determined target quality inspection model can be immediately applied to the quality inspection of the target object. This greatly improves the efficiency of the quality inspection work. If the problem of quality inspection accuracy decline occurs again in actual use, it can still be used. Update the quality inspection model again.

本申请实施例还提供了一种电子设备,电子设备包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现上述质检模型管理方法。该电子设备可以为包括平板电脑、车载电脑等任意智能终端。An embodiment of the present application also provides an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the above quality inspection model management method. The electronic device can be any smart terminal including a tablet computer, a vehicle-mounted computer, etc.

如图14所示,图14是本申请实施例提供的电子设备的硬件结构示意图,电子设备包括:As shown in Figure 14, Figure 14 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. The electronic device includes:

处理器901,可以采用通用的CPU(CentralProcessingUnit,中央处理器)、微处理器、应用专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请实施例所提供的技术方案;The processor 901 can be implemented by a general CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement The technical solutions provided by the embodiments of this application;

存储器902,可以采用只读存储器(ReadOnlyMemory,ROM)、静态存储设备、动态存储设备或者随机存取存储器(RandomAccessMemory,RAM)等形式实现。存储器902可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器902中,并由处理器901来调用执行本申请实施例的质检模型管理方法;The memory 902 can be implemented in the form of read-only memory (ReadOnlyMemory, ROM), static storage device, dynamic storage device, or random access memory (RandomAccessMemory, RAM). The memory 902 can store operating systems and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and called by the processor 901 to execute the implementation of this application. Example quality inspection model management method;

输入/输出接口903,用于实现信息输入及输出;Input/output interface 903, used to implement information input and output;

通信接口904,用于实现本设备与其他设备的通信交互,可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信;Communication interface 904 is used to realize communication interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wirelessly (such as mobile network, WIFI, Bluetooth, etc.);

总线905,在设备的各个组件(例如处理器901、存储器902、输入/输出接口903和通信接口904)之间传输信息;Bus 905, which transmits information between various components of the device (such as processor 901, memory 902, input/output interface 903, and communication interface 904);

其中处理器901、存储器902、输入/输出接口903和通信接口904通过总线905实现彼此之间在设备内部的通信连接。The processor 901, the memory 902, the input/output interface 903 and the communication interface 904 implement communication connections between each other within the device through the bus 905.

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述质检模型管理方法。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-mentioned quality inspection model management method is implemented.

存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, memory can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include high-speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, and the remote memory may be connected to the processor via a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

本申请实施例描述的实施例是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and new technologies, As application scenarios arise, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

本领域技术人员可以理解的是,图中示出的技术方案并不构成对本申请实施例的限定,可以包括比图示更多或更少的步骤,或者组合某些步骤,或者不同的步骤。Those skilled in the art can understand that the technical solutions shown in the figures do not limit the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.

以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separate, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、设备中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof.

本申请的说明书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe specific objects. Sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "include" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

应当理解,在本申请中,“至少一个(项)”和“若干”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" and "several" refer to one or more, and "plurality" refers to two or more. "And/or" is used to describe the relationship between associated objects, indicating that there can be three relationships. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist simultaneously. , where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ”, where a, b, c can be single or multiple.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例的方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序的介质。Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solution of the present application is essentially or 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 multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. that can store programs. medium.

以上参照附图说明了本申请实施例的优选实施例,并非因此局限本申请实施例的权利范围。本领域技术人员不脱离本申请实施例的范围和实质内所作的任何修改、等同替换和改进,均应在本申请实施例的权利范围之内。The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of rights of the embodiments of the present application. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of rights of the embodiments of the present application.

Claims (10)

1. A quality control model management method, the method comprising:
acquiring an initial quality inspection model, and performing quality inspection operation on a target object according to the initial quality inspection model to obtain initial quality inspection parameters;
when the initial quality inspection parameters are monitored to be not in the preset quality inspection parameter range, screening from a database and obtaining sample training data, and training the initial quality inspection model according to the sample training data;
screening and obtaining sample test data from a database, testing the initial quality inspection model after training according to the sample test data, and obtaining model test parameters;
when the model test parameters are matched with preset model standard reaching values, determining the initial quality inspection model after the test as a target quality inspection model, wherein the target quality inspection model is used for carrying out quality inspection operation on the target object again.
2. The quality control model management method according to claim 1, further comprising, after the initial quality control model after training is tested according to the sample test data and model test parameters are obtained:
when the model test parameters are not matched with the preset model reaching values, screening from a database again and obtaining sample training data and sample test data;
And carrying out updating training and updating test on the initial quality inspection model again according to the re-determined sample training data and the sample testing data, obtaining updated model testing parameters, and determining the updated initial quality inspection model as a target quality inspection model when the model testing parameters are matched with a preset model standard reaching value.
3. The quality inspection model management method according to claim 2, wherein when the initial quality inspection parameters are monitored not to be within the preset quality inspection parameter range, screening and obtaining sample training data from a database includes:
analyzing the initial quality inspection parameters to obtain a plurality of parameter categories of the initial quality inspection parameters, wherein each parameter category comprises a corresponding confidence coefficient, and the confidence coefficient is used for representing the credibility of the initial quality inspection model belonging to the parameter category;
and when the confidence coefficient is not in the preset quality inspection parameter range, determining a screening category of sample training data screened from the database according to the confidence coefficient, and selecting corresponding sample training data from the database according to the screening category.
4. A quality control model management method according to claim 3, wherein the sample training data includes refractory case data and regular data;
The training the initial quality inspection model according to the sample training data comprises the following steps:
activating a training trigger of the initial quality inspection model when the sample training data is determined from a database;
according to the training trigger in the activated state, the difficult-case data are input into the initial quality inspection model to obtain a difficult-case training result, and the conventional data are input into the initial quality inspection model to obtain a conventional training result;
and according to the difficult training result and the conventional training result, training the initial quality inspection model is completed.
5. The quality control model management method according to claim 4, wherein the screening and obtaining sample test data from a database, testing the trained initial quality control model according to the sample test data, and obtaining model test parameters includes:
activating a test trigger of the initial quality inspection model when training of the initial quality inspection model is completed;
screening and obtaining sample test data from a database according to the test trigger in an activated state;
and testing the initial quality inspection model after training according to the sample test data, and obtaining model test parameters.
6. The quality control model management method according to claim 1, wherein after the determining that the initial quality control model after training is a target quality control model, further comprising:
displaying a quality inspection model management interface, and displaying a configuration component of the initial quality inspection model on the quality inspection model management interface, wherein the configuration component comprises a data configuration component, a model training component, a model testing component and a model publishing component;
responding to clicking operation of a data configuration component, and displaying sample data obtained by configuration on the quality inspection model management interface, wherein the sample data comprises sample training data and sample test data;
responding to clicking operation of a model training component, and displaying model training parameter values on the quality inspection model management interface, wherein the model training parameter values are obtained after the initial quality inspection model is trained according to the sample training data;
responding to clicking operation of a model testing component, displaying model testing parameter values on the quality testing model management interface, wherein the model testing parameter values are obtained after the initial quality testing model is tested according to the sample testing data, and determining that the initial quality testing model after the test is passed is a target quality testing model;
And responding to clicking operation of the model release component, and displaying the released target quality inspection model on a quality inspection model management interface.
7. The quality control model management method according to claim 6, wherein displaying the configured sample data on the quality control model management interface includes:
displaying a quality inspection model configuration interface, and displaying a data generation component and a data annotation component of the sample data on the quality inspection model configuration interface;
responding to clicking operation of a data generating component, and displaying sample training data and sample test data obtained according to the initial quality inspection parameter configuration in a data configuration area of the quality inspection model configuration interface, wherein the sample training data comprises difficult case data and conventional data;
responding to clicking operation of a data labeling component, and displaying labeling results of the sample training data in a data labeling area of the quality inspection model configuration interface, wherein the labeling results comprise difficult-case data labeling results and conventional data labeling results;
and responding to the data configuration completion operation, and displaying the configured sample data on the quality inspection model management interface according to the sample test data and the sample training data containing the labeling result.
8. A quality control model management system, the system comprising:
the acquisition module is used for acquiring an initial quality inspection model, and performing quality inspection operation on a target object according to the initial quality inspection model to obtain initial quality inspection parameters;
the model training module is used for screening and obtaining sample training data from a database when the initial quality inspection parameters are monitored to be not in the preset quality inspection parameter range, and training the initial quality inspection model according to the sample training data;
the model test module is used for screening and obtaining sample test data from a database, testing the initial quality inspection model after training according to the sample test data, and obtaining model test parameters;
and the target quality inspection model module is used for determining the initial quality inspection model after the test as a target quality inspection model when the model test parameters are matched with preset model standard reaching values, and the target quality inspection model is used for carrying out quality inspection operation on the target object again.
9. An electronic device comprising a memory storing a computer program and a processor implementing the quality inspection model management method of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the quality inspection model management method of any one of claims 1 to 7.
CN202311190419.3A 2023-09-14 2023-09-14 Quality inspection model management method, system, electronic device and storage medium Active CN117314269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311190419.3A CN117314269B (en) 2023-09-14 2023-09-14 Quality inspection model management method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311190419.3A CN117314269B (en) 2023-09-14 2023-09-14 Quality inspection model management method, system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN117314269A true CN117314269A (en) 2023-12-29
CN117314269B CN117314269B (en) 2024-11-12

Family

ID=89241698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311190419.3A Active CN117314269B (en) 2023-09-14 2023-09-14 Quality inspection model management method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117314269B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705598A (en) * 2019-09-06 2020-01-17 中国平安财产保险股份有限公司 Intelligent model management method and device, computer equipment and storage medium
CN111414751A (en) * 2020-03-20 2020-07-14 深圳前海微众银行股份有限公司 Quality inspection optimization method, device, equipment and storage medium
CN111598460A (en) * 2020-05-18 2020-08-28 武汉轻工大学 Monitoring method, device, equipment and storage medium for heavy metal content in soil
CN111767937A (en) * 2019-11-13 2020-10-13 杭州海康威视数字技术股份有限公司 Target detection model training method and device, electronic equipment and storage medium
CN112580734A (en) * 2020-12-25 2021-03-30 深圳市优必选科技股份有限公司 Target detection model training method, system, terminal device and storage medium
CN112990294A (en) * 2021-03-10 2021-06-18 挂号网(杭州)科技有限公司 Training method and device of behavior discrimination model, electronic equipment and storage medium
CN113065843A (en) * 2021-03-15 2021-07-02 腾讯科技(深圳)有限公司 Model processing method and device, electronic equipment and storage medium
CN113218537A (en) * 2021-05-25 2021-08-06 中国南方电网有限责任公司超高压输电公司广州局 Training method, device, equipment and storage medium of temperature anomaly detection model
CN114860542A (en) * 2022-04-28 2022-08-05 中国电信股份有限公司 Optimization method, optimization device, electronic device and medium for trend prediction model
CN115171224A (en) * 2022-06-09 2022-10-11 阿里巴巴(中国)有限公司 Detection model acquisition method, activity detection method and related device
CN115546693A (en) * 2022-10-09 2022-12-30 济南博观智能科技有限公司 Target detection model training method, device, equipment and storage medium
CN116453056A (en) * 2023-04-19 2023-07-18 深圳供电局有限公司 Target detection model construction method and transformer substation foreign matter intrusion detection method
CN116561566A (en) * 2022-01-28 2023-08-08 腾讯科技(深圳)有限公司 Method, device, electronic device and storage medium for online training model

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705598A (en) * 2019-09-06 2020-01-17 中国平安财产保险股份有限公司 Intelligent model management method and device, computer equipment and storage medium
CN111767937A (en) * 2019-11-13 2020-10-13 杭州海康威视数字技术股份有限公司 Target detection model training method and device, electronic equipment and storage medium
CN111414751A (en) * 2020-03-20 2020-07-14 深圳前海微众银行股份有限公司 Quality inspection optimization method, device, equipment and storage medium
CN111598460A (en) * 2020-05-18 2020-08-28 武汉轻工大学 Monitoring method, device, equipment and storage medium for heavy metal content in soil
CN112580734A (en) * 2020-12-25 2021-03-30 深圳市优必选科技股份有限公司 Target detection model training method, system, terminal device and storage medium
CN112990294A (en) * 2021-03-10 2021-06-18 挂号网(杭州)科技有限公司 Training method and device of behavior discrimination model, electronic equipment and storage medium
CN113065843A (en) * 2021-03-15 2021-07-02 腾讯科技(深圳)有限公司 Model processing method and device, electronic equipment and storage medium
CN113218537A (en) * 2021-05-25 2021-08-06 中国南方电网有限责任公司超高压输电公司广州局 Training method, device, equipment and storage medium of temperature anomaly detection model
CN116561566A (en) * 2022-01-28 2023-08-08 腾讯科技(深圳)有限公司 Method, device, electronic device and storage medium for online training model
CN114860542A (en) * 2022-04-28 2022-08-05 中国电信股份有限公司 Optimization method, optimization device, electronic device and medium for trend prediction model
CN115171224A (en) * 2022-06-09 2022-10-11 阿里巴巴(中国)有限公司 Detection model acquisition method, activity detection method and related device
CN115546693A (en) * 2022-10-09 2022-12-30 济南博观智能科技有限公司 Target detection model training method, device, equipment and storage medium
CN116453056A (en) * 2023-04-19 2023-07-18 深圳供电局有限公司 Target detection model construction method and transformer substation foreign matter intrusion detection method

Also Published As

Publication number Publication date
CN117314269B (en) 2024-11-12

Similar Documents

Publication Publication Date Title
CN108984418B (en) Software test management method and device, electronic equipment and storage medium
CN111736875B (en) Version update monitoring method, device, equipment and computer storage medium
CA2966820C (en) Task-based health data monitoring of aircraft components
CN104123219A (en) Method and device for testing software
CN113312260A (en) Interface testing method, device, equipment and storage medium
US11263072B2 (en) Recovery of application from error
CN117575222A (en) Production management method, system, equipment and storage medium
JP5989194B1 (en) Test management system and program
JP7440823B2 (en) Information processing device, information processing method and program
CN111767218B (en) Automatic test method, equipment and storage medium for continuous integration
CN111459804B (en) Node optimization method, device and storage medium in system test
CN113628077A (en) Method for generating non-repeated examination questions, terminal and readable storage medium
CN117314269B (en) Quality inspection model management method, system, electronic device and storage medium
CN110716778B (en) Application compatibility testing method, device and system
CN118734969A (en) Vehicle fault information processing method, device, storage medium and electronic device
US20230376406A1 (en) Data Driven Testing Automation Using Machine Learning
JP5824550B1 (en) Data management apparatus and data management program
US10924362B2 (en) Management of software bugs in a data processing system
US20220374003A1 (en) Apparatus, system and method for developing industrial process solutions using artificial intelligence
CN114356781A (en) Software function testing method and device
WO2021032820A1 (en) Method for generating a coherent representation for at least two log files
CN105894196A (en) Work order processing method and device
JP7517590B2 (en) Classification device, classification method, and classification program
CN117422418B (en) Method, device, equipment and storage medium for developing operation link visualization
CN116401421B (en) Chip test data query method, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant