AI model generation method based on artificial intelligence

The AI model generation method addresses the challenge of insufficient data collection by using user interaction, blockchain data collection, and encryption to enhance the adaptability and integration of AI models with various scenarios.

CN119066671AActive Publication Date: 2024-12-03HUAZHONG UNIV OF SCI & TECH +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410910845.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-12-03
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The difficulty in collecting sample data for AI model training leads to insufficient adaptability of AI models to different scenarios, exacerbated by the information island effect.

Method used

An AI model generation method that interacts with user ends to obtain building requirements, performs data encryption collection through data collection source links, utilizes a blockchain to gather additional data sets, and constructs a pre-trained AI model with topological and node parameter features, ensuring data security and adaptability.

Benefits of technology

Enhances the versatility and integration of AI models with user scenarios by increasing training sample amounts and improving data collection efficiency while ensuring data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066671A_ABST
    Figure CN119066671A_ABST
Patent Text Reader

Abstract

The invention relates to an AI model generation method based on artificial intelligence, and relates to the field of model construction, and the method comprises the steps: interacting a first user side, obtaining a model input data attribute, a model output data attribute and a data collection source link, and obtaining a first training data set; when the first data volume of the first training data set is smaller than a convergence data volume threshold value, generating a data acquisition task instruction; issuing the data acquisition task instruction to a data acquisition block chain, obtaining a first response node to an Nth response node, and obtaining a second training data set to an (N + 1) th training data set; training a target AI model according to the first training data set, the second training data set until the (N + 1) th training data set; and the topological structure feature information and the node parameter feature information of the target AI model are encrypted and transmitted to the first user side. The technical problem that in the prior art, sample data collection is difficult, and consequently the scene adaptability of the AI model is insufficient is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model building technology, and in particular to an AI model generation method based on artificial intelligence. Background Art

[0002] The training of AI big models requires a large number of sample data sets, and the accuracy of sample data is an important prerequisite for ensuring the accuracy of AI big models. However, in actual application model training, there is often a problem of fewer training samples. In addition, the information island effect makes it more difficult to collect sample data, resulting in the dilemma of difficult AI model training and application.

[0003] In order to solve this problem, existing technologies have adopted methods such as federated learning and compiler compilation. However, the resulting sample training models are relatively versatile, but they are still insufficiently practical when facing actual application nodes. Due to the current difficulties in collecting sample data, there is a problem of insufficient adaptability of AI models to scenarios. Summary of the invention

[0004] The present invention aims to solve the technical problem that sample data collection in the prior art is difficult, which leads to insufficient adaptability of AI models to different scenarios, and provides an AI model generation method based on artificial intelligence to solve the problem.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] In a first aspect, the present invention provides an AI model generation method based on artificial intelligence, which is applied to a server and includes:

[0007] Interacting with the first user end to obtain AI model building requirements, wherein the AI ​​model building requirements include model input data attributes, model output data attributes, and data acquisition source links;

[0008] According to the model input data attributes and the model output data attributes, access the data collection source link to perform data encryption collection to obtain a first training data set;

[0009] When a first data volume of the first training data set is less than a convergence data volume threshold, generating a data acquisition task instruction according to the model input data attribute and the model output data attribute;

[0010] Publishing the data collection task instruction to the data collection blockchain, obtaining the first response node until the Nth response node;

[0011] Traversing the first response node until the Nth response node performs data encryption collection to obtain a second training data set until the N+1th training data set;

[0012] According to the second training data set to the N+1th training data set, a pre-trained AI model is constructed, and the pre-trained AI model is trained according to the first training data set to generate a target AI model, wherein the target AI model has topological structure feature information and node parameter feature information;

[0013] The topology structure characteristic information and the node parameter characteristic information are encrypted and transmitted to the first user terminal.

[0014] In a second aspect, the present application provides an electronic device, including:

[0015] Memory for storing computer software programs;

[0016] A processor is used to read and execute the computer software program, thereby implementing the AI ​​model generation method based on artificial intelligence described in the first aspect.

[0017] In a third aspect, the present application provides a non-transitory computer-readable storage medium, in which a computer software program is stored. When the computer software program is executed by a processor, an AI model generation method based on artificial intelligence as described in any one of the first aspects is implemented.

