Dynamic active security defense method and system for artificial intelligence system and storage medium
Technical Field
The invention belongs to the field of artificial intelligence application, and particularly relates to a dynamic active security defense system and a storage medium for an artificial intelligence system.
Background
With the development of modern science and technology, artificial intelligence technology is widely applied to daily life and industrial production of people. The artificial intelligence mainly relates to the aspects of machine vision, fingerprint identification, face identification, retina identification, iris identification, palm print identification, automatic planning, intelligent search, intelligent control and the like, and the artificial intelligence operation is carried out after model training.
At present, artificial intelligence systems have been widely used in a plurality of fields, including fields with high requirements for system security, such as automatically driving automobiles, etc., and thus the artificial intelligence systems are required to have higher security so as to reduce the probability of malicious attack/intrusion of the systems. The malicious attack/intrusion manner may be to combat sample attacks, model attacks (to crack the system, to modify model parameters), etc.
Therefore, it is desirable to provide a dynamic active security defense method, system and storage medium for an artificial intelligence system with high security performance.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a dynamic active security defense method, a dynamic active security defense system and a storage medium for an artificial intelligence system.
In order to solve the technical problems, the invention provides the following technical scheme:
the invention provides a dynamic active security defense method for an artificial intelligence system, which comprises the following steps:
s1, acquiring information to be processed and a target task to be completed corresponding to the information to be processed;
s2, training at least two artificial intelligence models to form a model library, wherein each model in the model library can independently complete the target task in the step S1;
s3, the scheduling module selects one or more models from the model base at random or according to a set rule to process the information to be processed in the step S1;
and S4, integrating and outputting the results output by each model in the step S3 according to the set rules.
As a preferred technical solution of the present invention, the information to be processed in step S1 includes one or more of images, videos, texts, and voices.
As a preferred technical solution of the present invention, the model library in step S2 trains and deploys the models according to different artificial intelligence tasks.
As a preferred technical solution of the present invention, the scheduling policy of the scheduling module in step S3 is to select a model randomly or according to a set rule.
As a preferable technical scheme of the invention, the method also comprises the following steps:
s1, acquiring information to be processed and a target task to be completed corresponding to the information to be processed, and dividing the target task into at least two subtasks;
s2, training at least two artificial intelligence models to form a model library, wherein each model in the model library can independently complete the subtasks in the step S1;
s3, the scheduling module selects one or more models from the model base according to each subtask randomly or according to a set rule to process the information to be processed in the step S1;
and S4, integrating the output results of each model corresponding to each subtask in the step S3 according to a set rule to obtain a subtask processing result, and integrating and outputting each subtask processing result corresponding to the target task according to the set rule.
As a preferred technical solution of the present invention, the present invention further provides a dynamic active security defense system for an artificial intelligence system, including:
the model library is used for storing each trained model for realizing the artificial intelligence task;
the acquisition module is used for acquiring the information to be processed and the corresponding target task to be completed;
the scheduling module is used for selecting a model from the model library randomly or according to a set rule to execute a target task;
the integration module is used for integrating the task results finished by each model corresponding to the same information to be processed;
and the output module is used for outputting the task result.
As a preferred embodiment of the present invention, the present invention further includes:
and the acquisition module is used for acquiring one or more information of images, videos, texts and voices.
As a preferred technical solution of the present invention, the present invention further provides a computer storage medium, in which a computer program is stored, and the computer program is used for executing a dynamic active security defense method for an artificial intelligence system.
Compared with the prior art, the invention has the following beneficial effects:
the method selects one or more models from the model library to process the information to be processed randomly or according to the set rule through the scheduling module, integrates and outputs the result output by each model according to the set rule, adds the function of dynamic active defense, can effectively reduce the probability of malicious invasion of the artificial intelligence system, and improves the safety of the artificial intelligence system.
Detailed Description
The following description of the preferred embodiments of the present invention is provided for the purpose of illustration and description, and is in no way intended to limit the invention.
Example 1
In order to achieve the object of the present invention, in one embodiment of the present invention, a dynamic active security defense method for an artificial intelligence system is provided, which includes the following steps:
s1, acquiring information to be processed and a target task to be completed corresponding to the information to be processed; the system comprises a system and a client, wherein the information to be processed comprises an acquired picture, the target task to be completed is face recognition, and a target face to be recognized is recognized from the picture by the system;
s2, training 4 artificial intelligent models to form a model library, wherein each model in the model library can independently complete the target task in the step S1;
s3, the scheduling module selects two models from the model base to process the information to be processed in the step S1 randomly or according to a set rule; the scheduling strategy of the scheduling module is to select the model randomly or according to a set rule, wherein the rule can be a rule in the prior art or a rule set according to actual requirements;
and S4, integrating and outputting the output result of each model in the step S3 according to a set rule, wherein the rule can be a rule in the prior art or a rule set according to actual requirements.
In order to further optimize the implementation effect of the present invention, the present implementation further provides a dynamic active security defense system for an artificial intelligence system, including:
the model library is used for storing each trained model for realizing the artificial intelligence task;
the acquisition module is used for acquiring the information to be processed and the corresponding target task to be completed;
the scheduling module is used for selecting a model from the model library randomly or according to a set rule to execute a target task;
the integration module is used for integrating the task results finished by each model corresponding to the same information to be processed;
and the output module is used for outputting the task result.
In order to further optimize the implementation effect of the present invention, the present embodiment further provides a computer storage medium, in which a computer program is stored, and the computer program is used for executing the artificial intelligence method for dynamic active defense.
According to the method and the device, one or more models are selected from the model base through the scheduling module randomly or according to the set rules to process the information to be processed, then the result output by each model is integrated and output according to the set rules, the function of dynamic active defense is added, the probability that the artificial intelligence system is maliciously invaded can be effectively reduced, and the safety of the artificial intelligence system is improved.
Example 2
In order to achieve the object of the present invention, in one embodiment of the present invention, a dynamic active security defense method for an artificial intelligence system is provided, which is characterized by further comprising the following steps:
s1, acquiring information to be processed and a target task to be completed corresponding to the information to be processed, and dividing the target task into two subtasks; the system adjusts the driving state of the vehicle according to various parameters such as the real-time road surface picture, the speed of the vehicle and the like, and drives the vehicle to a specified position according to the path;
s2, training four artificial intelligence models to form a model library, wherein each model in the model library can independently complete the subtask in the step S1;
s3, the scheduling module selects two models from the model base according to each subtask randomly or according to a set rule to process the information to be processed in the step S1;
and S4, integrating the output results of each model corresponding to each subtask in the step S3 according to a set rule to obtain a subtask processing result, and then integrating and outputting each subtask processing result corresponding to the target task by installing the set rule.
In order to further optimize the implementation effect of the present invention, the present implementation further provides a dynamic active security defense system for an artificial intelligence system, including:
the acquisition module is used for acquiring pictures;
the model library is used for storing each trained model for realizing the artificial intelligence task;
the acquisition module is used for acquiring the information to be processed and the corresponding target task to be completed and dividing the target task into two subtasks;
the scheduling module is used for selecting a model from the model library randomly or according to a set rule to execute each subtask;
the integration module is used for integrating the output result of each model corresponding to each subtask according to a set rule and installing the processing result of each subtask corresponding to the target task with the set rule for integration;
and the output module is used for outputting the task result.
In order to further optimize the implementation effect of the present invention, the present embodiment further provides a computer storage medium, in which a computer program is stored, and the computer program is used for executing the artificial intelligence method for dynamic active defense.
According to the method, the scheduling module selects the models from the model base randomly or according to the set rules to execute each subtask, then the output results of each model corresponding to each subtask are integrated according to the set rules to obtain the subtask processing results, then the set rules are installed on each subtask processing result corresponding to the target task to be integrated and output, and the function of dynamic active defense is added, so that the probability of malicious intrusion of the artificial intelligent system can be effectively reduced, and the safety of the artificial intelligent system is improved. The target task is divided into a plurality of subtasks, and each subtask is completed through any combination, so that the safety of artificial intelligence is further improved.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.