Method and system for controlling unmanned aerial vehicle through hand-brain fusion based on deep neural network

Through the deep neural network hand-brain fusion control method, EEG signals and gesture data are used to directly control the drone, which solves the problems of high complexity and large error of remote control equipment in the existing technology, and achieves safer and more accurate wireless control. Human-machine flight control.

CN118655883APending Publication Date: 2024-09-17SHENYANG LIGONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670849.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing UAV control methods require external remote control equipment, resulting in high control complexity and large operating errors, and cannot meet the needs of modern development.

Method used

A hand-brain fusion control method based on deep neural networks is used to collect EEG signals and gesture data through a wireless EEG cap, and a multi-modal data fusion method is used to generate UAV control instructions to achieve UAV flight control.

Benefits of technology

It improves the safety and accuracy of drone flight control, allows users to directly control drones through brain activities and gestures, adapts to a variety of application scenarios, and reduces operating burden and risk of misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655883A
    Figure CN118655883A
Patent Text Reader

Abstract

The invention provides a method and a system for controlling an unmanned aerial vehicle through hand-brain fusion based on a deep neural network. The method comprises the following steps: converting a collected electroencephalogram signal of a user into a flight control instruction; converting the collected gesture signal of the user into a flight state instruction; according to the flight control instruction and the flight state instruction, generating an unmanned aerial vehicle control instruction by using a multi-modal data fusion method; performing flight control on the unmanned aerial vehicle based on the unmanned aerial vehicle control instruction; according to the invention, the user is allowed to directly control the flight of the unmanned aerial vehicle through brain activities and gesture actions without a traditional remote controller or keyboard input, so that the safety of the flight control of the unmanned aerial vehicle is improved, and the method can adapt to various application scenes. The method has important significance and potential application value for the development of the unmanned aerial vehicle technology in the future.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned aerial vehicle control technology, and in particular to a method and system for controlling an unmanned aerial vehicle by hand-brain fusion based on a deep neural network. Background Art

[0002] At present, the development of drones, to a certain extent, marks the innovation and progress of a country's aviation technology. The control method of small drones still uses traditional remote control, which has the disadvantages of high complexity. The remote control for operating drones usually has complex functions and button layouts, which requires certain learning and training for users, especially for beginners, there may be a certain learning curve. The operation error is large, and the operator's misoperation may cause the drone to lose control or an accident, especially in high-speed flight or complex environments, the risk of misoperation may be greater. Therefore, an external remote control device is required, but other activities cannot be carried out when the drone is remotely controlled by an external remote control device; and the real-time performance of the external remote control device is poor, and the drone cannot be controlled in real time; and the remote control device is complex to control, requiring professional operators to control, etc. In addition, drone control needs to adapt to a certain environment and have a high risk resistance, so the existing drone remote control control method cannot meet the needs of modern development. Summary of the invention

[0003] The present invention provides a method for controlling a drone by hand-brain fusion based on a deep neural network, which is used to solve the problem that the existing drone control method needs to be controlled by an external remote control device, resulting in high complexity and large operation errors when controlling the drone, including:

[0004] Convert the collected user's EEG signals into flight control commands;

[0005] Convert the collected user's gesture signals into flight status instructions;

[0006] Generate UAV control instructions using a multimodal data fusion method according to the flight control instructions and the flight status instructions;

[0007] Based on the UAV control instruction, the UAV is controlled in flight.

[0008] Optionally, converting the collected user's electroencephalogram signal into a flight control instruction includes:

[0009] Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals;

[0010] Performing data preprocessing on the digital signal to obtain processed EEG data;

[0011] According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained;

[0012] Generating flight control instructions according to the user's EEG intention;

[0013] The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.

[0014] Optionally, the EEG signal recognition model includes the following construction process:

[0015] Initializing network parameters of the EEG signal recognition model;

[0016] Using historical processed EEG data as input of first training data;

[0017] Using the EEG intention corresponding to the historical processed EEG data as the output of the first training data;

[0018] Based on the input and output of the first training data, a transformer model is trained, and network parameters in the transformer model are updated by a gradient optimization method of an adaptive learning rate momentum factor;

[0019] Based on the updated network parameters, the transformer model is updated, and by calculating the cross entropy loss function of the updated transformer model, the network parameters in the updated transformer model are adjusted using a back propagation algorithm to obtain an EEG signal recognition model.

[0020] Optionally, converting the collected user's gesture signal into a flight status instruction includes:

[0021] Collecting user's gesture image data through a wireless EEG cap, and performing image preprocessing on the gesture image data to obtain processed gesture data;

[0022] According to the processed gesture data, a gesture intention is obtained using a pre-built gesture recognition model;

[0023] generating a flight status instruction according to the gesture intention;

[0024] The graphic preprocessing includes: size transformation, data enhancement and data standardization.

[0025] Optionally, the flight status instruction includes one or more of the following: flight attitude, flight speed and flight direction.

[0026] Optionally, the network structure of the gesture recognition model includes:

[0027] The initialization module, residual module, fully connected module and Softmax classification module are connected in sequence;

[0028] Wherein, the initialization module includes a convolutional layer and a pooling layer connected in sequence;

[0029] The residual module includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer which are connected in sequence.

[0030] Optionally, the gesture recognition model includes the following construction process:

[0031] Initializing network parameters of the gesture recognition model;