[0018] The beneficial effects of the present invention are: by receiving the model building requirements from the user side, the first training data set is encrypted and collected according to the data crawling link provided by the user; when the data amount of the first training data set is small, the data collection task quality is generated, and the second training data set is encrypted and collected through the blockchain until the N+1th training data set; then pre-training is performed through the second training data set until the N+1th training data set to obtain a pre-trained AI model with strong versatility, and the first training data set is further used to train the target AI model to obtain an intelligent model with a high degree of integration with the first user end, thereby achieving the technical effect of increasing the amount of training samples and a high degree of integration of AI intelligent models with scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of an AI model generation method based on artificial intelligence provided by the present invention;

[0020] Figure 2 A schematic diagram of the structure of an electronic device provided by the present invention;

[0021] Figure 3 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention.

[0022] In the accompanying drawings, the components represented by the reference numerals are listed as follows:

[0023] Electronic device 500 , memory 510 , processor 520 , computer program 511 , computer readable storage medium 600 , computer program 611 . DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0025] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0026] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.

[0027] Embodiment 1:

[0028] like Figure 1 As shown, an embodiment of the present invention provides an AI model generation method based on artificial intelligence, which is applied to a server and includes the steps of:

[0029] Specifically, an AI model generation method based on artificial intelligence is provided in an embodiment of the present application. The process is executed by a server. The server is a trusted data center. When each user terminal connected to the server needs to build an AI intelligent model, it can send a model building request to the server through the user terminal; and when receiving the data collection task instruction sent by the server, it can choose to respond as the data source according to its own situation.

[0030] S10: Interacting with the first user end to obtain AI model building requirements, wherein the AI ​​model building requirements include model input data attributes, model output data attributes, and data acquisition source links;

[0031] Specifically, the first user terminal is any one of several user terminals connected to the server. The AI ​​model building requirement is the constraint information of the model building received from the user terminal, which at least includes the model input data attributes, the model output data attributes and the data acquisition source link. The model input data attributes are the attributes of the processed data, such as: the vibration amplitude and vibration frequency of model A electrical appliance; the model output data attributes are the target data of the model output, such as: the failure probability of model A electrical appliance; the data acquisition source link refers to the website used to collect training data, usually the local website of the first user terminal.

[0032] S20: Access the data collection source link to perform data encryption collection according to the model input data attribute and the model output data attribute, and obtain a first training data set;

[0033] Specifically, in the website, the data corresponding to the model input data attribute and the data corresponding to the model output data attribute should be stored in a one-to-one correspondence. Preferably, the data collection source link can be accessed through crawler technology, and based on the model input data attribute and the model output data attribute, the historical time zone is set for the past, and after data collection, it is encrypted and sent back to the server to wait for the next step call. Preferably, the historical time zone set in the past is set by the user, and the default is three years.

[0034] S30: when the first data volume of the first training data set is less than the convergence data volume threshold, generating a data acquisition task instruction according to the model input data attribute and the model output data attribute;

[0035] Specifically, a convergence data volume threshold is configured by model building professionals on the server to represent the minimum data volume required for AI model training; the data volume of the first training data set is counted and set as the first data volume.

[0036] When the first data volume is less than the convergence data volume threshold, the first training data set cannot construct the AI ​​model alone. At this time, the data collection task instructions are generated through the model input data attributes and the model output data attributes. Preferably, the data collection task instructions include: description information of the model input data attributes and the model output data attributes, so that each user can know the required data type.

[0037] When the first data volume is greater than or equal to the convergence data volume threshold, the first training data set can be used to construct an AI model independently, and the target AI model can be directly trained using the first data volume and then downloaded to the first user terminal.

[0038] S40: Publishing the data collection task instruction to the data collection blockchain, obtaining the first response node until the Nth response node;

[0039] Specifically, the data collection blockchain refers to the blockchain composed of member companies, individuals, and other organizations that access the server. Through the blockchain, the server can issue data collection task instructions; when each node of the blockchain receives the data collection task instruction, the blockchain can decide whether to respond. If it responds, it needs to provide a data collection link. If it does not respond, it can be directly rejected or ignored, and both are considered as non-response. The responding node is stored as the first responding node until the Nth responding node. Since the data collection blockchain is deployed by companies, individuals or organizations from all walks of life, it is conducive to breaking information silos and improving sample collection efficiency.

[0040] S50: Traversing the first response node until the Nth response node performs data encryption collection to obtain a second training data set until the N+1th training data set;

