Training method, dynamic calculation segmentation scheduling method, storage medium and system for artificial neural network
Technical Field
The invention relates to the technical field of data processing, in particular to a training method of an artificial neural network, a dynamic calculation segmentation scheduling method, a storage medium and a system.
Background
At present, the field equipment inspection mainly adopts a manual inspection and manual recording mode, and the possibility of illegal inspection, missed inspection and false inspection exists. In the repair work of equipment maintenance, the problems of accident occurrence, untimely repair and the like caused by negligence and insufficient experience of operators can exist.
The AR intelligent operation and detection system is mainly used for field equipment inspection and repair in electric power operation and maintenance, and through AR intelligent terminal equipment, safety operation, efficient operation and intelligent operation of field operation and maintenance personnel are assisted, and individual operation capacity of the operation and maintenance personnel is improved. The AR intelligent operation and detection system has the main functions of workflow visualization, operation process recording, abnormal state alarming, operation position navigation, equipment data real-time viewing, visual operation guidance, remote collaborative operation, remote expert guidance and the like.
In order to adapt to different application scenes and application requirements of enterprises, the AR intelligent operation and detection system can support multiple terminal devices such as AR intelligent glasses, intelligent head-mounted terminals, intelligent mobile phones, tablets and computers. Because the AR intelligent operation and detection system needs to perform various real-time detection, identification and rendering tasks, a plurality of terminal devices are required to support relatively large dynamic calculation tasks, and the dynamic calculation tasks need to be reasonably segmented and scheduled according to each terminal device, so that the amount of the dynamic calculation tasks processed by each terminal device is reasonable, but the network condition, the cruising condition and the operation load of each terminal device are different, so that the amount of the dynamic calculation tasks which can be processed by each terminal device is different, and the segmentation and scheduling of the dynamic calculation tasks are difficult to reasonably segment and schedule.
Disclosure of Invention
The technical problem to be solved by the invention is how to reasonably segment and schedule the dynamic calculation task.
In order to solve the technical problems, the invention provides a training method for enabling an artificial neural network to have the capability of dynamically calculating segmentation scheduling, which comprises the following steps:
P, under the condition that a plurality of terminal devices which are matched with each other to execute dynamic calculation tasks exist and the amount of the dynamic calculation tasks which can be processed by each terminal device is known, each terminal device is executed with a sample acquisition step to obtain a plurality of groups of learning samples, wherein the sample acquisition step executed for each terminal device comprises the following A, B, C:
a, acquiring the network condition, the cruising condition and the operation load of the terminal equipment;
B, obtaining the dynamic calculation task quantity which can be processed by the terminal equipment;
C, taking the network condition, the cruising condition and the operation load of the terminal equipment as input signals, and taking the dynamic calculation task quantity which can be processed by the terminal equipment as output signals to form a group of learning samples for the artificial neural network to perform dynamic calculation, segmentation and scheduling training;
and Q, carrying out dynamic calculation segmentation scheduling training on the artificial neural network by adopting the plurality of groups of learning samples until the artificial neural network has the capability of analyzing the dynamic calculation task quantity which can be processed by the terminal equipment according to the network condition, the cruising condition and the operation load of the terminal equipment, so that the artificial neural network can carry out segmentation scheduling on the dynamic calculation task according to the dynamic calculation task quantity which can be processed by the terminal equipment.
Preferably, in the step a, a network transmission speed of the terminal device is obtained, and a network condition of the terminal device is analyzed according to the network transmission speed.
Preferably, in the step a, a remaining power of the terminal device is obtained, and a endurance condition of the terminal device is analyzed according to the remaining power.
Preferably, in the step a, a performance parameter of a central processing unit of the terminal device is obtained, and an operation load of the terminal device is analyzed according to the performance parameter of the central processing unit.
The invention also provides a dynamic calculation segmentation scheduling method, which comprises the following steps:
a. acquiring network conditions, endurance conditions and operation loads of a plurality of terminal devices;
b. inputting the network condition, the cruising condition and the operation load of each terminal device into a trained artificial neural network, and analyzing the dynamic calculation task quantity which can be processed by each terminal device by the artificial neural network;
c. and carrying out segmentation scheduling on the dynamic calculation tasks according to the dynamic calculation task quantity which can be processed by each terminal device.
Preferably, in the step a, a network transmission speed of each terminal device is obtained, and a network condition of each terminal device is analyzed according to the network transmission speed.
Preferably, in the step a, the remaining power of each terminal device is obtained, and the endurance condition of each terminal device is analyzed according to the remaining power.
Preferably, in the step a, the performance parameters of the central processing unit of each terminal device are obtained, and the operation load of each terminal device is analyzed according to the performance parameters of each central processing unit.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements steps in a training method as described above and/or steps in a dynamic computing cut scheduling method as described above.
The invention also provides a dynamic computing segmentation scheduling system, which comprises a server and a plurality of terminal devices which are mutually matched to execute dynamic computing tasks, wherein the server comprises a computer readable storage medium and a processor which are mutually connected, and the computer readable storage medium is described above.
The invention has the following beneficial effects: the trained artificial neural network has the capability of analyzing the dynamic calculation task quantity which can be processed by the terminal equipment according to the network condition, the cruising condition and the operation load of the terminal equipment, so that the artificial neural network can segment and schedule the dynamic calculation task according to the dynamic calculation task quantity which can be processed by the terminal equipment, and the segmentation and scheduling of the dynamic calculation task are more reasonable.
Detailed Description
Exemplary embodiments of the present application will be described in detail below. While exemplary embodiments of the application are described below, it should be understood that the application can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
In the process of inspecting, repairing and repairing field devices in power operation and maintenance, the AR intelligent operation and inspection system needs to perform various real-time detection, identification and rendering tasks, so that a plurality of terminal devices (such as AR intelligent glasses, intelligent head-mounted terminals, intelligent mobile phones, tablets, computers and the like) are needed to support relatively large dynamic calculation tasks, and a dynamic calculation segmentation scheduling system is needed to reasonably segment and schedule the dynamic calculation tasks, so that the amount of the dynamic calculation tasks processed by each terminal device is reasonable. The dynamic computing segmentation scheduling system comprises a server and a plurality of terminal devices which are mutually matched to execute dynamic computing tasks, wherein the server comprises a computer readable storage medium and a processor which are mutually connected, and a computer program is stored in the computer readable storage medium. Under the condition that a plurality of terminal devices which are matched with each other to execute dynamic calculation tasks exist and the amount of the dynamic calculation tasks which can be processed by each terminal device is known, the dynamic calculation segmentation scheduling system enables a processor to execute a computer program in a computer readable storage medium to realize a training method for enabling an artificial neural network to have the dynamic calculation segmentation scheduling capability, the training method respectively executes a sample acquisition step on each terminal device to obtain a plurality of groups of learning samples, wherein the sample acquisition step executed on each terminal device comprises the following A, B, C:
A. acquiring the network transmission speed of the terminal equipment, and analyzing the network condition of the terminal equipment according to the network transmission speed; acquiring the residual electric quantity of the terminal equipment, and analyzing the endurance condition of the terminal equipment according to the residual electric quantity; and acquiring the performance parameters of the central processing unit of the terminal equipment, and analyzing the operation load of the terminal equipment according to the performance parameters of the central processing unit.
B. Acquiring the dynamic calculation task quantity which can be processed by the terminal equipment;
C. The network condition, the cruising condition and the operation load of the terminal equipment are used as input signals, and the dynamic calculation task quantity which can be processed by the terminal equipment is used as an output signal to form a group of learning samples for the dynamic calculation, segmentation and scheduling training of the artificial neural network. Thus, each group of learning samples establishes a corresponding relation between the network condition, the endurance condition and the operation load and the dynamic calculation task quantity which can be processed by the terminal equipment.
The plurality of groups of learning samples are adopted to carry out dynamic calculation segmentation scheduling training on the artificial neural network until the artificial neural network has the capacity of analyzing the dynamic calculation task quantity which can be processed by the terminal equipment according to the network condition, the cruising condition and the operation load of the terminal equipment, so that the artificial neural network can carry out segmentation scheduling on the dynamic calculation task according to the dynamic calculation task quantity which can be processed by the terminal equipment, and the dynamic calculation segmentation scheduling system can enable a processor to execute a computer program in a computer readable storage medium to realize a dynamic calculation segmentation scheduling method, and the following steps a, b and c are detailed:
a. acquiring network transmission speeds of a plurality of terminal devices, and analyzing the network condition of each terminal device according to each network transmission speed; obtaining the residual electric quantity of a plurality of terminal devices, and analyzing the endurance condition of each terminal device according to each residual electric quantity; acquiring the performance parameters of central processing units of a plurality of terminal devices, and analyzing the operation load of each terminal device according to the performance parameters of each central processing unit;
b. inputting the network condition, the cruising condition and the operation load of each terminal device into a trained artificial neural network, and analyzing the dynamic calculation task quantity which can be processed by each terminal device by the artificial neural network;
c. The segmentation scheduling is carried out on the dynamic calculation tasks according to the dynamic calculation task quantity which can be processed by each terminal device, so that the dynamic calculation task quantity which is finally scheduled by each terminal device is adapted to the dynamic calculation task quantity which can be processed by the terminal device, and the segmentation scheduling of the dynamic calculation tasks is more reasonable.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the scope of the present application, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.