[0032] Using the historical processed gesture data as input of the second training data;

[0033] outputting the gesture intention corresponding to the historical processed gesture data as the second training data;

[0034] Based on the input and output of the second training data, a convolutional neural network is trained, and network parameters in the convolutional neural network are updated by an Adam gradient optimization method;

[0035] Based on the updated network parameters, the convolutional neural network is updated, and by calculating the cross entropy loss function of the updated convolutional neural network, the network parameters in the updated convolutional neural network are adjusted using a back propagation algorithm to obtain a gesture signal recognition model.

[0036] Optionally, generating a UAV control instruction by using a multimodal data fusion method according to the flight control instruction and the flight state instruction includes:

[0037] Extracting features of the flight control instruction to obtain a flight control vector;

[0038] Extracting features of the flight state instruction to obtain a flight state vector;

[0039] According to the flight control vector and the flight state vector, a low-rank multimodal data fusion method is used to fuse the flight control vector and the flight state vector to generate a UAV control instruction.

[0040] Based on the same inventive concept, the present invention provides a system for controlling a drone by hand-brain fusion based on a deep neural network, comprising:

[0041] Control command conversion module: used to convert the collected user's EEG signals into flight control commands;

[0042] State instruction conversion module: used to convert the collected user's gesture signals into flight state instructions;

[0043] A flight instruction generation module is used to generate a UAV control instruction according to the flight control instruction and the flight status instruction by using a multimodal data fusion method;

[0044] UAV flight control module: used to control the flight of the UAV based on the UAV control instructions.

[0045] Optionally, the control instruction conversion module is specifically used to:

[0046] Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals;

[0047] Performing data preprocessing on the digital signal to obtain processed EEG data;

[0048] According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained;

[0049] Generating flight control instructions according to the user's EEG intention;

[0050] The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.

[0051] Optionally, the EEG signal recognition model in the control instruction conversion module includes the following construction process;

[0052] Initializing network parameters of the EEG signal recognition model;

[0053] Using historical processed EEG data as input of first training data;

[0054] Using the EEG intention corresponding to the historical processed EEG data as the output of the first training data;

[0055] Based on the input and output of the first training data, a transformer model is trained, and network parameters in the transformer model are updated by a gradient optimization method of an adaptive learning rate momentum factor;

[0056] Based on the updated network parameters, the transformer model is updated, and by calculating the cross entropy loss function of the updated transformer model, the network parameters in the updated transformer model are adjusted using a back propagation algorithm to obtain an EEG signal recognition model.

[0057] Optionally, the state instruction conversion module is specifically used to:

[0058] Collecting user's gesture image data through a wireless EEG cap, and performing image preprocessing on the gesture image data to obtain processed gesture data;

[0059] According to the processed gesture data, a gesture intention is obtained using a pre-built gesture recognition model;

[0060] generating a flight status instruction according to the gesture intention;

[0061] The graphic preprocessing includes: size transformation, data enhancement and data standardization.

[0062] Optionally, the flight state instruction in the state instruction conversion module includes one or more of the following: flight attitude, flight speed and flight direction.

[0063] Optionally, the network structure of the gesture recognition model in the state instruction conversion module includes:

[0064] The initialization module, residual module, fully connected module and Softmax classification module are connected in sequence;

[0065] Wherein, the initialization module includes a convolutional layer and a pooling layer connected in sequence;

[0066] The residual module includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer which are connected in sequence.

[0067] Optionally, the gesture recognition model in the state instruction conversion module includes the following construction process:

[0068] Initializing network parameters of the gesture recognition model;

[0069] Using the historical processed gesture data as input of the second training data;

[0070] outputting the gesture intention corresponding to the historical processed gesture data as the second training data;

[0071] Based on the input and output of the second training data, a convolutional neural network is trained, and network parameters in the convolutional neural network are updated by an Adam gradient optimization method;

[0072] Based on the updated network parameters, the convolutional neural network is updated, and by calculating the cross entropy loss function of the updated convolutional neural network, the network parameters in the updated convolutional neural network are adjusted using a back propagation algorithm to obtain a gesture signal recognition model.

[0073] Optionally, the flight instruction generating module is specifically used to:

[0074] Extracting features of the flight control instruction to obtain a flight control vector;

[0075] Extracting features of the flight state instruction to obtain a flight state vector;

[0076] According to the flight control vector and the flight state vector, a low-rank multimodal data fusion method is used to fuse the flight control vector and the flight state vector to generate a UAV control instruction.

[0077] Compared with the closest prior art, the present invention has the following beneficial effects:

[0078] The present invention provides a method and system for controlling a drone by hand-brain fusion based on a deep neural network, comprising: converting collected EEG signals of a user into flight control instructions; converting collected gesture signals of the user into flight status instructions; generating drone control instructions based on the flight control instructions and the flight status instructions using a multimodal data fusion method; and performing flight control on the drone based on the drone control instructions. The present invention allows the user to directly control the flight of the drone through brain activities and gestures without the need for traditional remote controllers or keyboard input, which is beneficial to improving the safety of drone flight control and can adapt to a variety of application scenarios, and has important significance and potential application value for the future development of drone technology.

[0079] Other features of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0080] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0082] Figure 1 A schematic diagram of a flow chart of a method for controlling a drone using hand-brain fusion based on a deep neural network provided by the present invention;

