Chinese character output method, device and storage medium based on four-corner number brain-computer interface

By using the four-corner number detection method and the EEG signal classification model in the Chinese character brain-computer interface system to capture time and space information and combine the feature vectors for decoding, the problem of declining decoding accuracy in the Chinese character brain-computer interface system has been solved and improved Accuracy of outputting Chinese characters.

CN118331435BActive Publication Date: 2024-08-27HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773936.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing Chinese character brain-computer interface systems fail to effectively consider the writing habits of different subjects or the different habits of the same subject when writing the same character multiple times, resulting in a decrease in decoding accuracy, which in turn affects the accuracy of outputting target Chinese characters.

Method used

Based on the four-corner number word detection method rules, the temporal and spatial information is captured through the EEG signal classification model, a temporal feature vector and a spatial feature vector are generated, and these feature vectors are combined for decoding to output the target Chinese character.

Benefits of technology

It improves the decoding accuracy, ensures that the output target Chinese characters are more accurate, and solves the problem of decreased decoding accuracy caused by inconsistent writing time of subjects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118331435B
    Figure CN118331435B
Patent Text Reader

Abstract

The present application discloses a Chinese character output method, device and storage medium based on a four-corner number brain-computer interface, comprising: based on the four-corner number character search method rules, collecting first EEG signal data corresponding to a subject, wherein the first EEG signal data is used to indicate the subject's imagination of writing a digital sequence corresponding to each stroke in a target Chinese character; using an EEG signal classification model to capture time information in the first EEG signal data, and encoding the time information to generate a time feature vector; using an EEG signal classification model to capture spatial information in the first EEG signal data, and encoding the spatial information to generate a spatial feature vector; based on the time feature vector and the spatial feature vector, and using the EEG signal classification model to determine the digital sequence corresponding to the first EEG signal data; and outputting the target Chinese character according to the digital sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electroencephalogram signal processing, and in particular to a Chinese character output method, device and storage medium based on a four-corner number brain-computer interface. Background Art

[0002] Visually induced brain-computer interface is a typical passive brain-computer interface, which requires external equipment to induce EEG signals, rather than the subject's autonomous imagination to generate EEG signals. Therefore, it is very susceptible to interference from external factors, and has poor scalability and low transmission rate. In order to solve the above problems, the current research has generated a method that uses machine learning methods to segment and classify the collected EEG signals, thereby completing the output of English letters corresponding to the EEG signals.

[0003] However, on the one hand, because the structure of Chinese characters is significantly different from that of English letters, and Chinese characters contain more broken strokes, Chinese speakers cannot directly use brain-computer interface systems for English to generate Chinese characters. On the other hand, because there are a large number of Chinese characters, with more than 3,000 commonly used Chinese characters, far exceeding the number of English letters, brain-computer interface systems for English cannot meet the Chinese character usage habits of Chinese speakers.

[0004] Although various types of brain-computer interface systems for Chinese language and characters have been proposed, different subjects have different writing imagination habits, or the same subject has different writing imagination habits when writing and imagining the same character multiple times, so the length of time the subjects spend writing and imagining is slightly different, and the existing brain-computer interface systems for Chinese language and characters do not take the above problems into consideration. Therefore, when the length of time different subjects spend writing characters is inconsistent, or the length of time the same subject spends writing the same character multiple times is inconsistent, it may lead to a decrease in decoding accuracy, and then lead to a decrease in the accuracy of outputting the target Chinese characters. Among them, the characters written by the subjects include but are not limited to Chinese characters, Arabic numerals, punctuation marks, etc.

[0005] With regard to the technical problem that the existing brain-computer interface system for Chinese characters in the above-mentioned prior art does not take into account the writing habits of different subjects, or the different writing habits of the same subject when writing the same character multiple times, which may lead to a decrease in decoding accuracy and further a decrease in the accuracy of outputting the target Chinese characters when different subjects write the characters or the same subject writes the same character multiple times with inconsistent lengths, no effective solution has been proposed so far. Summary of the invention

[0006] The embodiments of the present disclosure provide a Chinese character output method, device and storage medium based on a four-corner number brain-computer interface, so as to at least solve the technical problem that the existing brain-computer interface system for Chinese characters does not take into account the writing habits of different subjects, or the different writing habits of the same subject when writing the same character multiple times, so that when the length of time different subjects write characters is inconsistent, or the length of time the same subject writes the same character multiple times is inconsistent, it may lead to a decrease in decoding accuracy, and then lead to a decrease in the accuracy of outputting the target Chinese characters.

[0007] According to one aspect of an embodiment of the present disclosure, a Chinese character output method based on a four-corner number brain-computer interface is provided, comprising: based on the four-corner number character search method rules, collecting first EEG signal data corresponding to a subject, wherein the first EEG signal data is used to indicate the subject's imagination of writing a numerical sequence corresponding to each stroke in a target Chinese character; using an EEG signal classification model to capture time information in the first EEG signal data, and encoding the time information to generate a time feature vector; using an EEG signal classification model to capture spatial information in the first EEG signal data, and encoding the spatial information to generate a spatial feature vector; based on the time feature vector and the spatial feature vector, and using the EEG signal classification model to determine the numerical sequence corresponding to the first EEG signal data; and outputting the target Chinese character according to the numerical sequence.

[0008] According to another aspect of an embodiment of the present disclosure, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, a processor executes any one of the methods described above.

[0009] According to another aspect of the embodiment of the present disclosure, a Chinese character output device based on a four-corner number brain-computer interface is also provided, including: a data acquisition module, used to acquire first EEG signal data corresponding to a subject based on the four-corner number character search method rules, wherein the first EEG signal data is used to indicate the subject's imagination of writing a digital sequence corresponding to each stroke in the target Chinese character; a first encoding module, used to capture time information in the first EEG signal data using an EEG signal classification model, and encode the time information to generate a time feature vector; a second encoding module, used to capture spatial information in the first EEG signal data using an EEG signal classification model, and encode the spatial information to generate a spatial feature vector; a digital sequence determination module, used to determine the digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector and using the EEG signal classification model; and a target Chinese character output, used to output the target Chinese character according to the digital sequence.

[0010] According to another aspect of the embodiment of the present disclosure, a Chinese character output device based on a four-corner number brain-computer interface is also provided, including: a processor; and a memory connected to the processor, for providing the processor with instructions for processing the following processing steps: based on the four-corner number character search method rules, collecting first EEG signal data corresponding to the subject, wherein the first EEG signal data is used to instruct the subject to write and imagine a digital sequence corresponding to each stroke in the target Chinese character; using an EEG signal classification model to capture time information in the first EEG signal data, and encode the time information to generate a time feature vector; using an EEG signal classification model to capture spatial information in the first EEG signal data, and encode the spatial information to generate a spatial feature vector; based on the time feature vector and the spatial feature vector, and using the EEG signal classification model to determine the digital sequence corresponding to the first EEG signal data; and outputting the target Chinese character according to the digital sequence.