[0041] Specifically, data is collected according to the data collection links provided by the first response node to the Nth response node, and encrypted and transmitted back to obtain the second training data set to the N+1th training data set. Blockchain is used to break the information island, and encrypted transmission ensures data security.

[0042] S60: constructing a pre-trained AI model according to the second training data set to the N+1th training data set, and training the pre-trained AI model according to the first training data set to generate a target AI model, wherein the target AI model has topological structure feature information and node parameter feature information;

[0043] S70: Encrypt and transmit the topology structure characteristic information and the node parameter characteristic information to the first user terminal.

[0044] Specifically, first use the second training data set until the N+1th training data set, and adopt conventional model training methods, such as supervised training, semi-supervised training, unsupervised training, etc., to train the pre-trained AI model. When the pre-trained AI model converges, the pre-trained AI model is subjected to migration training according to the first training data set to generate a target AI model. Furthermore, the topological structure feature information and node parameter feature information of the target AI model are extracted, encrypted and transmitted to the first user terminal, and the first user terminal can build a model through the topological structure feature information and node parameter feature information. Since the entire model training process is encrypted training in the cloud, there is no need to worry about the leakage of training data, thereby ensuring the data security of each user terminal.

[0045] Further, according to the model input data attributes and the model output data attributes, the data collection source link is accessed to perform data encryption collection to obtain a first training data set, and step S20 includes the steps of:

[0046] S21: according to the model input data attributes and the model output data attributes, access the data collection source link to collect an initial input record data set and an initial output record data set;

[0047] S22: interacting with the first user end to obtain a set of input data attribute deviation thresholds;

[0048] S23: performing cluster analysis on the initial input record data set according to the input data attribute deviation threshold set to obtain multiple clusters of initial input record data;

[0049] S24: clustering the initial output record data set according to the multiple clusters of initial input record data to generate multiple clusters of initial output record data;

[0050] S25: traversing the multiple clusters of initial output record data to perform mode calculation and generate multiple output record data;

[0051] S26: randomly extracting one initial output record data from each of the multiple clusters of initial output record data to obtain multiple initial output record data;

[0052] S27: Encrypt and transmit back the multiple initial output record data and the multiple output record data to obtain the first training data set.

[0053] Specifically, the data collection source link is accessed, and the initial input record data set and the initial output record data set corresponding to each other are collected according to the model input data attributes and the model output data attributes; further, in order to improve the accuracy of the training data, the data is fitted by using the data clustering fusion method, as follows:

[0054] The interactive first user terminal configures an input data attribute deviation threshold set, that is, a deviation preset value representing each input data attribute. When it is greater than or equal to the deviation preset value, the two parameters are considered inconsistent. If it is less than the deviation preset value, the two parameters are considered consistent.

[0055] For the initial input record data set, cluster analysis is performed on the initial input record data set according to the input data attribute deviation threshold set, and any two initial input record data whose total attribute numbers are less than the input data attribute deviation threshold set are set as the same cluster data and added to the multi-cluster initial input record data.

[0056] Furthermore, multiple clusters of initial output record data are traversed to perform mode calculation, that is, the mode calculation is performed on the output data of the same attribute of each cluster to obtain multiple output record data. An initial output record data is randomly extracted from the multiple clusters of initial output record data to obtain multiple initial output record data; the multiple initial output record data and the multiple output record data are encrypted and returned to obtain the first training data set. Since the single one-to-one corresponding initial input record data set and initial output record data set may have accidental errors. Therefore, through cluster analysis, the influence of accidental errors can be eliminated and the accuracy of the subsequent model training can be improved.

[0057] Further, cluster analysis is performed on the initial input record data set according to the input data attribute deviation threshold set to obtain multiple clusters of initial input record data. Step S26 includes the following steps:

[0058] S261: Obtaining first initial input record data and second initial input record data of the initial input record data set;

[0059] S262: Compare the same attribute deviations of the first initial input record data and the second initial input record data to obtain an input data deviation set, wherein the input data deviation set corresponds to the input data attribute deviation threshold set one by one;

[0060] S263: When the input data deviation set satisfies the input data attribute deviation threshold set, the first initial input record data and the second initial input record data are clustered into the same cluster;

[0061] S264: When any one of the input data deviation sets does not satisfy the input data attribute deviation threshold set, the first initial input record data and the second initial input record data are clustered into a heterogeneous cluster.