[0083] Figure 2 A schematic diagram of the structure of a system for controlling a drone using hand-brain fusion based on a deep neural network provided by the present invention;

[0084] Figure 3 A structural diagram of a device for controlling a drone by hand-brain fusion based on a deep neural network provided by the present invention;

[0085] Figure 4 A schematic diagram of the construction framework of the EEG signal recognition model in the method for controlling a drone with hand-brain fusion based on a deep neural network provided by the present invention;

[0086] Figure 5 A schematic diagram of the network architecture of an EEG signal recognition model in a method for controlling a drone using hand-brain fusion based on a deep neural network provided by the present invention;

[0087] Figure 6 A schematic diagram of a construction framework of a gesture recognition model in a method for controlling a drone by hand-brain fusion based on a deep neural network provided by the present invention;

[0088] Figure 7 A schematic diagram of the network architecture of a gesture recognition model in a method for controlling a drone by hand-brain fusion based on a deep neural network provided by the present invention;

[0089] Figure 8 A schematic diagram of a construction framework of a hand-brain fusion recognition model in a method for controlling a drone with hand-brain fusion based on a deep neural network provided by the present invention;

[0090] Fig. 9 A schematic diagram of the network architecture of a hand-brain fusion recognition model in a method for controlling a drone with hand-brain fusion based on a deep neural network provided by the present invention;

[0091] Fig.10 A schematic diagram of a feature extraction framework flow of a hand-brain fusion recognition model in a method for controlling a drone with hand-brain fusion based on a deep neural network provided by the present invention;

[0092] Fig.11 A schematic diagram of the multimodal fusion framework flow of a hand-brain fusion recognition model in a method for controlling a drone through hand-brain fusion based on a deep neural network provided by the present invention. DETAILED DESCRIPTION

[0093] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0094] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. "Multiple" means two or more, unless otherwise clearly and specifically defined. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0095] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0096] Embodiment 1:

[0097] The present invention provides a method for controlling a drone by hand-brain fusion based on a deep neural network. The flowchart is shown in FIG. Figure 1 As shown, including:

[0098] Step 1: Convert the collected user's EEG signals into flight control instructions;

[0099] Step 2: Convert the collected user's gesture signals into flight status instructions;

[0100] Step 3: Generate UAV control instructions based on the flight control instructions and the flight status instructions using a multimodal data fusion method;

[0101] Step 4: Based on the UAV control instruction, the UAV is controlled in flight.

[0102] In one implementation, the process of converting the collected user's EEG signals into flight control instructions in the above step 1 may include:

[0103] Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals;

[0104] Performing data preprocessing on the digital signal to obtain processed EEG data;

[0105] According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained;

[0106] Generating flight control instructions according to the user's EEG intention;

[0107] The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.

[0108] In this implementation, the above-mentioned EEG signal recognition model includes the following construction process:

[0109] Initializing network parameters of the EEG signal recognition model;

[0110] Using historical processed EEG data as input of first training data;

[0111] Using the EEG intention corresponding to the historical processed EEG data as the output of the first training data;

[0112] Based on the input and output of the first training data, a transformer model is trained, and network parameters in the transformer model are updated by a gradient optimization method of an adaptive learning rate momentum factor;

[0113] Based on the updated network parameters, the transformer model is updated, and by calculating the cross entropy loss function of the updated transformer model, the network parameters in the updated transformer model are adjusted using a back propagation algorithm to obtain an EEG signal recognition model.

[0114] In one implementation, the process of converting the collected user's gesture signal into a flight status instruction in the above step 2 may include:

[0115] Collecting user's gesture image data through a wireless EEG cap, and performing image preprocessing on the gesture image data to obtain processed gesture data;

[0116] According to the processed gesture data, a gesture intention is obtained using a pre-built gesture recognition model;

[0117] generating a flight status instruction according to the gesture intention;

[0118] The graphic preprocessing includes: size transformation, data enhancement and data standardization.

[0119] For example, the above-mentioned flight status instructions include one or more of the following: flight attitude, flight speed and flight direction.

[0120] In this implementation, the network structure of the gesture recognition model includes:

[0121] The initialization module, residual module, fully connected module and Softmax classification module are connected in sequence;

[0122] Wherein, the initialization module includes a convolutional layer and a pooling layer connected in sequence;

[0123] The residual module includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer which are connected in sequence.

[0124] In this implementation, the gesture recognition model includes the following construction process:

[0125] Initializing network parameters of the gesture recognition model;

[0126] Using the historical processed gesture data as input of the second training data;

[0127] outputting the gesture intention corresponding to the historical processed gesture data as the second training data;

[0128] Based on the input and output of the second training data, a convolutional neural network is trained, and network parameters in the convolutional neural network are updated by an Adam gradient optimization method;

[0129] Based on the updated network parameters, the convolutional neural network is updated, and by calculating the cross entropy loss function of the updated convolutional neural network, the network parameters in the updated convolutional neural network are adjusted using a back propagation algorithm to obtain a gesture signal recognition model.

[0130] In the above step 3, the process of generating the UAV control instruction according to the flight control instruction and the flight state instruction by using the multimodal data fusion method may include:

[0131] Extracting features of the flight control instruction to obtain a flight control vector;

[0132] Extracting features of the flight state instruction to obtain a flight state vector;

[0133] According to the flight control vector and the flight state vector, a low-rank multimodal data fusion method is used to fuse the flight control vector and the flight state vector to generate a UAV control instruction.