[0011] The present application provides a Chinese character output method based on a four-corner number brain-computer interface. First, the signal acquisition module collects the first EEG signal data corresponding to the subject based on the four-corner number character search rule. Then, the time information encoding module in the EEG signal classification model captures the time information in the first EEG signal data, and encodes the time information in the first EEG signal data, thereby generating a time feature vector. At the same time, the spatial information encoding module in the EEG signal classification model captures the spatial information in the first EEG signal data, and encodes the spatial information in the first EEG signal data, thereby generating a spatial feature vector. Furthermore, the feature classification module in the EEG signal classification model determines the digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector. Finally, the Chinese character output module outputs the target Chinese character according to the digital sequence.

[0012] The technical solution of the present application decodes the first EEG signal data according to two different branches: time dynamics and spatial topology. On the one hand, since effective time information extraction is extremely important in EEG signal classification, for the time coding branch, the time information coding module in the EEG signal classification model pays more attention to the time information in the first EEG signal data. On the other hand, since the spatial topology describes the information interaction process, mining and utilizing such information interaction processes are very beneficial for the decoding and analysis of EEG signals. Therefore, for the spatial coding branch, the spatial information coding module in the EEG signal classification model pays more attention to the spatial information in the first EEG signal data.

[0013] Furthermore, the technical solution of the present application will also be able to splice and fuse the time feature vector representing time information and the space feature vector representing space information, and classify the fused output feature vector, so that the target Chinese characters output based on the classification results are more accurate.

[0014] This solves the technical problem that the existing brain-computer interface system for Chinese characters in the prior art does not take into account the writing habits of different subjects, or the different writing habits of the same subject when writing the same character multiple times. As a result, when the length of time different subjects take to write characters is inconsistent, or the length of time the same subject takes to write the same character multiple times is inconsistent, the decoding accuracy may decrease, which in turn leads to a decrease in the accuracy of outputting the target Chinese characters. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0016] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to Embodiment 1 of the present application;

[0017] Figure 2 It is a schematic diagram of the Chinese character output system based on the four-corner number brain-computer interface according to Example 1 of the present application;

[0018] Figure 3 It is a flowchart of the Chinese character output method based on the four-corner number brain-computer interface described in Example 1 of the present application;

[0019] Figure 4 is a schematic diagram of various methods of collecting EEG signal data corresponding to a subject according to Example 1 of the present application;

[0020] Figure 5 is a schematic diagram of the EEG signal classification model according to Example 1 of the present application;

[0021] Figure 6 is a schematic diagram of segmenting and splicing input signal features according to Embodiment 1 of the present application;

[0022] Figure 7 It is an overall flow chart of the Chinese character output method based on the four-corner number brain-computer interface described in Example 1 of the present application;

[0023] Figure 8 It is a schematic diagram of a Chinese character output device based on a four-corner number brain-computer interface according to Example 2 of the present application;

[0024] Fig. 9 This is a schematic diagram of a Chinese character output device based on a four-corner number brain-computer interface according to Example 3 of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0027] Example 1

[0028] According to this embodiment, a method embodiment of Chinese character output based on a four-corner number brain-computer interface is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Figure 1 The hardware structure block diagram of a computing device for realizing Chinese character output based on a four-corner number brain-computer interface is shown. Figure 1 As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, a transmission device for communication functions, and an input / output interface. The memory, the transmission device, and the input / output interface are connected to the processor via a bus. In addition, it may also include: a display, a keyboard, and a cursor control device connected to the input / output interface. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computing device. As involved in the embodiments of the present disclosure, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0031] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the Chinese character output method based on the four-corner number brain-computer interface in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the Chinese character output method based on the four-corner number brain-computer interface of the above-mentioned application is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.

[0034] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.

[0035] Figure 2 Schematic diagram of the Chinese character output system based on the four-corner number brain-computer interface according to this embodiment. Figure 2 As shown, the system includes: a signal acquisition module, an EEG signal classification model and a Chinese character output module. The signal acquisition module is used to acquire the first EEG signal data corresponding to the subject (ie, the original EEG signal).

[0036] The EEG signal classification model includes a preprocessing module, a time information encoding module, a spatial information encoding module and a feature classification module. The preprocessing module is used to perform multi-subband filtering on the first EEG signal data, and to perform time convolution on each second EEG signal data after multi-subband filtering to extract local time information. The time information encoding module is used to encode the time information in the first EEG signal data and generate a time feature vector. The spatial information encoding module is used to encode the spatial information in the first EEG signal data and generate a spatial feature vector. The feature classification module is used to fuse, splice and classify the time feature vector and the spatial feature vector, and determine the digital sequence corresponding to the first EEG signal data.

[0037] The Chinese character output module is used to encode the digital sequence, decode and correct the encoded digital sequence based on the four-corner number search method rules, and output the target Chinese characters.

[0038] In addition, it is worth noting that the above-mentioned signal acquisition module, EEG signal classification model and Chinese character output module are not limited to use for the first EEG signal data corresponding to the subject, but can also be applied to EEG signal data samples corresponding to the subject.

[0039] Under the above operating environment, according to the first aspect of this embodiment, a Chinese character output method based on a four-corner number brain-computer interface is provided. The method comprises: Figure 2 The system implementation shown in . Figure 3 A schematic diagram showing the process of the method is shown in FIG. Figure 3 As shown, the method includes:

[0040] S302: Based on the four-corner number search method, first EEG signal data corresponding to the subject is collected, wherein the first EEG signal data is used to instruct the subject to write and imagine a sequence of numbers corresponding to each stroke shape in the target Chinese character;

[0041] S304: using the EEG signal classification model to capture time information in the first EEG signal data, and encoding the time information to generate a time feature vector;

[0042] S306: Capture the spatial information in the first EEG signal data using the EEG signal classification model, and encode the spatial information to generate a spatial feature vector;

[0043] S308: Based on the time feature vector and the spatial feature vector, and use the EEG signal classification model to determine the digital sequence corresponding to the first EEG signal data; and

[0044] S310: Output the target Chinese character according to the digital sequence.

[0045] Specifically, first, the signal acquisition module acquires the first EEG signal data corresponding to the subject based on the rules of the four-corner code indexing method (S302). Among them, the first EEG signal data is used to indicate the subject to write and imagine the digital sequence corresponding to each stroke shape in the target Chinese character. And among them, the first EEG signal data can be, for example, non-invasive EEG signals or invasive EEG signals, which are not specifically limited here.