[0062] Specifically, any comparison of cluster analysis is exemplified as follows: extract the first initial input record data and the second initial input record data of the initial input record data set; compare the data deviation of each attribute of the first initial input record data and the second initial input record data one by one, and store them as an input data deviation set. That is, the difference between the first initial input record data and the second initial input record data is calculated, and then the absolute value is calculated and stored as the data deviation.

[0063] When the input data deviation sets are all smaller than the corresponding input data attribute deviation threshold sets, the input data deviation sets are deemed to satisfy the input data attribute deviation threshold sets, and the first initial input record data and the second initial input record data are clustered into the same cluster.

[0064] When any data deviation of the input data deviation set is greater than or equal to the corresponding input data attribute deviation threshold, it is considered unsatisfied, and the first initial input record data and the second initial input record data are clustered into different clusters. Circular analysis is performed to obtain the clustering result.

[0065] Further, the multiple initial output record data and the multiple output record data are encrypted and transmitted back to obtain the first training data set, and step S27 includes the steps of:

[0066] S271: Optimize the encryption code through the dynamic password library and generate a recommended encryption code;

[0067] S272: Encrypt and transmit back the plurality of initial output record data and the plurality of output record data according to the recommended encryption code to obtain the first training data set.

[0068] Specifically, the dynamic password library refers to a preset password group used to encrypt multiple initial output record data and the multiple output record data. By optimizing the encryption code, an encryption code with a low frequency of recent use is selected as the recommended encryption code, and the multiple initial output record data and the multiple output record data are encrypted and transmitted back to obtain a first training data set. Using the encryption code to optimize the dynamically changing encryption code is conducive to ensuring data security.

[0069] Further, the encryption code is optimized through the dynamic password library to generate a recommended encryption code. Step S271 includes the following steps:

[0070] S2711: Randomly extracting a first encryption code from the dynamic password library, wherein any encryption code in the dynamic password library has a preset number of bits;

[0071] S2712: Obtain the encryption code set selected for the preset time zone;

[0072] S2713: Based on the first encryption code, traverse the preset time zone and select an encryption code set to perform out-of-position quantity statistics to generate an out-of-position quantity set;

[0073] S2714: Calculate the minimum value of the out-of-position quantity set and set it as the first selection coefficient;

[0074] S2715: When the first selection coefficient is greater than or equal to a selection coefficient threshold, setting the first encryption code to the recommended encryption code;

[0075] S2716: Otherwise, update the first encryption code.

[0076] Specifically, the encryption code optimization can adopt existing optimization algorithms, such as genetic algorithms, annealing algorithms, etc. The embodiment of the present application lists an example without limitation:

[0077] Randomly extract the first encryption code from the dynamic password library; retrieve the encryption code set selected for the preset time zone, that is, the encryption code set that has been selected for the preset time zone in the past, and the preset time zone is preferably in the past three months. Based on the first encryption code, traverse the encryption code set selected for the preset time zone to perform out-of-position quantity statistics, and generate an out-of-position quantity set. Since the number of encryption code bits is the same, the alignment and comparison are performed to obtain the number of positions with different values, which are stored as the out-of-position quantity. Calculate the minimum value of the out-of-position quantity set and set it as the first selection coefficient; when the first selection coefficient is greater than or equal to the selection coefficient threshold pre-identified by the server, set the first encryption code to the recommended encryption code. Otherwise, update the first encryption code. Using encryption codes to optimize dynamically changing encryption codes is conducive to ensuring data security.

[0078] Further, a pre-trained AI model is constructed according to the second training data set to the N+1th training data set, and the pre-trained AI model is trained according to the first training data set to generate a target AI model. Step S60 includes the following steps:

[0079] S61: Determine whether a second data volume of the second training data set up to the N+1th training data set is greater than or equal to the convergence data volume threshold;

[0080] S62: If greater than or equal to, construct a pre-trained AI model based on the second training data set to the N+1th training data set;

[0081] S63: Train the pre-trained AI model according to the first training data set to generate the target AI model.

[0082] Furthermore, the method further comprises step S64: if it is less than, re-collecting data according to the data collection task instruction.

[0083] Furthermore, step S80 is also included: encrypting and transmitting the pre-trained model topology structure feature information and the pre-trained model node parameter feature information of the pre-trained AI model to the first response node until the Nth response node.