[0134] The present invention aims at the problem that the existing drone control method needs to be controlled by an external remote control device, which leads to high complexity and large operation errors when controlling the drone. A method for controlling the drone by hand-brain fusion based on a deep neural network is proposed. The method uses brain-computer interface (BCI) technology and gesture recognition, and integrates EEG signals with gesture data to achieve flight control of the drone. The present invention allows users to directly control the flight of the drone through brain activities and gestures without the need for traditional remote controllers or keyboard input. The method of the present invention obtains the user's EEG signals through EEG signal acquisition devices such as electroencephalograms (EEGs), and then uses algorithms or models to process and analyze these signals, recognize the user's intentions, and finally convert the intentions into flight control instructions and send them to the drone. At the same time, the method of the present invention can also recognize gestures, thereby realizing the control of the parameters such as the flight attitude, speed, and direction of the drone; in addition, the drone can also be controlled by hand-brain fusion, so that the accuracy of controlling the drone is greatly improved. The core of the present invention of controlling the flight of the drone through hand-brain fusion lies in the application of brain-computer interface technology, gesture recognition and hand-brain fusion. It allows users to directly control the flight of the drone through EEG signals and gestures, thereby achieving more direct and natural human-computer interaction. The method of the present invention has broad application prospects in the fields of military, medical, education, entertainment, etc., and provides new possibilities for human-computer interaction.

[0135] Embodiment 2:

[0136] The present invention provides a system for controlling a drone by hand-brain fusion based on a deep neural network. The schematic diagram of the structure is shown in FIG. Figure 2 As shown, including:

[0137] Control command conversion module: used to convert the collected user's EEG signals into flight control commands;

[0138] State instruction conversion module: used to convert the collected user's gesture signals into flight state instructions;

[0139] A flight instruction generation module is used to generate a UAV control instruction according to the flight control instruction and the flight status instruction by using a multimodal data fusion method;

[0140] UAV flight control module: used to control the flight of the UAV based on the UAV control instructions.

[0141] The above control instruction conversion module is specifically used for:

[0142] Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals;

[0143] Performing data preprocessing on the digital signal to obtain processed EEG data;

[0144] According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained;

[0145] Generating flight control instructions according to the user's EEG intention;

[0146] The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.

[0147] The EEG signal recognition model in the control instruction conversion module mentioned above includes the following construction process:

[0148] Initializing network parameters of the EEG signal recognition model;

[0149] Using historical processed EEG data as input of first training data;

[0150] Using the EEG intention corresponding to the historical processed EEG data as the output of the first training data;

[0151] Based on the input and output of the first training data, a transformer model is trained, and network parameters in the transformer model are updated by a gradient optimization method of an adaptive learning rate momentum factor;

[0152] Based on the updated network parameters, the transformer model is updated, and by calculating the cross entropy loss function of the updated transformer model, the network parameters in the updated transformer model are adjusted using a back propagation algorithm to obtain an EEG signal recognition model.

[0153] The above-mentioned status instruction conversion module is specifically used for:

[0154] Collecting user's gesture image data through a wireless EEG cap, and performing image preprocessing on the gesture image data to obtain processed gesture data;

[0155] According to the processed gesture data, a gesture intention is obtained using a pre-built gesture recognition model;

[0156] generating a flight status instruction according to the gesture intention;

[0157] The graphic preprocessing includes: size transformation, data enhancement and data standardization.

[0158] The flight state instructions in the above-mentioned state instruction conversion module include one or more of the following: flight attitude, flight speed and flight direction.

[0159] The network structure of the gesture recognition model in the above-mentioned state instruction conversion module includes:

[0160] The initialization module, residual module, fully connected module and Softmax classification module are connected in sequence;

[0161] Wherein, the initialization module includes a convolutional layer and a pooling layer connected in sequence;

[0162] The residual module includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer which are connected in sequence.

[0163] The gesture recognition model in the above-mentioned state instruction conversion module includes the following construction process:

[0164] Initializing network parameters of the gesture recognition model;

[0165] Using the historical processed gesture data as input of the second training data;

[0166] outputting the gesture intention corresponding to the historical processed gesture data as the second training data;

[0167] Based on the input and output of the second training data, a convolutional neural network is trained, and network parameters in the convolutional neural network are updated by an Adam gradient optimization method;

[0168] Based on the updated network parameters, the convolutional neural network is updated, and by calculating the cross entropy loss function of the updated convolutional neural network, the network parameters in the updated convolutional neural network are adjusted using a back propagation algorithm to obtain a gesture signal recognition model.

[0169] The above-mentioned flight instruction generation module is specifically used for:

[0170] Extracting features of the flight control instruction to obtain a flight control vector;

[0171] Extracting features of the flight state instruction to obtain a flight state vector;

[0172] According to the flight control vector and the flight state vector, a low-rank multimodal data fusion method is used to fuse the flight control vector and the flight state vector to generate a UAV control instruction.

[0173] Embodiment 3:

[0174] The present invention provides a device for controlling a drone by hand-brain fusion based on a deep neural network, including two parts: hardware and software, wherein the hardware is the following parts: a wireless EEG cap 1 with a control system, a drone 2 with a flight controller, and wearable VR glasses 3. The structure diagram is shown in FIG. Figure 3 As shown:

[0175] The above hardware is described in detail as follows:

[0176] 1. Wireless EEG cap: The wireless EEG cap is a device used to collect human EEG signals. It integrates the control system into the EEG cap, which can realize EEG signal collection, EEG signal conversion, and EEG signal processing. At the same time, it has embedded EEG recognition, gesture recognition, and hand-brain fusion recognition algorithms, which can analyze the user's intentions in real time and generate corresponding flight instructions.

[0177] 2. UAV: ​​A UAV (Unmanned Aerial Vehicle), also known as an Unmanned Aircraft System (UAS), is an aircraft without a crew member. It can perform various tasks through remote control or autonomous flight. The UAV has a built-in flight control system that can adjust the flight attitude and flight status of the UAV through flight instructions.

[0178] 3. Wearable wireless VR glasses: Wireless VR glasses are a type of virtual reality head-mounted display device that communicates with computers or other devices through wireless connections to provide an immersive virtual reality experience. It can obtain real-time images sent back by drones through wireless communications, and has a built-in visual stimulation unit to stimulate brain electrical signals that generate different commands, thereby controlling drones. At the same time, VR glasses have a built-in camera that can record gestures, transmit gestures to the EEG cap recognition module through wireless communications, analyze gestures, and generate corresponding flight missions.

[0179] The communication between the above devices is carried out using 5G communication technology. The present invention uses three methods to obtain flight instructions and control the drone, such as Figure 3 As shown in ①, the visual stimulation produced by VR glasses produces specific stimulation to the brain, and the brain produces specific SSVEP signals. Through the built-in control system of the EEG cap, the EEG signals are first converted into digital signals and transmitted to the control system, and then the EEG signals are received and processed, the user's intentions are analyzed in real time, and corresponding flight control instructions are generated. Figure 3 As shown in ②, the built-in camera of the VR glasses is used to obtain the gesture action, and the gesture action image is transmitted to the EEG cap control system through wireless communication. The image is processed to identify the image, analyze the user's intention, and then generate the corresponding flight control instructions. Figure 3As shown in ③, the acquired gestures are integrated with the EEG information to generate the control command of the drone. The present invention will determine which method to use to obtain the flight control command according to the actual situation. For example, when modules ① and ② operate normally, method ③ is used for identification and control. When one of the modules ① and ② fails, another method is used to execute, thereby improving the reliability and stability of the system. Finally, the command is transmitted to the flight controller of the drone through wireless communication, and the flight attitude and flight parameters of the drone are adjusted according to the flight control command.

[0180] The present invention also designs an EEG signal recognition algorithm, a gesture recognition algorithm, and a hand-brain fusion recognition algorithm based on the above hardware parts. Each recognition algorithm includes two parts: data collection and preprocessing and classification recognition, which constitute the software part of the system.

[0181] The signal acquisition and data processing program in the software part sends the collected data into the recognition and prediction model of the trained deep neural network after certain data processing.

[0182] The flight control command recognition model in the software part uses the sample data collected in the hardware part, the wireless EEG cap, and the VR glasses camera experiment as input data, builds multiple recognition models based on deep neural networks, and trains and tests them.

[0183] The flight control of a drone includes the following steps:

[0184] Step 1: Put the wireless EEG cap and VR glasses on the subject's head.

[0185] Step 2: The VR glasses have a built-in camera and a built-in visual stimulation unit, and you can also watch the real-time images sent back by the drone.

[0186] The camera can collect the control gestures of the experimental subjects in real time and transmit the gesture images to the control system of the EEG cap through wireless communication. By looking at the stimulation signals provided by the visual stimulation unit embedded in the VR glasses (different stimulation signals correspond to different flight control instructions), the subjects will generate different SSVEP signals, which will then be directly transmitted to the control system built into the EEG cap.

[0187] Step 3: Process the acquired data.

[0188] The acquired gesture images are preprocessed by adjusting the image size, data enhancement, and standardization so that they can be input into the gesture recognition model to obtain the recognition results.

[0189] The acquired SSVEP signal is filtered, denoised, and amplified to eliminate noise or other interference and enhance the characteristics of the signal. Finally, the signal is segmented into a fixed data structure so that it can be input into the EEG signal recognition model to obtain the recognition result.

[0190] Step 4: Establish a flight control command recognition model.

[0191] 4.1. EEG signal recognition model

[0192] The EEG signal recognition model in the above software part is used to collect the SSVEP signal sample data in the above steps 1 to 3, that is, the SSVEP signal generated by visual stimulation collected by the wireless EEG cap in step 2, and transmit the collected signal to the signal processing module embedded in the wireless EEG cap for data preprocessing. After preprocessing, an EEG signal recognition model based on a deep neural network is established, and the UAV flight control instructions are obtained after processing by the model. The establishment process of the EEG signal recognition model is as follows: Figure 4 shown.

[0193] The method and steps for establishing the EEG signal recognition model are as follows:

[0194] Step 4.1.1 Collect test sample data.

[0195] Multiple experimenters participated in data collection and obtained rich sample data for training EEG signal recognition models.

[0196] Step 4.1.2. Data preprocessing.