[0046] Specifically, since each Chinese character has a unique writing structure, based on the rules of the four-corner code indexing method, it can be known that a Chinese character can be disassembled into different stroke shapes, and each stroke shape has its corresponding number (i.e., Arabic numerals 0-9). Thus, although the subject ultimately wants to output a Chinese character, the system can determine the target Chinese character that the subject wants to output based on the digital sequence corresponding to the stroke shape in the Chinese character imagined by the subject's writing. Refer to Figure 2 As shown, each Chinese character can be disassembled and the respective stroke shapes can be determined in the order of "upper left corner", "upper right corner", "lower left corner", and "lower right corner", and each stroke shape has a corresponding number. Thus, each Chinese character has a corresponding digital sequence. For example, for the Chinese character "duan" (端), first take 0 at the "upper left corner", then take 2 at the "upper right corner", then take 1 at the "lower left corner", and finally take 2 at the "lower right corner". Thus, the digital sequence corresponding to each stroke shape in the Chinese character "duan" is 0212. Another example, for the Chinese character "wang" (王), first take 1 at the "upper left corner", then take 0 at the "upper right corner", then take 1 at the "lower left corner", and finally take 0 at the "lower right corner". Thus, the digital sequence corresponding to each stroke shape in the Chinese character "wang" is 1010.

[0047] In addition, in order to reduce the homophone rate of the four-corner code indexing method, the four-corner code indexing method including additional strokes can also be used for encoding. That is, disassemble the Chinese character in the order of "upper left corner", "upper right corner", "lower left corner", "lower right corner", and near the "lower right corner", and determine multiple stroke shapes corresponding to the Chinese character. For example, for the Chinese character "duan" (端), first take 0 at the "upper left corner", then take 2 at the "upper right corner", then take 1 at the "lower left corner", then take 2 at the "lower right corner", and finally take 1 near the "lower right corner". Thus, the digital sequence corresponding to each stroke shape in the Chinese character "duan" is 02121. Another example, refer to Figure 2As shown, for the Chinese character "王" (king), first take "the upper left corner" 1, then take "the upper right corner" 0, then take "the lower left corner" 1, then take "the lower right corner" 0, and finally take the 1 near "the lower right corner". Thus, the digital sequence corresponding to each stroke in the Chinese character "王" is 10101.

[0048] Figure 4 It is a schematic diagram of each method for collecting EEG signal data corresponding to a subject according to Embodiment 1 of the present application. Refer to Figure 4 As shown, there are three methods for the signal acquisition module to collect the first EEG signal data corresponding to the written digital sequence: Method 1. Follow - type writing imagination. For example, the subject can perform writing imagination according to the animated figure prompt of the digital sequence displayed on the screen of the terminal device in front. Thus, during this process, the signal acquisition module synchronously collects the first EEG signal data. Method 2. Character - prompt - type writing imagination. For example, the subject can think about the disassembling method of the target Chinese character and the rules of the four - corner code indexing method according to the target Chinese character presented on the screen of the terminal device in front, and perform writing imagination of the corresponding digital sequence. Thus, during this process, the signal acquisition module synchronously collects the first EEG signal data. Method 3. Independent writing imagination. For example, the subject can also directly perform writing imagination of the digital sequence corresponding to the target Chinese character without any prompt. Thus, during this process, the signal acquisition module synchronously collects the first EEG signal data.

[0049] In addition, the above three methods for collecting the first EEG signal data corresponding to the written imagination digital sequence can be applied not only in the application stage but also in the subject training stage. For example, in order to enable the subject to adapt to the writing paradigm of the four - corner code indexing method and establish relatively stable EEG signal data in the early stage of use, during the subject training stage, the subject can perform corresponding writing task imagination according to the animated figure prompt displayed on the screen of the terminal device (i.e., the above Method 1). Another example is that since the goal of this application is that during the actual application process, the subject can disassemble the target Chinese character without external prompts and perform writing imagination of the digital sequence corresponding to the target Chinese character. For the subject, it may be relatively difficult to directly disassemble the target Chinese character without prompts and perform writing imagination of the digital sequence corresponding to the target Chinese character. Therefore, in this embodiment, before the actual application scenario, a character - prompt - type writing imagination stage (i.e., the above Method 2) is added, which can help the user achieve the transition from dynamic prompts to independent imagination. Another example is that if the subject has a good understanding of the rules of the four - corner code indexing method, then in the actual application scenario, the subject can directly perform writing imagination of the digital sequence without any prompt (i.e., the above Method 3).

[0050] Furthermore, the above three methods of collecting the first EEG signal data corresponding to the written imagined digital sequence can also be applied to the training stage of the EEG signal classification model. For example, by executing the above method 1, the EEG signal classification model can be preliminarily trained. By executing the above method 2, the parameters of the EEG signal classification model can be optimized. It is worth noting that in order to detect the working status of the EEG signal classification model, the present application also adds method 4: question-and-answer type writing imagination. Among them, the specific operations of question-and-answer type writing imagination include: the target question appears on the screen of the terminal device, the subject imagines the standard answer, and writes the imagined digital sequence corresponding to the standard answer. At this stage, the EEG signal classification model can be tested online, and if the output result of the EEG signal classification model is incorrect, the parameters of the EEG signal classification model can be further optimized.

[0051] Then, the signal acquisition module sends the acquired first EEG signal data to the EEG signal classification model, so that the EEG signal classification model captures the time information in the first EEG signal data and encodes the time information to generate a time feature vector (S304). Figure 5 Schematic diagram of the EEG signal classification model according to Example 1 of the present application. Figure 2 and Figure 5 As shown, after receiving the first EEG signal data, the time information encoding module in the EEG signal classification model fuses the spatial information in the first EEG signal data and the rhythmic characteristics of the EEG signal through convolution and splicing, thereby focusing on the time information in the first EEG signal data. Then, the time information encoding module captures the time information in the first EEG signal data and encodes the time information to generate a time feature vector. The above content will be described in detail later, so it will not be repeated here.

[0052] At the same time, the EEG signal classification model captures the spatial information in the first EEG signal data and encodes the spatial information to generate a spatial feature vector (S306). Figure 2 and Figure 5 As shown, after receiving the first EEG signal data, the spatial information encoding module in the EEG signal classification model reduces the time dimension of the first EEG signal data, including but not limited to using dot product, Pearson correlation or mutual information, so as to focus on the spatial information in the first EEG signal data. Then, the spatial information encoding module captures the spatial information in the first EEG signal data and encodes the spatial information to generate a spatial feature vector. The above content will be described in detail later, so it will not be repeated here.