[0084] Specifically, it is necessary to determine whether the second data volume of the second training data set up to the N+1th training data set is greater than or equal to the convergence data volume threshold, and the second data volume is the sum of the data volumes of the second training data set up to the N+1th training data set. If it is greater than or equal to, a pre-trained AI model is constructed based on the second training data set up to the N+1th training data set; if it is less than, data is re-collected according to the data collection task instruction. The pre-trained AI model is trained according to the first training data set to generate the target AI model.

[0085] Preferably, the pre-trained model topology structure feature information and the pre-trained model node parameter feature information of the pre-trained AI model are encrypted and transmitted to the first response node until the Nth response node. The first response node until the Nth response node shares data and models, which reflects humanization.

[0086] The AI ​​model generation method based on artificial intelligence provided by the embodiment of the present invention has at least the following technical effects:

[0087] By receiving the model building requirements from the user side, the first training data set is encrypted and collected according to the data crawling link provided by the user; when the data amount of the first training data set is small, the data collection task quality is generated, and the second training data set is encrypted and collected through the blockchain until the N+1th training data set; then pre-training is performed using the second training data set until the N+1th training data set to obtain a pre-trained AI model with strong versatility, and the first training data set is further used to train the target AI model to obtain an intelligent model with a high degree of integration with the first user end, thereby achieving the technical effect of increasing the amount of training samples and a high degree of integration of AI intelligent models with scenarios.

[0088] Embodiment 2:

[0089] See also Figure 2 , Figure 2 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented:

[0090] Interacting with the first user end to obtain AI model building requirements, wherein the AI ​​model building requirements include model input data attributes, model output data attributes, and data acquisition source links;

[0091] According to the model input data attributes and the model output data attributes, access the data collection source link to perform data encryption collection to obtain a first training data set;

[0092] When a first data volume of the first training data set is less than a convergence data volume threshold, generating a data acquisition task instruction according to the model input data attribute and the model output data attribute;

[0093] Publishing the data collection task instruction to the data collection blockchain, obtaining the first response node until the Nth response node;

[0094] Traversing the first response node until the Nth response node performs data encryption collection to obtain a second training data set until the N+1th training data set;

[0095] According to the second training data set to the N+1th training data set, a pre-trained AI model is constructed, and the pre-trained AI model is trained according to the first training data set to generate a target AI model, wherein the target AI model has topological structure feature information and node parameter feature information;

[0096] The topology structure characteristic information and the node parameter characteristic information are encrypted and transmitted to the first user terminal.

[0097] Embodiment three:

[0098] See also Figure 3 , Figure 3 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 3 As shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the following steps are implemented:

[0099] Interacting with the first user end to obtain AI model building requirements, wherein the AI ​​model building requirements include model input data attributes, model output data attributes, and data acquisition source links;

[0100] According to the model input data attributes and the model output data attributes, access the data collection source link to perform data encryption collection to obtain a first training data set;

[0101] When a first data volume of the first training data set is less than a convergence data volume threshold, generating a data acquisition task instruction according to the model input data attribute and the model output data attribute;

[0102] Publishing the data collection task instruction to the data collection blockchain, obtaining the first response node until the Nth response node;

[0103] Traversing the first response node until the Nth response node performs data encryption collection to obtain a second training data set until the N+1th training data set;

[0104] According to the second training data set to the N+1th training data set, a pre-trained AI model is constructed, and the pre-trained AI model is trained according to the first training data set to generate a target AI model, wherein the target AI model has topological structure feature information and node parameter feature information;

[0105] The topology structure characteristic information and the node parameter characteristic information are encrypted and transmitted to the first user terminal.

[0106] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0107] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0108] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0111] Although preferred embodiments of the present invention have been described, additional changes and modifications may occur to these embodiments once those skilled in the art understand the basic inventive concepts.

[0112] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technologies, the present invention is also intended to include these changes and variations.

Claims

1. A method for generating an AI model based on artificial intelligence, characterized in that: Applicable to servers, including: Interacting with the first user end to obtain AI model building requirements, wherein the AI ​​model building requirements include model input data attributes, model output data attributes, and data acquisition source links; According to the model input data attributes and the model output data attributes, access the data collection source link to perform data encryption collection to obtain a first training data set; When a first data volume of the first training data set is less than a convergence data volume threshold, generating a data acquisition task instruction according to the model input data attribute and the model output data attribute; Publishing the data collection task instruction to the data collection blockchain, obtaining the first response node until the Nth response node; Traversing the first response node until the Nth response node performs data encryption collection to obtain a second training data set until the N+1th training data set; According to the second training data set to the N+1th training data set, a pre-trained AI model is constructed, and the pre-trained AI model is trained according to the first training data set to generate a target AI model, wherein the target AI model has topological structure feature information and node parameter feature information; The topology structure characteristic information and the node parameter characteristic information are encrypted and transmitted to the first user terminal.