[0197] In order to make the deep neural network have higher training efficiency and prediction accuracy, it is necessary to perform noise reduction on the original data of the experimental samples. The present invention uses sliding filtering to perform noise reduction on the original data. The sliding average filtering means first establishing a data buffer in the RAM to store N sampled data in sequence. Each time a new data is collected, the earliest collected data is discarded, and the arithmetic mean or weighted mean of the subsequent N data including the new data is calculated. In this way, a new average value can be calculated each time a sample is taken, thereby speeding up the data processing.

[0198] The characteristics of sliding filtering are that it has a good suppression effect on periodic interference, high smoothness, and is suitable for systems with high-frequency oscillations.

[0199] The present invention selects a more commonly used data normalization processing method. The main purpose of normalization is to compress all collected data of all categories within the range of [0,1], including two boundary numbers 0 and 1. The calculation formula is as follows:

[0200]

[0201] Step 4.1.3. Dataset division.

[0202] The sample data obtained from the experimenter is made into a data set, 75% of the training samples are taken as the training set and 25% as the test set.

[0203] Step 4.1.4 creates a model and trains and evaluates the model.

[0204] 4.1.4.1 Establish an EEG signal recognition model. The network structure diagram is as follows: Figure 5 As shown in the figure, the transformer model is used, which can detect and identify time series data well. It consists of multiple encoders and decoders, which fuse multi-channel EEG data into a set of time series data input, and finally connect the soft-max layer to classify it.

[0205] 4.1.4.2 Determine model hyperparameters: Initialize weights, number of iterations, select activation functions, batch size, learning efficiency and other related parameters.

[0206] 4.1.4.3 Model training. Read the training samples and input them into the EEG signal recognition model for training.

[0207] The neural network training function uses a gradient optimization method with an adaptive learning rate momentum factor. The transfer function between the input layer and the hidden layer is the RELU function, the activation function between the hidden layer and the output layer is the softmax function, and the activation function between each hidden layer is the linear rectifier function LeakyReLU function with a negative gradient. The initial model training step size is set to 10,000, and the number of data sent to the network for training each time (batch_size) is set to 128.

[0208] 4.1.4.4 Model testing. Test the established model, compare the test results with the actual results, calculate the loss function, and use the cross entropy function as the loss function. When the mean of the loss function tends to be stable, save the model and input the test set data into the model.

[0209] 4.1.4.5 Model evaluation. Evaluate the test results, obtain the accuracy according to the following formula, and determine whether the accuracy meets the predetermined requirements. If not, calculate the gradient, update the weights and biases in reverse, optimize the structural parameters, and continue to train the model.

[0210]

[0211] TP: predicted positive sample, actual positive sample

[0212] FP: predicted as positive sample, actually negative sample

[0213] TN: predicted as a negative sample, actually a negative sample

[0214] FN: predicted as negative sample, actually positive sample

[0215] Step 4.5 obtains the final EEG signal recognition model based on deep neural network.

[0216] 4.2. Gesture Recognition Model

[0217] The gesture recognition model in the above software part is used to collect the gesture image sample data in the above steps 1 to 3, that is, the gesture images collected by the wireless EEG cap control system in step 2, and transmit the acquired gesture images to the data processing module embedded in the wireless EEG cap for data processing, and then establish a gesture recognition model based on a convolutional neural network. After processing by the model, the UAV flight control instructions are obtained. The schematic diagram of the EEG signal recognition model construction framework is shown in the figure. Figure 6 As shown, the method and steps for establishing the gesture recognition model are as follows:

[0218] Step 4.2.1 Collect test sample data.

[0219] Multiple experimenters participated in data collection to obtain rich sample data for training the gesture recognition model.

[0220] Step 4.2.2. Data preprocessing.

[0221] Resize images: Resize all images to the same size, in a square shape.

[0222] Data augmentation: Increase the amount of data and the generalization ability of the model by performing random rotation, flipping, scaling, and other operations on the image.

[0223] Normalization: Normalize the pixel values ​​of an image to a specific range, such as [0,1] or [-1,1].

[0224] Step 4.2.3 Dataset division.

[0225] The experimental data collected from the experimenter is made into a data set, and 75% of the training samples are taken as the training set and 25% as the test set.

[0226] Step 4.2.4 creates a model and trains and evaluates the model.

[0227] 4.2.4.1 Establish a gesture recognition model based on convolutional neural network. This model uses a convolutional neural network with residual blocks. Its specific structure has 18 layers and is divided into five parts. The first part is initialization, including a convolution layer and a pooling layer. The convolution layer and the pooling layer use 3*3 convolution blocks to perform preliminary data processing. The second part is divided into 4 layers. Each layer introduces a residual block. Each layer has two residual blocks. Each residual block has two convolution layers, and its number of channels is consistent with the number of input channels. After 4 layers, the fully connected layer is connected, and finally the soft-max layer is connected for classification to identify the drone flight instructions. The model construction framework diagram is shown below. Figure 7 shown.

[0228] 4.2.4.2 Determine model hyperparameters: Initialize weights, number of iterations, select activation functions, batch size, learning efficiency and other related parameters.

[0229] 4.2.4.3 Model training. Read the training data and input it into the convolutional neural network gesture recognition model for training.

[0230] The neural network training function uses Adam's gradient optimization method. The transfer function between the input layer and the hidden layer is the RELU function, the activation function between the hidden layer and the output layer is the softmax function, and the activation function between each hidden layer is the linear rectification function LeakyReLU function with a negative gradient. The number of data sent to the network for training each time (batch_size) is set to 128.