[0053] After that, the feature classification module in the EEG signal classification model determines a digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector (S308). Specifically, first, the feature classification module concatenates the time feature vector and the spatial feature vector into an output feature vector. Among them, the output feature vector is a strong feature vector. Then, the feature classification module uses a fully connected layer to determine the classification result corresponding to the output feature vector. That is, determine the category of each digit in the digital sequence corresponding to the output feature vector among the numbers 0-9. For example, the feature classification module determines that the classification result corresponding to the output feature vector of the Chinese character "duan" is "0", "2", "1", "2", "1". Finally, the feature classification module determines the digital sequence corresponding to the first EEG signal data based on the classification result. For example, the feature classification module determines that the digital sequence corresponding to the Chinese character "duan" is "02121" based on the classification result corresponding to the output feature vector of the Chinese character "duan" being "0", "2", "1", "2", "1".

[0054] Finally, the Chinese character output module outputs the target Chinese character according to the determined digital sequence (S310). Specifically, first, the Chinese character output module encodes the digital sequence. Then, the Chinese character output module decodes and corrects the encoded digital sequence based on the rules of the four-corner method for Chinese character retrieval. Finally, the Chinese character output module outputs the target Chinese character, and the target Chinese character is displayed on the screen in front of the subject.

[0055] As described in the background art, although various types of brain-computer interface systems for Chinese language characters have been proposed, due to the different writing imagination habits of different subjects, or when the same subject writes and imagines the same character multiple times, there will also be different writing imagination habits. Therefore, there are slight differences in the writing imagination duration of the subjects. However, the existing brain-computer interface systems for Chinese language characters do not consider the above problems. Thus, in the case where the writing durations of different subjects for characters are inconsistent, or the writing durations of the same subject for the same character multiple times are inconsistent, it may lead to a decrease in the decoding accuracy, and further lead to a decrease in the accuracy of outputting the target Chinese character. Among them, the characters written by the subject include but are not limited to Chinese characters, Arabic numerals, punctuation marks, etc.

[0056] In view of this, the technical solution of the present application decodes the first EEG signal data according to two different branches: time dynamics and spatial topology. On the one hand, since effective time information extraction is extremely important in EEG signal classification, for the time coding branch, the time information coding module in the EEG signal classification model pays more attention to the time information in the first EEG signal data. On the other hand, since the spatial topology describes the information interaction process, mining and utilizing such information interaction processes are very beneficial for the decoding and analysis of EEG signals. Therefore, for the spatial coding branch, the spatial information coding module in the EEG signal classification model pays more attention to the spatial information in the first EEG signal data.

[0057] Furthermore, the technical solution of the present application will also be able to splice and fuse the time feature vector representing time information and the space feature vector representing space information, and classify the fused output feature vector, so that the target Chinese characters output based on the classification results are more accurate.

[0058] This solves the technical problem that the existing brain-computer interface system for Chinese characters in the prior art does not take into account the writing habits of different subjects, or the different writing habits of the same subject when writing the same character multiple times. As a result, when the length of time different subjects take to write characters is inconsistent, or the length of time the same subject takes to write the same character multiple times is inconsistent, the decoding accuracy may decrease, which in turn leads to a decrease in the accuracy of outputting the target Chinese characters.

[0059] It is worth noting that the process of training the EEG signal classification model is the same as the process of applying the EEG signal classification model to the above-mentioned subjects, so it will not be repeated here.

[0060] Optionally, the EEG signal classification model also includes a preprocessing module, and further includes: using the preprocessing module to preprocess the first EEG signal data to generate input signal features, and wherein the operation of using the preprocessing module to preprocess the first EEG signal data to generate input signal features includes: the preprocessing module divides the first EEG signal data into multiple sub-bands, and respectively filters the first EEG signal data corresponding to each sub-band to generate multiple second EEG signal data, wherein each sub-band corresponds to a different frequency band; and the preprocessing module extracts features from the local time information of each second EEG signal data to generate multiple input signal features.

[0061] Specifically, since the neural activation response patterns of different subjects have high individual differences, a single rhythm band is difficult to fully capture this complexity. Therefore, in the technical solution of the present application, a preprocessing module is used to perform multi-subband specific filtering on the EEG signal data collected by the signal acquisition module. The EEG signal data collected by the above-mentioned signal acquisition module can be the first EEG signal data collected during the actual application process, or it can be the EEG signal data sample collected during the model training process.

[0062] refer to Figure 5 As shown, first, the preprocessing module selects an adaptive sub-band combination (or adopts a standard sub-band division method) according to the specific needs of the subject. For example, the preprocessing module divides the first EEG signal data into multiple sub-bands according to the standard frequency band range. Among them, the standard frequency band range can be, for example, theta band (4-7Hz), mu band (8-13Hz), beta band (13-32Hz) and gamma band. The above is only an exemplary description of the frequency band range, and the actual situation is not limited to this. Thus, the preprocessing module can, for example, divide the first EEG signal data according to one or more frequency band ranges shown above, so as to generate the first EEG signal data corresponding to each sub-band.

[0063] Then, the preprocessing module performs filtering processing on the first EEG signal data corresponding to each sub-band, thereby generating a plurality of second EEG signal data. For example, the first EEG signal received by the preprocessing module is Where C1 represents the number of channels of the EEG signal, and T1 represents the number of sampling time points of the time window. f The first EEG signal data of the sub-band (i.e., the second EEG signal data) is .in, f =1~ F . F represents the number of sub-bands. For example, the second EEG signal data corresponding to the first sub-band is , and the second EEG signal data corresponding to the second sub-band is , ..., the second EEG signal data corresponding to the Fth sub-band is .

[0064] Then the preprocessing module processes the second EEG signal data corresponding to each sub-band. Perform time convolution to extract each second EEG signal data The local time information of the EEG signal can be accurately located to generate the input signal features corresponding to each sub-band. . Where C2 represents the number of output channels of the convolutional network for time convolution, and T2 represents the length of the output time feature after time convolution. For example, the input signal feature corresponding to the first subband is , the input signal characteristics corresponding to the second sub-band are , ..., the input signal characteristics corresponding to the Fth subband are .

[0065] Thus, the above operation achieves the technical effect of being able to meet the differences between the neural activation response patterns of different subjects, and further being able to ensure that effective information of the EEG signal data of different subjects is captured.

[0066] Optionally, the EEG signal classification model includes a time information encoding module, and the operation of encoding the time information in the first EEG signal data using the EEG signal classification model to generate a time feature vector includes: the time information encoding module divides and splices multiple input signal features to generate multiple first input signal matrices; the time information encoding module performs spatial convolution on each first input signal matrix and generates multiple first spatial feature matrices; the pooling layer in the time information encoding module extracts the local time features of each first spatial feature matrix and reduces the dimension of each first spatial feature matrix to generate multiple time feature matrices; and the time information encoding module determines the time feature vector based on the multiple time feature matrices. Further optionally, based on multiple time feature matrices, and using the time information encoding module, the operation of determining the time feature vector includes: the time information encoding module splices each time feature matrix to generate an enhanced feature matrix; the time information encoding module uses a time encoder to encode the time information of the enhanced feature matrix to generate a time coding matrix; and the time information encoding module extracts and expands the time coding matrix to determine the time feature vector.