2. The method according to claim 1, characterized in that According to the model input data attribute and the model output data attribute, accessing the data collection source link to perform data encryption collection to obtain a first training data set includes: Accessing the data collection source link according to the model input data attributes and the model output data attributes to collect an initial input record data set and an initial output record data set; Interacting with the first user terminal to obtain a set of input data attribute deviation thresholds; Performing cluster analysis on the initial input record data set according to the input data attribute deviation threshold set to obtain multiple clusters of initial input record data; Clustering the initial output record data set according to the multiple clusters of initial input record data to generate multiple clusters of initial output record data; Traversing the multiple clusters of initial output record data to perform mode calculation and generate multiple output record data; randomly extracting one initial output record data from each of the plurality of clusters of initial output record data to obtain a plurality of initial output record data; The multiple initial output record data and the multiple output record data are encrypted and transmitted back to obtain the first training data set.

3. The method according to claim 2, characterized in that Performing cluster analysis on the initial input record data set according to the input data attribute deviation threshold set to obtain multiple clusters of initial input record data, including: Obtaining first initial input record data and second initial input record data of the initial input record data set; Comparing the same attribute deviations of the first initial input record data and the second initial input record data to obtain an input data deviation set, wherein the input data deviation set corresponds to the input data attribute deviation threshold set one by one; When the input data deviation set satisfies the input data attribute deviation threshold set, clustering the first initial input record data and the second initial input record data into the same cluster; When any one of the input data deviation sets does not satisfy the input data attribute deviation threshold set, the first initial input record data and the second initial input record data are clustered into a heterogeneous cluster.

4. The method according to claim 2, characterized in that Encrypting and returning the plurality of initial output record data and the plurality of output record data to obtain the first training data set includes: Optimize encryption codes through dynamic password library and generate recommended encryption codes; The plurality of initial output record data and the plurality of output record data are encrypted and transmitted back according to the recommended encryption code to obtain the first training data set.

5. The method according to claim 4, characterized in that Optimize encryption codes through the dynamic password library and generate recommended encryption codes, including: Randomly extracting a first encryption code from the dynamic password library, wherein any encryption code in the dynamic password library has a preset number of bits; Get the default time zone encryption code set; Based on the first encryption code, traverse the preset time zone and select an encryption code set to perform out-of-position quantity statistics to generate an out-of-position quantity set; Calculate the minimum value of the set of out-of-position quantities and set it as the first selection coefficient; When the first selection coefficient is greater than or equal to a selection coefficient threshold, setting the first encryption code to the recommended encryption code; Otherwise, the first encryption code is updated.

6. The method according to claim 1, characterized in that Constructing a pre-trained AI model according to the second training data set to the N+1th training data set, and training the pre-trained AI model according to the first training data set to generate a target AI model, including: Determine whether a second data volume of the second training data set up to the N+1th training data set is greater than or equal to the convergence data volume threshold; If greater than or equal to, construct a pre-trained AI model based on the second training data set to the N+1th training data set; The pre-trained AI model is trained according to the first training data set to generate the target AI model.

7. The method according to claim 6, characterized in that Also includes: If it is less than, data is collected again according to the data collection task instruction.

8. The method according to claim 6, characterized in that Also includes: The pre-trained model topology structure feature information and the pre-trained model node parameter feature information of the pre-trained AI model are encrypted and transmitted to the first response node until the Nth response node.

9. An electronic device, characterized in that: include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the AI ​​model generation method based on artificial intelligence as described in any one of claims 1 to 8.

10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, and when the computer software program is executed by the processor, the method for generating an AI model based on artificial intelligence as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Reconfigurable battery network system battery state sorting method based on data clustering

    CN116381506A

  • Systems and methods for facilitating use of artificial intelligence platforms trained on blockchain action lineages to conduct blockchain actions

    US11991299B1

  • Distributed training in a parameter dataset

    US20190385092A1

  • System and Method of Quotation Engine for AI Asset Training

    US20200057920A1

  • Secure artificial intelligence model training and registration system

    US20210150411A1