Data processing method, device and equipment and computer readable storage medium
By mapping brainwave data to the metaverse virtual space in real time and generating corresponding information to trigger virtual musical instrument performance and visual elements, the problem of insufficient immersion and interest in brainwave data applications is solved, and the immersion of the metaverse space is improved. .
Patent Information
- Application Number
- CN202311540355.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the application of human brainwave data in the metaverse space is relatively limited, and it is impossible to achieve enhanced immersion and fun.
By collecting the brainwave data of the target user, mapping it to the virtual space of the metaverse in real time and completely, generating corresponding information to trigger the performance of virtual instruments and music synthesis, generating visual elements and rendering visual scenes, triggering control instructions, and realizing The immersion and fun of brainwave data in the metaverse space.
It achieves real-time and complete mapping of brainwave data in the metaverse space, and integrates triggering of virtual musical instrument performance, visual element generation and manipulation instructions, enhancing the immersion and fun of the metaverse space.
Smart Images

Figure CN118796027A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, equipment and computer-readable storage medium. Background Art
[0002] At present, brain-computer interface (BCI) is widely used in many research fields such as computer science, neuroscience, bioengineering, signal processing, etc. With the help of BCI technology, animals and humans can control their own behavior through "thoughts". With the continuous development of BCI technology, BCI will likely become the ultimate access method for the Metaverse and achieve an immersive effect.
[0003] However, in the related technology, the application of human brain wave (EEG, Electroencephalogram) data (hereinafter referred to as brain wave data) in the metaverse space is relatively limited, and it is impossible to enhance the immersion and fun of the application of brain wave data in the metaverse space. Summary of the invention
[0004] In order to solve the technical problems existing in the related art, the embodiments of the present application provide a data processing method, device, equipment and computer-readable storage medium.
[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:
[0007] Collect brainwave data of target users;
[0008] Mapping the brainwave data to an application in a first space; the first space represents a virtual space of the metaverse;
[0009] Based on the brain wave data, corresponding first information is generated; the first information is used for at least one of the following:
[0010] Trigger the performance of virtual instruments and the synthesis of music;
[0011] Generate visual elements and render visual scenes accordingly;
[0012] Triggering a manipulation instruction for controlling the first space.
[0013] In a second aspect, an embodiment of the present application further provides a data processing device, including:
[0014] A collection unit, used to collect brain wave data of a target user;
[0015] A first processing unit, configured to map the brainwave data to an application in a first space; the first space represents a virtual space of the metaverse;
[0016] The second processing unit is configured to generate corresponding first information based on the brain wave data; the first information is used for at least one of the following:
[0017] Trigger the performance of virtual instruments and the synthesis of music;
[0018] Generate visual elements and render visual scenes accordingly;
[0019] Triggering a manipulation instruction for controlling the first space.
[0020] In a third aspect, an embodiment of the present application further provides a data processing device, comprising: a processor and a memory for storing a computer program that can be run on the processor;
[0021] Wherein, when the processor is used to run the computer program, it executes the steps of the data processing method described in the embodiment of the present application.
[0022] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method described in the embodiment of the present application are implemented.
[0023] The data processing method, device, equipment and computer-readable storage medium provided in the embodiments of the present application collect the brainwave data of the target user, map the brainwave data to the application of the first space, the first space represents the virtual space of the metaverse, and based on the brainwave data, generate corresponding first information; the first information is used for at least one of the following: triggering the performance of virtual musical instruments and the synthesis of music; generating visual elements and rendering visual scenes accordingly; triggering control instructions for controlling the first space. In other words, the data processing method of the embodiments of the present application maps the brainwave data to the application of the virtual space of the metaverse in real time and completely, and generates corresponding first information, which can integrate the functions of triggering the performance of virtual musical instruments and the synthesis of music, generating visual elements and rendering visual scenes accordingly, and triggering control instructions for controlling the virtual space of the metaverse, thereby enhancing the immersion and fun of brainwave data in the application of the metaverse space. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 The data processing method of the present invention is shown in FIG. Figure 1 ;
[0025] Figure 2 The data processing method of the present invention is shown in FIG. Figure 2 ;
[0026] Figure 3 A schematic diagram of the structure of a data processing system according to an embodiment of the present application;
[0027] Figure 4 Schematic diagram of the rhythmic curve of brain activity of participants to musical melodies provided for this application;
[0028] Figure 5 A schematic diagram of collecting brain wave data through a non-invasive electroencephalogram provided in this application;
[0029] Figure 6 Schematic diagram of the brain wave data conversion and transmission process provided for this application;
[0030] Figure 7 Schematic diagram of 2D visual elements provided for this application;
[0031] Figure 8 A schematic diagram of the structure of a data processing device according to an embodiment of the present application;
[0032] Fig. 9 Schematic diagram of the hardware structure of the data processing device according to the embodiment of the present application. DETAILED DESCRIPTION
[0033] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0035] Brain-computer interface (BCI) realizes a communication control system that does not rely on the normal output channels of peripheral nerves and muscles in the brain by decoding brain wave signals. It involves multiple research fields such as computer science, neuroscience, bioengineering, and signal processing. Among them, the human brain's delta / theta / alpha / beta / gamma waves have different physical and physiological meanings and have been widely studied academically. Commonly used EEG signal acquisition methods include EEG, electrocorticography (EcoG), magnetoencephalography (MEG), functional magnetic resonance imaging (fMRI), etc. Among them, the EEG system is relatively cheap and portable, and is the most common neuroimaging method in BCI research.
[0036] The metaverse is a technology application that uses high-tech means such as virtual reality, artificial intelligence, cloud computing, digital twins, and blockchain to map the physical world into a virtual world composed of digital numbers and the Internet.
[0037] With the continuous development of brain-computer interface technology, it is possible that brain-computer interface technology will become the ultimate access method and solution for the metaverse, achieving an immersive effect. At present, there are applications in related technologies that use brain-computer interface technology to achieve brain-computer interaction.
[0038] For example, currently, brain-computer interface technology has the following applications: In April 2021, the brain-computer interface company Neuralink successfully implanted a brain-computer interface in a monkey's brain and achieved mind typing; on May 25, 2023, it announced that it had obtained approval from the U.S. Food and Drug Administration to launch the first human clinical study of brain implants; on May 8, 2023, the world's first non-human primate interventional brain-computer interface trial led by a scientific research team from Nankai University was successful in Beijing; in 2017, Boston startup Neurable demonstrated how users can control virtual reality (VR) games through their thoughts. The experiencer can use his eyes as a 'mouse', move to the object he wants to select, and then 'click' the object with his mind.
[0039] At present, some schemes for the application of brainwave data in the metaverse space have been proposed in the relevant technology. For example, scheme 1 in the relevant technology proposes a method for generating brainwave music. This scheme collects brainwave signals through standard EEG acquisition equipment, and then maps the brainwave signal parameters including period, amplitude, and average power of each period of the signal to the three parameters of length, pitch, and intensity in the music, thereby obtaining a brainwave music clip; finally, the brainwave music clip is subjected to beat filtering (filtering according to the reference length) and mode filtering (determining the mode according to the characteristics of the music) in turn, and finally polyphonic ensemble music is generated.
[0040] Solution 2 in the related technology proposes a metaverse social multimedia system based on brain waves. The method obtains brain wave signals by a head-mounted brain wave signal detector, and the processing unit first extracts emotions and various brain wave parameter information from the user's brain waves; then the sound range conversion unit in the processing unit converts the brain wave values into corresponding music melodies based on a specific algorithm, and the color conversion unit in the processing unit converts each brain wave band into different colors, and the change of color concentration is controlled by the amplitude of the brain wave value, and the emotion conversion unit in the processing unit expresses the user's emotions in the expression of the user's corresponding virtual character in the metaverse space; finally, the space scene player integrates the audio, color information, and virtual character corresponding to the user's brain waves into the metaverse space where the user is located for presentation, thereby realizing the scene change of the metaverse space based on brain wave signals.
[0041] Solution three in the related technology proposes a brain-computer art system and its working method, which uses a wearable EEG signal acquisition device to collect the user's EEG signal; the EEG signal is preprocessed by filtering, downsampling, ICA analysis and other preprocessing work through a preprocessing unit; the preprocessed EEG signal data is combined with the user's blood type and constellation information to find the pre-stored painting style (12 painting styles) and painting method (5 painting methods) from the correspondence table, for example, the painting style corresponding to Alpha-AB-Sagittarius is Miró; based on the corresponding painting method, a painting corresponding to the preprocessed EEG signal data is generated in the software system and displayed to the user.
[0042] It can be seen that in the solutions of related technologies, the application of human brain wave data in the metaverse space is relatively limited, and it is impossible to enhance the immersion and fun of the application of brain wave data in the metaverse space.
[0043] Based on this, an embodiment of the present application proposes a data processing method. In various embodiments of the present application, brain wave data is mapped in real time and completely to the application of the virtual space of the metaverse, and corresponding first information is generated. The first information can integrate the functions of triggering the performance of virtual musical instruments and the synthesis of music, generating visual elements and rendering visual scenes accordingly, and triggering control instructions for controlling the virtual space of the metaverse, thereby enhancing the immersion and fun of the application of brain wave data in the metaverse space.
[0044] The present application embodiment provides a data processing method, which is applied to a data processing device. Figure 1 The data processing method of the present invention is shown in FIG. Figure 1 ;like Figure 1 As shown, the method includes:
[0045] Step 101: Collect brain wave data of the target user.
[0046] In one embodiment, the data processing device may collect brain wave data of the target user using a wearable EEG signal acquisition device, wherein the wearable EEG signal acquisition device includes a non-invasive EEG device, such as Mindflex, Muse, or Brainlink headband; that is, the target user can monitor and collect the brain wave data of the target user in real time by wearing the non-invasive EEG device.
[0047] Here, the brainwave data of the target user includes at least one brainwave frequency band, concentration (Attention) and meditation value (Meditation). Among them, the at least one brainwave frequency band includes 8 brainwave frequency bands, and different brainwave frequency bands correspond to different brainwave types, and the brainwave types include at least one of the following: Delta; Theta; Low Alpha; High Alpha; Low Beta; High Beta; Low Gamma; High Gamma. Table 1 shows the correspondence between different brainwave frequencies and brain states. The brain state corresponding to any brainwave frequency band can be obtained through Table 1.
[0048]
[0049]
[0050]
[0051] Table 1
[0052] Step 102: Map the brainwave data to an application in a first space; the first space represents a virtual space of the metaverse.
[0053] In actual application, in order to improve the efficiency of brain wave data transmission, the data processing device needs to perform preprocessing operations on the collected brain wave data of the target user before transmitting the brain wave data.
[0054] Based on this, in one embodiment, before mapping the brain wave data to the application in the first space, the method further includes:
[0055] Preprocessing the brain wave data to obtain processed brain wave data;
[0056] The application program for mapping the brain wave data to the first space includes:
[0057] The processed brain wave data is mapped to an application in the first space.
[0058] Here, the preprocessing of the brain wave data includes at least one of the following:
[0059] The brain wave data is amplified; the brain wave data is enhanced; the brain wave data is filtered; and the brain wave data is downsampled.
[0060] It should be noted that the processed brain wave data can be presented in the form of a byte stream (byte), and of course can also be presented in other forms, which is not limited in the embodiments of the present application.
[0061] In actual application, the data processing device needs to convert the format of the pre-processed brain wave data before transmitting the brain wave data.
[0062] Based on this, in one embodiment, mapping the processed brain wave data to an application in the first space includes:
[0063] Converting the format type of the processed brain wave data into a target format type to obtain brain wave data of a corresponding target format type; the target format type is a data format type supported by an application in the first space;
[0064] The brain wave data of the target format type is transmitted to the application in the first space by one of the following methods: wired transmission method; wireless transmission method.
[0065] For example, assuming that the format type of the preprocessed brain wave data is byte, the data processing device converts the brain wave data with the format type of byte into an ASCII type data stream supported by the application of the virtual space of the metaverse, that is, the ASCII type data stream is the brain wave data of the target format type.
[0066] Here, the transmission method of the target format type of brain wave data may be a wired transmission method, such as transmitting the target format type of brain wave data through a universal serial bus (USB) interface; the transmission method of the target format type of brain wave data may also be a wireless transmission method, such as transmitting the target format type of brain wave data through a 5G network, Bluetooth, etc., and the embodiments of the present application do not limit this.
[0067] Step 103: Generate corresponding first information based on the brain wave data; the first information is used for at least one of the following:
[0068] Trigger the performance of virtual instruments and the synthesis of music;
[0069] Generate visual elements and render visual scenes accordingly;
[0070] Triggering a manipulation instruction for controlling the first space.
[0071] Here, the generation of corresponding first information based on the brain wave data in step 103 can be executed in an application in the first space, namely, the virtual space of the metaverse.
[0072] In actual application, in the application of the virtual space of the metaverse, the data processing device can convert the brain wave data in each frequency band into a digital music interface (MIDI, Musical Instrument Digital Interface) message, that is, a first message, and generate first information based on the MIDI message for triggering the performance of virtual musical instruments and the synthesis of music.
[0073] Based on this, in one embodiment, generating corresponding first information based on the brain wave data includes:
[0074] generating a first message based on the brainwave data; the brainwave data comprising at least one brainwave frequency band, the first message representing a MIDI message;
[0075] Based on the first message, first information for triggering performance of a virtual musical instrument and synthesis of music is generated.
[0076] It should be noted that MIDI is an instant communication protocol between electronic musical instruments, synthesizers and other performance devices, which is used to transmit real-time performance data.
[0077] In one embodiment, generating a first message based on the brain wave data includes:
[0078] Analyzing the brain wave data to obtain brain wave data of at least one channel; each channel corresponds to a brain wave frequency band;
[0079] The brain wave data of the at least one channel are respectively converted into corresponding first messages.
[0080] Here, the data processing device, in the application of the virtual space of the metaverse, first parses the received brainwave data and separates the brainwave data into multiple independent channels, and each channel corresponds to a specific brainwave frequency band; that is, by parsing the brainwave data, brainwave data of at least one channel can be obtained, and each channel corresponds to a brainwave frequency band; next, the brainwave data of at least one channel is converted into a corresponding first message, namely, a MIDI message, and the corresponding MIDI message is transmitted through an independent data transmission channel.
[0081] In one embodiment, the brain wave data includes at least one brain wave frequency band; before generating first information for triggering performance of a virtual musical instrument and synthesis of music based on the first message, the method further includes:
[0082] For the at least one brainwave frequency band, respectively create corresponding MIDI tracks, and respectively assign a corresponding virtual instrument to each of the MIDI tracks;
[0083] The generating, based on the first message, first information for triggering the performance of the virtual musical instrument and the synthesis of the music comprises:
[0084] The first information is generated based on the first message of each MIDI track; the first information is used to trigger the performance of the virtual musical instrument corresponding to the MIDI track, and to synthesize the music generated by the at least one brainwave frequency band.
[0085] Here, the data processing device creates a corresponding MIDI track for each brainwave frequency band in an application in the virtual space of the metaverse, and assigns a specific virtual musical instrument. In this way, the performance of the corresponding virtual musical instrument can be controlled by MIDI messages. For example, the performance of the electronic guitar can be controlled by the brainwave frequency band Low Alpha. Finally, the performances of the virtual musical instruments of all MIDI tracks are synthesized to obtain the target music, and the target music is played. The embodiment of the present application does not impose any limitation on the way the target music is played.
[0086] In actual application, in order to add visual elements to the virtual space of the metaverse and make the visual effects richer, the data processing device will synchronously transmit the brain wave data to the application of the virtual space of the metaverse, so that in the application of the virtual space of the metaverse, visual elements are generated based on the brain wave data and the visual scene is rendered accordingly.
[0087] Based on this, in one embodiment, generating corresponding first information based on the brain wave data includes:
[0088] generating a visual element in the first space based on the brain wave data; wherein the visual element corresponds to at least one brain wave frequency band included in the brain wave data;
[0089] Based on the visual elements, first information for indicating a rendered visual scene is generated.
[0090] Here, the visual element may be a 2D graphic or a 3D model, and the embodiment of the present application does not impose any limitation on the form of expression of the visual element.
[0091] It should be noted that, since there is a corresponding relationship between the visual elements and at least one brain wave frequency band included in the brain wave data, the size of each visual element will dynamically change with the frequency of the corresponding brain wave data, thereby achieving timely updating of the visual elements.
[0092] In actual application, the data processing device can trigger different control instructions through the concentration and meditation values in the real-time monitored brain wave data, thereby controlling the virtual space of the metaverse through corresponding control instructions.
[0093] Based on this, in one embodiment, generating corresponding first information based on the brain wave data includes:
[0094] determining whether the brain wave data satisfies a first condition;
[0095] When it is determined that the brain wave data satisfies the first condition, first information for triggering a manipulation instruction for controlling the first space is generated.
[0096] Here, controlling the first space may, for example, include changing the background color of the first space, i.e., the virtual space of the metaverse, etc., and the embodiments of the present application are not limited thereto.
[0097] In actual application, the brain wave data also includes concentration and meditation value, and whether the brain wave data meets the first condition can be determined by the concentration and meditation value.
[0098] Based on this, in one embodiment, determining that the brain wave data satisfies the first condition includes:
[0099] monitoring the concentration and the meditation value in the brain wave data;
[0100] When the concentration is greater than a set first threshold and / or the meditation value is greater than a set second threshold, it is determined that the brain wave data meets the first condition; the concentration and the meditation value are respectively used to trigger corresponding control instructions.
[0101] Here, the first threshold and the second threshold can be set according to actual needs, and the embodiment of the present application is not limited here.
[0102] Specifically, the data processing device monitors the concentration and meditation value in the brain wave data of the target user in real time. When at least one of the concentration and meditation value is greater than a set threshold, the corresponding control instruction in the application of the virtual space of the metaverse is triggered. It should be noted that the concentration and meditation value can be used to trigger different control instructions respectively.
[0103] For example, the concentration value range is between 0-100. When the user is very focused and the concentration is greater than 60, the control instructions corresponding to the concentration in the application of the virtual space of the metaverse will be automatically triggered, such as changing the background color of the virtual space of the metaverse, shooting, etc.
[0104] The present application also provides another data processing method, which is applied to a data processing device. Figure 2 The data processing method of the present invention is shown in FIG. Figure 2 ;like Figure 2 As shown, the method includes:
[0105] Step 201: Collect brain wave data of the target user.
[0106] Here, the brainwave data of the target user includes at least one brainwave frequency band, concentration, and meditation value.
[0107] Step 202: pre-processing the brain wave data to obtain processed brain wave data.
[0108] Here, the preprocessing of the brain wave data includes at least one of the following:
[0109] The brain wave data is amplified; the brain wave data is enhanced; the brain wave data is filtered; and the brain wave data is downsampled.
[0110] Step 203: converting the format type of the processed brain wave data into a target format type to obtain brain wave data of the corresponding target format type.
[0111] Here, the target format type is a data format type supported by an application of the first space; the first space represents a virtual space of the metaverse.
[0112] Step 204: Transmit the brainwave data of the target format type to the application in the first space by one of the following methods: wired transmission method; wireless transmission method.
[0113] Step 205: Generate corresponding first information based on the brain wave data; the first information is used for at least one of the following: triggering the performance of virtual musical instruments and the synthesis of music; generating visual elements and rendering visual scenes accordingly; triggering control instructions for controlling the first space.
[0114] It should be noted that the specific processing process of the data processing device to complete the data processing has been described in detail above and will not be repeated here.
[0115] By adopting the technical solution of the embodiment of the present application, brain wave data is mapped in real time and completely to the application of the virtual space of the metaverse, and corresponding first information is generated. This first information can integrate the functions of triggering the performance of virtual musical instruments and the synthesis of music, generating visual elements and rendering visual scenes accordingly, and triggering control instructions for controlling the virtual space of the metaverse, thereby enhancing the immersion and fun of the application of brain wave data in the metaverse space.
[0116] The present application is described below in conjunction with application examples.
[0117] This application is based on consumer-grade EEG meters and open source software to achieve real-time and complete mapping of human brain wave data (EEG) into the virtual space of the metaverse, and convert it into visual and auditory elements and control instructions in the virtual space of the metaverse, thereby enhancing the immersion and fun of the virtual space applications of the metaverse.
[0118] Compared with the solutions in the related art, the solution of the present application has the following differences:
[0119] Scheme 1 in the aforementioned related technology uses a parameter mapping method to generate brainwave music clips, and the generation process is non-real-time, while the scheme of the present application uses a method of directly converting brainwave data into music elements that control the performance of virtual musical instruments, and the generation process is real-time; the scheme in the aforementioned related technology only provides the generation of brainwave music, while the scheme of the present application, based on brainwave music, synchronously converts brainwave data into visual elements to construct a visual effect that complements brainwave music.
[0120] For the generation of brainwave music, the second solution in the aforementioned related technology converts the brainwave data of a period of time into notes as a whole according to a specific algorithm, arranges them in sequence to create a melody, and then a designated instrument plays the melody; while the solution of the present application parses the brainwave data into multiple brainwave frequency bands, each of which controls the performance of a different virtual instrument. For example, the brainwave frequency band Low Alpha controls the performance of an electronic guitar in a music engine, and finally the music engine synthesizes and plays the music generated by all frequency bands. Therefore, the timbre of the brainwave music generated by the solution of the present application is relatively rich; the second solution in the aforementioned related technology converts brainwave data into different colors in the metaverse space, while the solution of the present application uses brainwave data to generate visual elements in the metaverse space. The visual elements can be 2D graphics or 3D models. Each type of brainwave frequency band corresponds to a visual element, and the size of each visual element changes dynamically according to the frequency of the corresponding brainwave, making the visual effect richer; the solution of the present application can trigger the operation instructions of the metaverse space application through the user's concentration and meditation value, thereby enhancing interactivity.
[0121] Solution three in the aforementioned related technology finds the painting style and method based on the performance characteristics of brain wave data (for example, low Alpha represents stress and anxiety) combined with the user's blood type and zodiac sign, and completes the artistic creation. However, the accuracy of current brain wave characteristic analysis technology is low, and it can only be said to be a semi-quantitative technology, and a brain state may involve brain wave changes in multiple frequency bands; the solution of the present application parses brain wave data into data channels of different frequency bands, which are mapped into visual and auditory elements and control instructions respectively, and the use and expression of brain wave data is more complete.
[0122] The implementation process of the solution of this application is described below.
[0123] The present application provides a method for processing brain wave data for a metaverse scenario, namely the aforementioned data processing method. In order to implement the method, the present application also provides a data processing system. Figure 3 This is a structural diagram of the data processing system of an embodiment of the present application. The data processing system includes the following parts: a data acquisition module, a preprocessing module, a brain wave data conversion and transmission module, a brain wave auditory module, a brain wave visualization module and a command control module.
[0124] Specifically, first, the user's brain wave data is collected through the data acquisition module, for example, the user's brain wave data is monitored in real time through a non-invasive electroencephalogram; secondly, the acquired brain wave data is pre-processed such as amplification, enhancement, filtering, downsampling, etc. through the preprocessing module, wherein the brain wave data includes at least one brain wave frequency band, concentration and meditation value; further, the original brain wave data is converted into a data format type supported by the metaverse space application through the brainwave data conversion and transmission module, and transmitted to the running environment of the metaverse space application in real time; in the metaverse space application, the brainwave data in each frequency band is converted into MIDI messages through the brainwave auditory module, which are used to trigger the performance and music synthesis of the specified virtual musical instrument; the brainwave data is used to generate visual elements in the metaverse space through the brainwave visualization module, and the screen rendering is completed; the concentration and meditation value in the user's brainwave data are monitored in real time through the instruction control module, and when it is greater than the set threshold, the corresponding instruction of the metaverse space application is triggered; finally, it is integrated and presented in the metaverse scene.
[0125] In order to explore the relationship between music and brain wave signals, during the experiment, participants were asked to wear an electroencephalogram device, listen to different types of music, and use brain wave visualization software to monitor the participants' brain activity to the music melody, such as Figure 4 The schematic diagram of the rhythmic curve of brain activity of participants to music melody provided by this application is shown in Figure 4 , the participants' brain rhythms synchronized with the sequence and rhythm of the music. Specifically, soft music triggered a smooth pattern of brain waves, while energetic music led to more irregular brain wave patterns. The experimental observations are consistent with the research of Doelling et al. from the Department of Neuroscience at New York University, which showed that cortical oscillatory activity at low frequencies (<8Hz) and high frequencies (15-30Hz) is closely related to musical auditory behavior performance, showing a bidirectional relationship. Therefore, it is reasonable to use musical elements to represent brain wave frequencies, and there is a corresponding relationship between the two.
[0126] The functions of each module included in the data processing system of the present application are described in detail below.
[0127] 1. Data acquisition module
[0128] The target user wears a non-invasive EEG device (such as Mindflex, Muse, Brainlink headband) to collect the user's brain wave data in real time. For example, the Mindflex EEG device uses a monopolar lead to detect brain wave signals through a metal electrode in contact with the forehead and reference electrodes placed on the left and right ears (i.e., reference electrode 1 and reference electrode 2), see Figure 5 Schematic diagram of collecting brain wave data through non-invasive electroencephalogram.
[0129] 2. Preprocessing module
[0130] The collected brainwave data of the target user is preprocessed by amplification, enhancement, filtering, downsampling and other operations. The preprocessing can be done by the EEG device or by adding an algorithm module such as MNE-Python. For example, the Mindflex EEG device has a preprocessing function, and the preprocessed brainwave data is presented in the form of a byte stream, where the brainwave data includes 8 brainwave frequency bands as well as concentration and meditation values.
[0131] 3. Brain wave data conversion and transmission module
[0132] The preprocessed brainwave data is converted into a data format type supported by the Metaverse space application, and transmitted in real time to the running environment of the Metaverse space application (such as a server or personal computer equipped with Unity or UE engine). Brainwave data transmission can be via wired transmission such as USB data cable or wireless transmission such as 5G network, Bluetooth, etc., without specific limitation here.
[0133] For example, the algorithm library Arduino Brain Library (algorithm library of data format conversion platform) can be used to convert the byte-type (byte) brainwave data stream (i.e., raw byte stream) processed by the Mindflex electroencephalogram device (i.e., electroencephalogram detector, including electroencephalogram chip, microcontroller, and radio station) into an ASCII-type data stream supported by the Metaverse Space application, wherein the raw byte stream is obtained by the electroencephalogram detector through contact electroencephalogram electrodes and baseline electrodes to detect raw brainwave signals; and the converted data stream is transmitted to the server running the Metaverse Space application through the 5G network using the WebRTC network transmission protocol, see Figure 6 Schematic diagram of the brain wave data conversion and transmission process shown.
[0134] 4. Brainwave sonification module
[0135] In the Metaverse space application, first, the received brainwave data is parsed through its music program and separated into multiple independent channels, each channel corresponding to a specific brainwave frequency band; then, the brainwave data in each channel is extracted through the music program, converted into MIDI messages, and sent to the music engine of the Metaverse space application through an independent data transmission channel; then, in the music engine, a MIDI track is created for each brainwave frequency band, and a specific virtual instrument is assigned. The MIDI messages sent by the music program control the performance of the corresponding virtual instrument. For example, the brainwave frequency band Low Alpha can control the performance of the electronic guitar in the music engine; finally, the music engine synthesizes and plays the music generated by all channels.
[0136] For example, using the computer music and multimedia development programming language Pure Data, the specific steps to create a music program are as follows:
[0137] S1, use the "unpack" object to separate the brainwave data stream into eight independent channels, where each channel corresponds to a specific brainwave frequency band.
[0138] S2, for each channel, extracts the brainwave data and maps it to MIDI messages ranging from 0 to 127 using an "autoscale" object.
[0139] S3, uses the “noteout” object to send the generated MIDI messages to the music engine through an independent channel in real time, realizing music creation and performance triggering based on brainwave data.
[0140] 5. Brainwave visualization module
[0141] In order to add visual elements to the Metaverse, the brainwave data will be synchronously transmitted to the visual program of the Metaverse application. The visual program is used to generate visual elements in the Metaverse. Each type of brainwave frequency band corresponds to a visual element, which can be a 2D graphic or a 3D model. The size of each visual element will change dynamically according to the frequency change of the corresponding brainwave data. See Figure 7 Schematic diagram of 2D visual elements shown.
[0142] 6. Command control module
[0143] Real-time monitoring of the concentration and meditation values in brain wave data. When at least one of the concentration and meditation values is greater than the corresponding set threshold, the corresponding instructions of the Metaverse Space application are triggered. For example, the concentration value range is between 0-100. It is found through experiments that when the user is very focused and the concentration value is greater than 60, the operation instructions in the Metaverse Space application are automatically triggered, such as changing the background color of the Metaverse Space, shooting, etc.
[0144] Compared with the solutions of the related art, the solution of the present application has the following beneficial effects:
[0145] (1) The present application parses brainwave data into multiple brainwave frequency bands, each of which controls the performance of a different virtual musical instrument. Finally, the music engine synthesizes and plays the music generated by all frequency bands. Therefore, the timbre of the brainwave music generated by the present application is relatively rich.
[0146] (2) This application uses brain wave data to generate visual elements in the metaverse space. The visual elements can be 2D graphics or 3D models, and the visual effects are richer.
[0147] In order to implement the data processing method of the embodiment of the present application, the embodiment of the present application also provides a data processing device, Figure 8 Schematic diagram of the structure of the data processing device according to the embodiment of the present application. Figure 8 As shown, the data processing device includes:
[0148] A collection unit 81, used to collect brain wave data of a target user;
[0149] A first processing unit 82, for mapping the brainwave data to an application in a first space; the first space represents a virtual space of the metaverse;
[0150] The second processing unit 83 is used to generate corresponding first information based on the brain wave data; the first information is used for at least one of the following:
[0151] Trigger the performance of virtual instruments and the synthesis of music;
[0152] Generate visual elements and render visual scenes accordingly;
[0153] Triggering a manipulation instruction for controlling the first space.
[0154] In one embodiment, the device further includes: a third processing unit; wherein,
[0155] The third processing unit is used to pre-process the brain wave data to obtain processed brain wave data before the first processing unit 82 maps the brain wave data to the application in the first space;
[0156] Accordingly, the first processing unit 82 is specifically configured to:
[0157] The processed brain wave data is mapped to an application in the first space.
[0158] In one embodiment, the first processing unit 82 is further specifically configured to:
[0159] Converting the format type of the processed brain wave data into a target format type to obtain brain wave data of a corresponding target format type; the target format type is a data format type supported by an application in the first space;
[0160] The brain wave data of the target format type is transmitted to the application in the first space by one of the following methods: wired transmission method; wireless transmission method.
[0161] In one embodiment, the second processing unit 83 includes a first generating subunit and a second generating subunit; wherein,
[0162] The first generating subunit is used to generate a first message based on the brain wave data; the brain wave data includes at least one brain wave frequency band, and the first message represents a MIDI message;
[0163] The second generating subunit is used to generate first information for triggering performance of a virtual musical instrument and synthesis of music based on the first message.
[0164] In one embodiment, the first generating subunit is specifically used for:
[0165] Analyzing the brain wave data to obtain brain wave data of at least one channel; each channel corresponds to a brain wave frequency band;
[0166] The brain wave data of the at least one channel are respectively converted into corresponding first messages.
[0167] In one embodiment, the brain wave data includes at least one brain wave frequency band; the device further includes: a fourth processing unit; wherein,
[0168] The fourth processing unit is configured to create corresponding MIDI tracks for the at least one brainwave frequency band and assign a corresponding virtual musical instrument to each MIDI track before the second generating subunit generates first information for triggering performance of a virtual musical instrument and synthesis of music based on the first message;
[0169] Accordingly, the second generating subunit is specifically used for:
[0170] The first information is generated based on the first message of each MIDI track; the first information is used to trigger the performance of the virtual musical instrument corresponding to the MIDI track, and to synthesize the music generated by the at least one brainwave frequency band.
[0171] In another embodiment, the second processing unit 83 is specifically configured to:
[0172] generating a visual element in the first space based on the brain wave data; wherein the visual element corresponds to at least one brain wave frequency band included in the brain wave data;
[0173] Based on the visual elements, first information for indicating a rendered visual scene is generated.
[0174] In another embodiment, the second processing unit 83 is specifically configured to:
[0175] determining whether the brain wave data satisfies a first condition;
[0176] When it is determined that the brain wave data satisfies the first condition, first information for triggering a manipulation instruction for controlling the first space is generated.
[0177] In another embodiment, the brain wave data also includes concentration and meditation values; the second processing unit 83 is specifically used to:
[0178] monitoring the concentration and the meditation value in the brain wave data;
[0179] When the concentration is greater than a set first threshold and / or the meditation value is greater than a set second threshold, it is determined that the brain wave data meets the first condition; the concentration and the meditation value are respectively used to trigger corresponding control instructions.
[0180] In actual application, the acquisition unit 81 can be implemented by a communication interface in a data processing device; the first processing unit 82 and the second processing unit 83 can be implemented by a processor in the data processing device.
[0181] It should be noted that: when the data processing device provided in the above embodiment performs data processing, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the data processing device provided in the above embodiment and the data processing method embodiment belong to the same concept, and the specific implementation process is detailed in the data processing method embodiment, which will not be repeated here.
[0182] Based on the hardware implementation of the above program modules, and in order to implement the data processing method of the embodiment of the present application, the embodiment of the present application also provides a data processing device, Fig. 9 Schematic diagram of the hardware structure of the data processing device of the embodiment of the present application. Fig. 9 As shown, the data processing device 90 includes:
[0183] Communication interface 91, capable of exchanging information with other devices;
[0184] The processor 92 is connected to the communication interface 91 to implement information interaction with other devices and is used to execute the above-provided data processing method when running a computer program, and the computer program is stored in the memory 93.
[0185] Specifically, the communication interface 91 is used to collect brain wave data of the target user;
[0186] The processor 92 is used to map the brain wave data to an application in a first space; the first space represents a virtual space of the metaverse; based on the brain wave data, corresponding first information is generated; the first information is used for at least one of the following:
[0187] Trigger the performance of virtual instruments and the synthesis of music;
[0188] Generate visual elements and render visual scenes accordingly;
[0189] Triggering a manipulation instruction for controlling the first space.
[0190] In one embodiment, the processor 92 is further configured to: pre-process the brain wave data to obtain processed brain wave data before mapping the brain wave data to the application program in the first space;
[0191] Accordingly, the processor 92 is specifically configured to:
[0192] The processed brain wave data is mapped to an application in the first space.
[0193] In one embodiment, the processor 92 is specifically configured to:
[0194] Converting the format type of the processed brain wave data into a target format type to obtain brain wave data of a corresponding target format type; the target format type is a data format type supported by an application in the first space;
[0195] The brain wave data of the target format type is transmitted to the application in the first space by one of the following methods: wired transmission method; wireless transmission method.
[0196] In one embodiment, the processor 92 is specifically configured to:
[0197] generating a first message based on the brainwave data; the brainwave data comprising at least one brainwave frequency band, the first message representing a MIDI message;
[0198] Based on the first message, first information for triggering performance of a virtual musical instrument and synthesis of music is generated.
[0199] In one embodiment, the processor 92 is specifically configured to:
[0200] Analyzing the brain wave data to obtain brain wave data of at least one channel; each channel corresponds to a brain wave frequency band;
[0201] The brain wave data of the at least one channel are respectively converted into corresponding first messages.
[0202] In one embodiment, the brainwave data includes at least one brainwave frequency band; the processor 92 is further configured to: before generating first information for triggering performance of a virtual musical instrument and synthesis of music based on the first message, create corresponding MIDI tracks for the at least one brainwave frequency band, and assign a corresponding virtual musical instrument to each MIDI track;
[0203] Accordingly, the processor 92 is specifically configured to:
[0204] The first information is generated based on the first message of each MIDI track; the first information is used to trigger the performance of the virtual musical instrument corresponding to the MIDI track, and to synthesize the music generated by the at least one brainwave frequency band.
[0205] In another embodiment, the processor 92 is specifically configured to:
[0206] generating a visual element in the first space based on the brain wave data; wherein the visual element corresponds to at least one brain wave frequency band included in the brain wave data;
[0207] Based on the visual elements, first information for indicating a rendered visual scene is generated.
[0208] In another embodiment, the processor 92 is specifically configured to:
[0209] determining whether the brain wave data satisfies a first condition;
[0210] When it is determined that the brain wave data satisfies the first condition, first information for triggering a manipulation instruction for controlling the first space is generated.
[0211] In another embodiment, the brain wave data also includes concentration and meditation values; the processor 92 is specifically configured to:
[0212] monitoring the concentration and the meditation value in the brain wave data;
[0213] When the concentration is greater than a set first threshold and / or the meditation value is greater than a set second threshold, it is determined that the brain wave data meets the first condition; the concentration and the meditation value are respectively used to trigger corresponding control instructions.
[0214] It should be noted that the specific processing process of the communication interface 91 and the processor 92 can be understood by referring to the above-mentioned data processing method.
[0215] Of course, in actual application, the various components in the data processing device 90 are coupled together through the bus system 94. It can be understood that the bus system 94 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 94 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus system 94 .
[0216] The memory 93 in the embodiment of the present application is used to store various types of data to support the operation of the data processing device 90. Examples of such data include: any computer program used to operate on the data processing device 90.
[0217] The data processing method disclosed in the above embodiment of the present application can be applied to the processor 92, or implemented by the processor 92. The processor 92 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above data processing method can be completed by the hardware integrated logic circuit or software instructions in the processor 92. The above-mentioned processor 92 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 92 can implement or execute the various data processing methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the data processing method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 93, and the processor 92 reads the information in the memory 93 and completes the steps of the aforementioned data processing method in combination with its hardware.
[0218] In an exemplary embodiment, the data processing device 90 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned data processing method.
[0219] It can be understood that the memory 93 of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 93 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0220] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 93 storing a computer program, and the computer program can be executed by a processor 92 in a data processing device 90 to complete the steps of the data processing method described in the above embodiment of the present application. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0221] It should be noted that: "first", "second", "third", etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0222] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0223] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Collect brainwave data of target users; Mapping the brainwave data to an application in a first space; the first space represents a virtual space of the metaverse; Based on the brain wave data, corresponding first information is generated; the first information is used for at least one of the following: Trigger the performance of virtual instruments and the synthesis of music; Generate visual elements and render visual scenes accordingly; Triggering a manipulation instruction for controlling the first space.
2. The method according to claim 1, characterized in that Before mapping the brain wave data to the application in the first space, the method further includes: Preprocessing the brain wave data to obtain processed brain wave data; The application program for mapping the brain wave data to the first space includes: The processed brain wave data is mapped to an application in the first space.
3. The method according to claim 2, characterized in that The step of mapping the processed brain wave data to an application in the first space includes: Converting the format type of the processed brain wave data into a target format type to obtain brain wave data of a corresponding target format type; the target format type is a data format type supported by an application in the first space; The brain wave data of the target format type is transmitted to the application in the first space by one of the following methods: wired transmission method; wireless transmission method.
4. The method according to claim 1, characterized in that The generating corresponding first information based on the brain wave data includes: generating a first message based on the brainwave data; the brainwave data comprising at least one brainwave frequency band, the first message representing a digital music interface MIDI message; Based on the first message, first information for triggering performance of a virtual musical instrument and synthesis of music is generated.
5. The method according to claim 4, characterized in that The generating a first message based on the brain wave data comprises: Analyzing the brain wave data to obtain brain wave data of at least one channel; each channel corresponds to a brain wave frequency band; The brain wave data of the at least one channel are respectively converted into corresponding first messages.
6. The method according to claim 4, characterized in that Before generating first information for triggering performance of a virtual musical instrument and synthesis of music based on the first message, the method further includes: For the at least one brainwave frequency band, respectively create corresponding MIDI tracks, and respectively assign a corresponding virtual instrument to each of the MIDI tracks; The generating, based on the first message, first information for triggering the performance of the virtual musical instrument and the synthesis of the music comprises: The first information is generated based on the first message of each MIDI track; the first information is used to trigger the performance of the virtual musical instrument corresponding to the MIDI track, and to synthesize the music generated by the at least one brainwave frequency band.
7. The method according to claim 1, characterized in that The generating corresponding first information based on the brain wave data includes: generating a visual element in the first space based on the brain wave data; wherein the visual element corresponds to at least one brain wave frequency band included in the brain wave data; Based on the visual elements, first information for indicating a rendered visual scene is generated.
8. The method according to claim 1, characterized in that The generating corresponding first information based on the brain wave data includes: determining whether the brain wave data satisfies a first condition; When it is determined that the brain wave data satisfies the first condition, first information for triggering a manipulation instruction for controlling the first space is generated.
9. The method according to claim 8, characterized in that The brain wave data also includes a concentration level and a meditation value; and determining that the brain wave data satisfies the first condition includes: monitoring the concentration and the meditation value in the brain wave data; When the concentration is greater than a set first threshold and / or the meditation value is greater than a set second threshold, it is determined that the brain wave data meets the first condition; the concentration and the meditation value are respectively used to trigger corresponding control instructions.
10. A data processing device, characterized in that: include: A collection unit, used to collect brain wave data of a target user; A first processing unit, configured to map the brain wave data to an application in a first space; The first space represents the virtual space of the metaverse; The second processing unit is configured to generate corresponding first information based on the brain wave data; the first information is used for at least one of the following: Trigger the performance of virtual instruments and the synthesis of music; Generate visual elements and render visual scenes accordingly; Triggering a manipulation instruction for controlling the first space.
11. A data processing device, characterized in that: include: a processor and a memory for storing a computer program capable of running on said processor; Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