[0067] Specifically, after the preprocessing module generates multiple input signal features corresponding to each subband, the multiple input signal features are sent to the time information encoding module. First, the time information encoding module divides and splices each input signal feature to generate multiple first input signal matrices corresponding to each subband. Figure 6 Schematic diagram of segmenting and splicing input signal features according to Embodiment 1 of the present application. Figure 6 As shown, the temporal information encoding module first divides any one of the multiple input signal features to generate multiple slice matrices in the C1 dimension. Then, the temporal information encoding module splices the multiple slice matrices in the C1 dimension to generate multiple first input signal matrices .

[0068] Furthermore, the time information encoding module encodes the first input signal matrix corresponding to each sub-band Perform spatial convolution and generate multiple first spatial feature matrices . The size of the convolution kernel for spatial convolution of the first input signal matrix is ​​(C1×C2×1). C3 represents the number of output channels of the convolution network for spatial convolution.

[0069] Then, the temporal information encoding module uses the maximum pooling layer or the mean pooling layer to extract the local temporal features of each first spatial feature matrix and reduce the dimension of each first spatial feature matrix to facilitate the subsequent temporal information encoding, thereby generating multiple temporal feature matrices corresponding to each subband. . Wherein, T3 represents the time dimension of the time feature matrix. And wherein, the specific dimension and design of the pooling layer are determined according to the signal characteristics of the subject, and are not specifically limited here.

[0070] Furthermore, the temporal information encoding module concatenates the temporal feature matrices corresponding to each sub-band to generate an enhanced feature matrix Then the temporal information encoding module uses the temporal encoder to enhance the feature matrix Encode time information to generate a time coding matrix The temporal encoder may be, for example, LSTM, GRU or transformer. It should be noted that the above is only an exemplary example of the temporal encoder, and the actual situation is not limited thereto.

[0071] Finally, the time information encoding module encodes the time information matrix Feature extraction and expansion are performed to determine the time feature vector.

[0072] Thus, through the above operation, the spatial and rhythmic characteristics are fused by convolution and feature splicing, so that the time information encoding module can pay more attention to the time information in the first EEG signal data, so that the time information encoding module can extract the time information more effectively. Furthermore, even if different subjects have different writing imagination habits, or the same subject has different writing imagination habits when writing and imagining the same character multiple times, the time information encoding module can capture the time information corresponding to the corresponding EEG signal data, thereby ensuring the accuracy of the final output target Chinese character.

[0073] Optionally, the EEG signal classification model includes a spatial information encoding module, and uses the EEG signal classification model to encode the spatial information in the first EEG signal data to generate a spatial feature vector, including: the spatial information encoding module divides multiple input signal features to generate multiple second input signal matrices; the spatial information encoding module captures the spatial information of each second input information matrix and generates multiple second spatial feature matrices; the spatial information encoding module encodes the spatial information of each second spatial feature matrix to generate a spatial coding matrix; and the spatial information encoding module gradually extracts and expands the spatial coding matrix to generate a spatial feature vector.

[0074] Specifically, after the preprocessing module generates a plurality of input signal features corresponding to each sub-band, the plurality of input signal features are sent to the spatial information encoding module. First, the spatial information encoding module first converts any input signal feature of the plurality of input signal features into a Split to generate C2×F second input signal matrices in C2 dimension .

[0075] Then, the spatial information encoding module includes but is not limited to capturing the spatial information of each second input information matrix by means of dot product, Pearson correlation and mutual information, thereby generating multiple second spatial feature matrices For example, the spatial information encoding module uses the dot product method to multiply the second input information matrix by its own transpose, that is, ,in . Thus, we get a matrix that only focuses on spatial information , and since the spatial information encoding module has already segmented the input signal features in the C2 dimension, and each input signal feature corresponds to F sub-bands, multiple second spatial feature matrices are finally generated .

[0076] Furthermore, the spatial information encoding module uses a square convolution kernel to perform local spatial information encoding on each second spatial feature matrix, thereby generating a spatial encoding matrix. Finally, the spatial information encoding module uses multiple convolutional layers to perform step-by-step feature extraction on the spatial information encoding module, and expands it, thereby generating a spatial feature vector. It is worth noting that Figure 5 The three-layer spatial convolutional network is shown only as an example, and the actual situation is not limited to this.

[0077] Therefore, through the above operation, the spatial information encoding module can pay more attention to the spatial information in the first EEG signal data, so that the spatial information encoding module can more effectively extract spatial information, mine and utilize the interactive process of important information, and thus ensure the accuracy of the final output target Chinese characters.

[0078] Optionally, the EEG signal classification model further includes a feature classification module, and the operation of determining the digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector and using the EEG signal classification model includes: the feature classification module concatenates the time feature vector and the spatial feature vector into an output feature vector; the feature classification module uses the fully connected layer in the EEG signal classification model to determine the classification result corresponding to the output feature vector; and the feature classification module determines the digital sequence corresponding to the first EEG signal data based on the classification result.

[0079] Specifically, when the time information encoding module generates a time feature vector, the time feature vector is sent to the feature classification module. At the same time, when the spatial information encoding module generates a spatial feature vector, the spatial feature vector is sent to the feature classification module. Then the feature classification module concatenates the time feature vector and the spatial feature vector to generate an output feature vector. Further, the feature classification module uses the fully connected layer to determine the classification result corresponding to the output feature vector. Finally, the feature classification module determines the digital sequence corresponding to the first EEG signal data based on the classification result. That is, determine the category of each digit in the digital sequence corresponding to the output feature vector among the numbers 0-9.

[0080] For example, the feature classification module determines that the classification results corresponding to the output feature vector of the Chinese character "duan" are "0", "2", "1", "2", "1". Finally, the feature classification module determines the digital sequence corresponding to the first EEG signal data based on the classification result. For example, the feature classification module determines that the digital sequence corresponding to the Chinese character "duan" is "02121" based on the classification results of "0", "2", "1", "2", "1" corresponding to the output feature vector of the Chinese character "duan".

[0081] Optionally, the operation of outputting the target Chinese character according to the digital sequence includes: encoding the digital sequence, and decoding and correcting the encoded digital sequence based on the rules of the four-corner code lookup method, so as to output the target Chinese character. Specifically, since the rules of the four-corner code lookup method give the corresponding relationship between the numbers and the pen shapes, when the digital sequence is determined, the Chinese character output module can output the target Chinese character based on the digital sequence.

[0082] The advantages of this application are as follows:

[0083] 1. The technical solution disclosed in this application uses the rules of the four-corner code lookup method, thus solving the problem that the number of Chinese characters is huge and it is difficult to directly use the brain-computer interface system for decoding;