[0231] 4.2.4.4 Model testing. Test the established model, compare the test value with the true value, calculate the loss function, use the cross-entropy loss function as the loss function, and continuously train the model so that the loss value approaches 0 and becomes stable. Finally, save the model.

[0232] 4.2.4.5 Model evaluation. Select the test set in the data set as the input, input it into the obtained model, calculate its accuracy, and determine whether the accuracy meets the requirements. If it does, end the training; if it does not, calculate the gradient, update the weights and biases in reverse, optimize the structural parameters, and continue to train the model.

[0233] Step 4.2.5 obtains the final gesture recognition model based on convolutional neural network.

[0234] 4.3. Hand-brain fusion recognition model

[0235] The hand-brain fusion recognition model in the above software part is used to collect gesture image samples and EEG data collected by the EEG cap in the above steps one to three, that is, the gesture images collected by the wireless EEG cap control system in step two and the EEG signals acquired by the EEG cap, and transmit the acquired gesture images and EEG signals to the data processing module embedded in the wireless EEG cap, perform data processing on them respectively, and then establish a hand-brain recognition model based on multimodal fusion, and obtain the UAV flight control instructions by the model analysis. The network architecture diagram of the hand-brain recognition model is shown in the figure below. Figure 8 shown.

[0236] 4.2.4.1 Establish a gesture recognition model based on convolutional neural network. The model uses convolutional neural network with residual blocks. Its specific structure has 18 layers and is divided into five parts. The first part is initialization, including a convolution layer and a pooling layer. The convolution layer and the pooling layer use 3*3 convolution blocks to perform preliminary data processing. The second part is divided into 4 layers. Residual blocks are introduced in each layer. Each layer has two residual blocks. Each residual block has two convolution layers, and its number of channels is consistent with the number of input channels. After 4 layers, the fully connected layer is connected, and finally the soft-max layer is connected for classification to identify the flight instructions of the drone.

[0237] The method and steps for establishing the hand-brain fusion recognition model are as follows:

[0238] Step 4.3.1 Collect test sample data.

[0239] Multiple experimenters participated in data collection and obtained rich sample data.

[0240] Step 4.3.2. Data preprocessing.

[0241] The gesture image data processing method is the same as step 4.2.2.

[0242] The EEG signal data processing method is the same as step 4.1.2.

[0243] Step 4.3.3 Dataset division.

[0244] Take 75% of the training samples as the training set and 25% as the test set.

[0245] Step 4.3.4 creates a model and trains and evaluates the model.

[0246] 4.3.4.1 Establish a hand-brain recognition model based on multimodal fusion, 1) Feature extraction layer (featureextraction layer FEL), which takes a certain dimension of unimodal data as input and outputs a feature-rich vector. 2) Modal fusion layer (Modal fusion layer, MFL), which consists of two parts, the first part is to fuse the EEG signals of different channels into a set of sequences through a low-rank multimodal fusion method; the second part is to fuse the EEG signals fused into a set of sequences with the gesture recognition sequence. 3) Control instruction recognition layer (Control instruction recognition, CIN), which is a network conditioned on the output of the multimodal fusion layer, performs control instruction recognition. The input of the control instruction recognition model is multimodal data of EEG signals and gesture images. The flow chart of the feature extraction framework of the model is shown in the figure. Fig. 9 shown.

[0247] The modal fusion layer includes tensor fusion network (TFN) and low-rank multimodal fusion (LMF), such as Fig.10 shown.

[0248] 4.3.4.2 Determine model hyperparameters: Initialize weights, number of iterations, select activation functions, batch size, learning efficiency and other related parameters.

[0249] 4.3.4.3 Model training. Read the training data and input it into the hand-brain recognition model for training.

[0250] The neural network training function uses Adam's gradient optimization method. The transfer function between the input layer and the hidden layer is the RELU function, the activation function between the hidden layer and the output layer is the softmax function, and the activation function between each hidden layer is the LeakyReLU function, a linear rectifier function with a negative gradient.

[0251] 4.3.4.4 Model testing. Test the established model, compare the test value with the actual volume, calculate the loss function, and when the mean value of the loss function tends to be stable, start training the input data, and then compare the predicted results with the target value to determine whether the system status and the data entering the system are abnormal.

[0252] 4.3.4.5 Model evaluation. Evaluate the test results to determine whether the accuracy meets the requirements or whether the number of training steps has been reached. If so, end the training; if not, calculate the gradient, update the weights and biases in reverse, optimize the structural parameters, and continue training samples.

[0253] Step 4.3.5 obtains the final hand-brain recognition model.

[0254] Step 5: Data processing.

[0255] The various collected data are transmitted to the data processing module, and the UAV flight instructions are obtained through the established control instruction recognition model.

[0256] Step 6: The UAV flight control system executes the flight mission according to the flight instructions obtained;

[0257] Step 7: The drone transmits the scene back in real time, providing necessary information for the next instruction.

[0258] Compared with the prior art, the present invention provides a device for controlling a drone by hand-brain fusion based on a deep neural network, which is an improvement in that:

[0259] It is more intuitive and natural. Brain-controlled drones use brain-computer interface technology to allow users to control the flight of drones directly through thinking, avoiding the tedious manual control process and being more in line with the natural way of thinking of humans. Highly intelligent. Brain-controlled drones use EEG signals to achieve flight control and have a high level of intelligence. It can make corresponding flight actions according to the user's intentions and emotions to achieve intelligent flight operations. And reduce the operating burden. Compared with traditional remote-controlled drones, brain-controlled drones do not require operators to manually control the remote control, which greatly reduces the burden on operators, especially in long-term continuous flight missions, which can effectively relieve the fatigue of operators. At the same time, it improves the response speed. Brain-controlled drones use EEG signals to achieve flight control and have a faster response speed. Because the user's intentions can be directly converted into control instructions, without the intermediate links of human hands, flight missions can be performed more quickly. It can also enhance safety. Brain-controlled drones reduce the possibility of human error, because flight control is directly realized by the brain-computer interface device reading the user's EEG signals, reducing operational risks and improving flight safety. Adapting to diversified applications, brain-controlled drones can be used in a variety of fields, including military reconnaissance, disaster relief, scientific research, entertainment, etc. At the same time, the present invention adds a gesture control module, which can use gestures to control the drone, which is redundant with brain control and has broad application prospects and potential commercial value.

[0260] 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 and optical storage, etc.) containing computer-usable program code.

[0261] 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 processor, or other programmable data processing device to produce 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.

[0262] 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.

[0263] 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 The steps for the functions specified in one or more boxes.

[0264] 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 fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for controlling a drone using hand-brain fusion based on a deep neural network, characterized in that: include: Convert the collected user's EEG signals into flight control commands; Convert the collected user's gesture signals into flight status instructions; Generate UAV control instructions using a multimodal data fusion method according to the flight control instructions and the flight status instructions; Based on the UAV control instruction, the UAV is controlled in flight.

2. The method according to claim 1, characterized in that The step of converting the collected user's EEG signals into flight control instructions includes: Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals; Performing data preprocessing on the digital signal to obtain processed EEG data; According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained; Generating flight control instructions according to the user's EEG intention; The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.

3. The method according to claim 2, characterized in that The EEG signal recognition model includes the following construction process: Initializing network parameters of the EEG signal recognition model; Using historical processed EEG data as input of first training data; Using the EEG intention corresponding to the historical processed EEG data as output of the first training data; Based on the input and output of the first training data, a transformer model is trained, and network parameters in the transformer model are updated by a gradient optimization method of an adaptive learning rate momentum factor; Based on the updated network parameters, the transformer model is updated, and by calculating the cross entropy loss function of the updated transformer model, the network parameters in the updated transformer model are adjusted using a back propagation algorithm to obtain an EEG signal recognition model.

4. The method according to claim 1, characterized in that The step of converting the collected user's gesture signal into a flight status instruction includes: Collecting user's gesture image data through a wireless EEG cap, and performing image preprocessing on the gesture image data to obtain processed gesture data; According to the processed gesture data, a gesture intention is obtained using a pre-built gesture recognition model; generating a flight status instruction according to the gesture intention; The graphic preprocessing includes: size transformation, data enhancement and data standardization.

5. The method according to claim 4, characterized in that The flight status instruction includes one or more of the following: flight attitude, flight speed and flight direction.

6. The method according to claim 4, characterized in that The network structure of the gesture recognition model includes: The initialization module, residual module, fully connected module and Softmax classification module are connected in sequence; Wherein, the initialization module includes a convolutional layer and a pooling layer connected in sequence; The residual module includes a first residual layer, a second residual layer, a third residual layer and a fourth residual layer which are connected in sequence.

7. The method according to claim 4, characterized in that The gesture recognition model includes the following construction process: Initializing network parameters of the gesture recognition model; Using the historical processed gesture data as input of the second training data; outputting the gesture intention corresponding to the historical processed gesture data as the second training data; Based on the input and output of the second training data, a convolutional neural network is trained, and network parameters in the convolutional neural network are updated by an Adam gradient optimization method; Based on the updated network parameters, the convolutional neural network is updated, and by calculating the cross entropy loss function of the updated convolutional neural network, the network parameters in the updated convolutional neural network are adjusted using a back propagation algorithm to obtain a gesture signal recognition model.

8. The method according to claim 1, characterized in that The method of generating a UAV control instruction based on the flight control instruction and the flight state instruction by using a multimodal data fusion method includes: Extracting features of the flight control instruction to obtain a flight control vector; Extracting features of the flight state instruction to obtain a flight state vector; According to the flight control vector and the flight state vector, a low-rank multimodal data fusion method is used to fuse the flight control vector and the flight state vector to generate a UAV control instruction.

9. A system for controlling drones by hand-brain fusion based on deep neural networks, characterized in that: include: Control command conversion module: used to convert the collected user's EEG signals into flight control commands; State instruction conversion module: used to convert the collected user's gesture signals into flight state instructions; A flight instruction generation module is used to generate a UAV control instruction according to the flight control instruction and the flight status instruction by using a multimodal data fusion method; UAV flight control module: used to control the flight of the UAV based on the UAV control instructions.

10. The system according to claim 9, characterized in that The control instruction conversion module is specifically used for: Collect the user's EEG signals through a wireless EEG cap and convert the EEG signals into corresponding digital signals; Performing data preprocessing on the digital signal to obtain processed EEG data; According to the processed EEG data, using a pre-built EEG signal recognition model, the EEG intention of the user is obtained; Generating flight control instructions according to the user's EEG intention; The data preprocessing includes one or more of the following: data filtering, data denoising, data enhancement and data segmentation.