[0084] 2. The technical solution disclosed in this application is based on writing imagination, which improves the decoding rate;

[0085] 3. The technical solution disclosed in this application is tested on subjects in stages to ensure that the subjects can apply the four-corner number search method rules more skillfully and ensure the stability of the collected EEG signal data, further improving the robustness of the EEG signal classification model;

[0086] 4. The technical solution disclosed in this application provides a dual-branch spatiotemporal information fusion network, thereby solving the problem of decreased decoding accuracy caused by inconsistent writing time of the subjects.

[0087] Figure 7 This is an overall flow chart of the Chinese character output method based on the four-corner number brain-computer interface described in Example 1 of the present application. Figure 7 As shown:

[0088] S710: The signal acquisition module acquires first EEG signal data corresponding to the subject based on the four-corner number search rule;

[0089] S720: The preprocessing module divides the received first EEG signal data into a plurality of sub-bands, and performs filtering processing on the first EEG signal data corresponding to each sub-band respectively, to generate a plurality of second EEG signal data;

[0090] S730: The preprocessing module extracts features from the local time information of each second electroencephalogram signal data to generate multiple input signal features;

[0091] S740: The time information encoding module receives a plurality of input signal features sent by the preprocessing module;

[0092] S741: The time information encoding module divides and splices multiple input signal features to generate multiple first input signal matrices;

[0093] S742: The time information encoding module performs spatial convolution on each first input signal matrix to generate a plurality of first spatial feature matrices;

[0094] S743: The pooling layer in the time information encoding module extracts local time features of each first spatial feature matrix, and reduces the dimension of each first spatial feature matrix to generate multiple time feature matrices;

[0095] S744: The time information encoding module concatenates the various time feature matrices to generate an enhanced feature matrix;

[0096] S745: The time information encoding module uses the time encoder to encode the time information of the enhanced feature matrix to generate a time encoding matrix;

[0097] S746: The time information encoding module extracts and expands the time encoding matrix to determine a time feature vector;

[0098] S750: The spatial information encoding module receives a plurality of input signal features sent by the preprocessing module;

[0099] S751: The spatial information encoding module divides the multiple input signal features to generate multiple second input signal matrices;

[0100] S752: The spatial information encoding module captures the spatial information of each second input information matrix and generates a plurality of second spatial feature matrices;

[0101] S753: The spatial information encoding module encodes the spatial information of each second spatial feature matrix to generate a spatial encoding matrix;

[0102] S754: The spatial information encoding module gradually extracts and expands the spatial encoding matrix to generate a spatial feature vector;

[0103] S760: The feature classification module concatenates the time feature vector and the space feature vector into an output feature vector;

[0104] S770: The feature classification module uses the fully connected layer to determine the classification result corresponding to the output feature vector:

[0105] S780: The feature classification module determines a digital sequence corresponding to the first EEG signal data based on the classification result;

[0106] S790: The Chinese character output module encodes the digital sequence, decodes and corrects the encoded digital sequence based on the four-corner number search method rules, and outputs the target Chinese character.

[0107] Therefore, according to the first aspect of this embodiment, the decoding accuracy is improved, and the accuracy of the output target Chinese characters is further guaranteed.

[0108] In addition, reference Figure 1 As shown, according to the second aspect of this embodiment, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is run, a processor executes any one of the above methods.

[0109] Therefore, according to this embodiment, the decoding accuracy is improved, and the accuracy of the output target Chinese characters is further guaranteed.

[0110] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0112] Example 2

[0113] Figure 8 The Chinese character output device 800 based on the four-corner number brain-computer interface according to this embodiment is shown, and the device 800 corresponds to the method according to embodiment 1. Figure 8 As shown, the device 800 includes: a data acquisition module 810, which is used to collect first EEG signal data corresponding to the subject based on the four-corner number search method rule, wherein the first EEG signal data is used to instruct the subject to write and imagine a digital sequence corresponding to each stroke in the target Chinese character; a first encoding module 820, which is used to encode the time information in the first EEG signal data using an EEG signal classification model to generate a time feature vector; a second encoding module 830, which is used to encode the spatial information in the first EEG signal data using an EEG signal classification model to generate a spatial feature vector; a digital sequence determination module 840, which is used to determine the digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector and using the EEG signal classification model; and a target Chinese character output 850, which is used to output the target Chinese character according to the digital sequence.

[0114] Optionally, the EEG signal classification model also includes a preprocessing module, and the device 800 also includes: an input signal feature generation module, which is used to preprocess the first EEG signal data using the preprocessing module to generate input signal features, and the input signal feature generation module includes: a second EEG signal data generation module, which is used for the preprocessing module to divide the first EEG signal data into multiple sub-bands, and filter the first EEG signal data corresponding to each sub-band respectively, so as to generate multiple second EEG signal data corresponding to each sub-band, wherein each sub-band corresponds to a different frequency band; and an input signal feature generation submodule, which is used for the preprocessing module to extract features from the local time information of each second EEG signal data, so as to generate multiple input signal features.

[0115] Optionally, the EEG signal classification model includes a time information encoding module, and the first encoding module 820 includes: a first input signal matrix generation module, which is used for the time information encoding module to split and splice multiple input signal features to generate multiple first input signal matrices; a first spatial feature matrix generation module, which is used for the time information encoding module to perform spatial convolution on each first input signal matrix and generate multiple first spatial feature matrices; a time feature matrix generation module, which is used for the pooling layer in the time information encoding module to extract the local time features of each first spatial feature matrix and reduce the dimension of each first spatial feature matrix to generate multiple time feature matrices; and a time feature vector generation module, which is used for the time information encoding module to determine the time feature vector based on multiple time feature matrices.

[0116] Optionally, the time feature vector generation module includes: an enhanced feature matrix generation module, which is used by the time information encoding module to splice each time feature matrix to generate an enhanced feature matrix; a time coding matrix generation module, which is used by the time information encoding module to encode the time information of the enhanced feature matrix using the time encoder to generate a time coding matrix; and a time feature vector generation sub-module, which is used by the time information encoding module to extract features from the time coding matrix and expand it to determine the time feature vector.

[0117] Optionally, the EEG signal classification model includes a spatial information encoding module, and the second encoding module 830 includes: a second input signal matrix generation module, which is used for the spatial information encoding module to segment multiple input signal features, thereby generating multiple second input signal matrices; a second spatial feature matrix generation module, which is used for the spatial information encoding module to capture the spatial information of each second input information matrix and generate multiple second spatial feature matrices; a spatial coding matrix generation module, which is used for the spatial information encoding module to encode the spatial information of each second spatial feature matrix, thereby generating a spatial coding matrix; and a spatial feature vector generation module, which is used for the spatial information encoding module to gradually extract features from the spatial coding matrix and expand it, thereby generating a spatial feature vector.

[0118] Optionally, the digital sequence determination module 840 includes: an output feature vector generation module, used to splice the time feature vector and the spatial feature vector into an output feature vector; a classification result determination module, used to determine the classification result corresponding to the output feature vector using the fully connected layer in the EEG signal classification model; and a digital sequence determination submodule, used to determine the digital sequence corresponding to the first EEG signal data based on the classification result.

[0119] Optionally, the target Chinese character output 850 includes: a target Chinese character output submodule, which is used to encode the digital sequence, and decode and correct the encoded digital sequence based on the four-corner number search rule, so as to output the target Chinese character.

[0120] Therefore, according to this embodiment, the decoding accuracy is improved, and the accuracy of the output target Chinese characters is further guaranteed.

[0121] Example 3

[0122] Fig. 9 The Chinese character output device 900 based on the four-corner number brain-computer interface according to this embodiment is shown, and the device 900 corresponds to the method according to embodiment 1. Fig. 9 As shown, the device 900 includes: a processor 910; and a memory 920, which is connected to the processor 910 and is used to provide the processor 910 with instructions for processing the following processing steps: based on the four-corner number search rule, collecting first EEG signal data corresponding to the subject, wherein the first EEG signal data is used to instruct the subject to write and imagine a digital sequence corresponding to each stroke in the target Chinese character; using the EEG signal classification model to encode the time information in the first EEG signal data, thereby generating a time feature vector; using the EEG signal classification model to encode the spatial information in the first EEG signal data, thereby generating a spatial feature vector; based on the time feature vector and the spatial feature vector, and using the EEG signal classification model, determine the digital sequence corresponding to the first EEG signal data; and output the target Chinese character according to the digital sequence.

[0123] Optionally, the EEG signal classification model also includes a preprocessing module, and further includes: using the preprocessing module to preprocess the first EEG signal data to generate input signal features, and wherein the operation of using the preprocessing module to preprocess the first EEG signal data to generate input signal features includes: the preprocessing module divides the first EEG signal data into multiple sub-bands, and respectively filters the first EEG signal data corresponding to each sub-band to generate multiple second EEG signal data corresponding to each sub-band, wherein each sub-band corresponds to a different frequency band; and the preprocessing module extracts features from the local time information of each second EEG signal data to generate multiple input signal features.

[0124] Optionally, the EEG signal classification model includes a time information encoding module, and uses the EEG signal classification model to encode the time information in the first EEG signal data to generate a time feature vector, including: the time information encoding module divides and splices multiple input signal features to generate multiple first input signal matrices; the time information encoding module performs spatial convolution on each first input signal matrix to generate multiple first spatial feature matrices; the pooling layer in the time information encoding module extracts local time features of each first spatial feature matrix and reduces the dimension of each first spatial feature matrix to generate multiple time feature matrices; and the time information encoding module determines the time feature vector based on multiple time feature matrices.

[0125] Optionally, based on multiple time feature matrices and using a time information encoding module, the operation of determining a time feature vector includes: the time information encoding module splicing each time feature matrix to generate an enhanced feature matrix; the time information encoding module using a time encoder to perform time information encoding on the enhanced feature matrix to generate a time coding matrix; and the time information coding module extracts and expands features on the time coding matrix to determine a time feature vector.

[0126] Optionally, the EEG signal classification model includes a spatial information encoding module, and uses the EEG signal classification model to encode the spatial information in the first EEG signal data to generate a spatial feature vector, including: the spatial information encoding module divides multiple input signal features to generate multiple second input signal matrices; the spatial information encoding module captures the spatial information of each second input information matrix and generates multiple second spatial feature matrices; the spatial information encoding module encodes the spatial information of each second spatial feature matrix to generate a spatial coding matrix; and the spatial information encoding module gradually extracts and expands the spatial coding matrix to generate a spatial feature vector.

[0127] Optionally, the operation of determining the digital sequence corresponding to the first EEG signal data based on the time feature vector and the space feature vector and using the EEG signal classification model includes: concatenating the time feature vector and the space feature vector into an output feature vector; determining the classification result corresponding to the output feature vector using the fully connected layer in the EEG signal classification model; and determining the digital sequence corresponding to the first EEG signal data based on the classification result.

[0128] Optionally, the operation of outputting the target Chinese character according to the digital sequence includes: encoding the digital sequence, and decoding and correcting the encoded digital sequence based on the four-corner number search rule, so as to output the target Chinese character.

[0129] Therefore, according to this embodiment, the decoding accuracy is improved, and the accuracy of the output target Chinese characters is further guaranteed.

[0130] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0131] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0136] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A Chinese character output method based on a four-corner number brain-computer interface, characterized in that: include: Based on the four-corner number search method, collecting first EEG signal data corresponding to the subject, wherein the first EEG signal data is used to instruct the subject to write and imagine a numerical sequence corresponding to the stroke shape of the target Chinese character; Using the EEG signal classification model to capture time information in the first EEG signal data, and encoding the time information to generate a time feature vector; Using the EEG signal classification model to capture spatial information in the first EEG signal data, and encoding the spatial information to generate a spatial feature vector; Based on the time feature vector and the space feature vector, and using the EEG signal classification model, determine a digital sequence corresponding to the first EEG signal data; as well as According to the digital sequence, the target Chinese character is output, wherein The EEG signal classification model further includes a preprocessing module, and further includes: using the preprocessing module to preprocess the first EEG signal data to generate input signal features, and wherein the operation of using the preprocessing module to preprocess the first EEG signal data to generate input signal features includes: The preprocessing module divides the first EEG signal data into a plurality of sub-bands, and performs filtering processing on the first EEG signal data corresponding to each sub-band, thereby generating a plurality of second EEG signal data corresponding to each sub-band, wherein each sub-band corresponds to a different frequency band; and The preprocessing module extracts features from the local time information of each second EEG signal data, thereby generating a plurality of input signal features, wherein The EEG signal classification model includes a time information encoding module, and the operation of encoding the time information in the first EEG signal data using the EEG signal classification model to generate a time feature vector includes: The time information encoding module divides and splices the multiple input signal features to generate multiple first input signal matrices; The time information encoding module performs spatial convolution on each first input signal matrix and generates a plurality of first spatial feature matrices; The pooling layer in the temporal information encoding module extracts local temporal features of each first spatial feature matrix and reduces the dimension of each first spatial feature matrix, thereby generating a plurality of temporal feature matrices; and The time information encoding module determines a time feature vector based on the multiple time feature matrices, wherein The EEG signal classification model includes a spatial information encoding module, and the operation of encoding the spatial information in the first EEG signal data using the EEG signal classification model to generate a spatial feature vector includes: The spatial information encoding module divides the multiple input signal features to generate multiple second input signal matrices; The spatial information encoding module captures the spatial information of each second input information matrix and generates a plurality of second spatial feature matrices; The spatial information encoding module encodes the spatial information of each second spatial feature matrix to generate a spatial encoding matrix; and The spatial information encoding module gradually extracts and expands the features of the spatial encoding matrix to generate a spatial feature vector.

2. The method according to claim 1, characterized in that Based on the multiple time feature matrices and using the time information encoding module, an operation of determining a time feature vector includes: The time information encoding module concatenates the various time feature matrices to generate an enhanced feature matrix; The time information encoding module uses a time encoder to encode the time information of the enhanced feature matrix, thereby generating a time coding matrix; and The time information encoding module extracts and expands the features of the time encoding matrix, thereby determining the time feature vector.

3. The method according to claim 1, characterized in that The EEG signal classification model further includes a feature classification module, and based on the time feature vector and the space feature vector, the operation of determining the digital sequence corresponding to the first EEG signal data using the EEG signal classification model includes: The feature classification module concatenates the temporal feature vector and the spatial feature vector into an output feature vector; The feature classification module determines a classification result corresponding to the output feature vector using a fully connected layer; and The feature classification module determines a digital sequence corresponding to the first EEG signal data based on the classification result.

4. The method according to claim 1, characterized in that The operation of outputting the target Chinese character according to the digital sequence includes: The digital sequence is encoded, and the encoded digital sequence is decoded and corrected based on the four-corner number search rule, so as to output the target Chinese character.

5. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the processor executes the method according to any one of claims 1 to 4.

6. A Chinese character output device based on a four-corner number brain-computer interface, characterized in that: include: A data acquisition module, for acquiring first EEG signal data corresponding to the subject based on the four-corner number search method, wherein the first EEG signal data is used to instruct the subject to write and imagine a numerical sequence corresponding to each stroke shape in the target Chinese character; A first encoding module, used for encoding the time information in the first EEG signal data by using the EEG signal classification model, so as to generate a time feature vector; A second encoding module, used to encode the spatial information in the first EEG signal data using the EEG signal classification model, so as to generate a spatial feature vector; a digital sequence determination module, configured to determine a digital sequence corresponding to the first EEG signal data based on the time feature vector and the spatial feature vector and using the EEG signal classification model; as well as A target Chinese character output module is used to output the target Chinese character according to the digital sequence, wherein The EEG signal classification model further includes a preprocessing module, and the device further includes: an input signal feature generation module, which is used to preprocess the first EEG signal data using the preprocessing module to generate input signal features, and the input signal feature generation module includes: A second EEG signal data generating module, used for the preprocessing module to divide the first EEG signal data into a plurality of sub-bands, and respectively filter the first EEG signal data corresponding to each sub-band, so as to generate a plurality of second EEG signal data corresponding to each sub-band, wherein each sub-band corresponds to a different frequency band; and The input signal feature generation submodule is used for the preprocessing module to extract the local time information of each second EEG signal data to generate multiple input signal features, wherein The EEG signal classification model includes a time information encoding module, and the first encoding module includes: a first input signal matrix generation module, which is used for the time information encoding module to segment and splice the multiple input signal features, thereby generating multiple first input signal matrices; A first spatial feature matrix generating module, used for the time information encoding module to perform spatial convolution on each first input signal matrix and generate a plurality of first spatial feature matrices; A time feature matrix generation module, used for the pooling layer in the time information encoding module to extract the local time features of each first spatial feature matrix and reduce the dimension of each first spatial feature matrix, thereby generating a plurality of time feature matrices; and A time feature vector generating module is used for the time information encoding module to determine a time feature vector based on the multiple time feature matrices, wherein The EEG signal classification model includes a spatial information encoding module, and the second encoding module includes: a second input signal matrix generation module, which is used for the spatial information encoding module to segment the multiple input signal features, thereby generating multiple second input signal matrices; A second spatial feature matrix generating module, used for the spatial information encoding module to capture the spatial information of each second input information matrix and generate a plurality of second spatial feature matrices; a spatial coding matrix generating module, used for the spatial information encoding module to encode the spatial information of each second spatial feature matrix, thereby generating a spatial coding matrix; and The spatial feature vector generating module is used for the spatial information encoding module to gradually extract and expand the features of the spatial encoding matrix, thereby generating a spatial feature vector.

7. A computing device, characterized in that include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: Based on the four-corner number search method, collecting first EEG signal data corresponding to the subject, wherein the first EEG signal data is used to instruct the subject to write and imagine a sequence of numbers corresponding to each stroke shape in the target Chinese character; Encoding the time information in the first EEG signal data using the EEG signal classification model, thereby generating a time feature vector; Encoding the spatial information in the first EEG signal data using the EEG signal classification model, thereby generating a spatial feature vector; Based on the time feature vector and the space feature vector, and using the EEG signal classification model, determine a digital sequence corresponding to the first EEG signal data; as well as According to the digital sequence, the target Chinese character is output, wherein The EEG signal classification model further includes a preprocessing module, and further includes: using the preprocessing module to preprocess the first EEG signal data to generate input signal features, and wherein the operation of using the preprocessing module to preprocess the first EEG signal data to generate input signal features includes: The preprocessing module divides the first EEG signal data into a plurality of sub-bands, and performs filtering processing on the first EEG signal data corresponding to each sub-band, thereby generating a plurality of second EEG signal data corresponding to each sub-band, wherein each sub-band corresponds to a different frequency band; and The preprocessing module extracts features from the local time information of each second EEG signal data, thereby generating a plurality of input signal features, wherein The EEG signal classification model includes a time information encoding module, and the operation of encoding the time information in the first EEG signal data using the EEG signal classification model to generate a time feature vector includes: The time information encoding module divides and splices the multiple input signal features to generate multiple first input signal matrices; The time information encoding module performs spatial convolution on each first input signal matrix and generates a plurality of first spatial feature matrices; The pooling layer in the temporal information encoding module extracts local temporal features of each first spatial feature matrix and reduces the dimension of each first spatial feature matrix, thereby generating a plurality of temporal feature matrices; and The time information encoding module determines a time feature vector based on the multiple time feature matrices, wherein The EEG signal classification model includes a spatial information encoding module, and the operation of encoding the spatial information in the first EEG signal data using the EEG signal classification model to generate a spatial feature vector includes: The spatial information encoding module divides the multiple input signal features to generate multiple second input signal matrices; The spatial information encoding module captures the spatial information of each second input information matrix and generates a plurality of second spatial feature matrices; The spatial information encoding module encodes the spatial information of each second spatial feature matrix to generate a spatial encoding matrix; and The spatial information encoding module gradually extracts and expands the features of the spatial encoding matrix to generate a spatial feature vector.