Novel brain-computer interface control system
By introducing EEG signal acquisition, preprocessing, feature extraction and classification recognition modules into the brain-computer interface system, the problem of insufficient signal quality and decoding accuracy is solved, and more efficient signal processing and stronger stability are achieved, which is suitable for application in real life.
Patent Information
- Application Number
- CN202411006022.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-01
AI Technical Summary
The existing brain-computer interface system has low signal quality, low decoding accuracy, insufficient real-time performance and stability, and cannot be widely used in real life.
A brain-computer interface control system including an EEG signal acquisition module, a preprocessing module, a feature extraction module, a data classification and recognition module, and an algorithm decoding module is designed to improve the signal quality through signal amplification, denoising, feature extraction, and classification recognition. Processing speed and decoding accuracy enhance system stability.
It achieves accelerated signal processing and information conversion speed, improved signal recognition accuracy, enhanced decoding accuracy and stability, improved user experience and practicality, and is suitable for a wide range of applications.
Smart Images

Figure CN118732858A_ABST
Abstract
Description
Technical Field
[0002] The present invention relates to the field of bioinformatics, and in particular to a novel brain-computer interface control system. Background Art
[0003] Brain-computer interface is a new type of interpersonal interaction technology. It is a communication control system that does not rely on the normal output channels of the human brain's peripheral nerves and muscles. It collects and analyzes the bioelectric signals of the human brain to establish a direct communication and control channel between the human brain and computers or other electronic devices. In this way, people can express their wishes or manipulate equipment through their brains without using language or body movements.
[0004] An important use of brain-computer interface is to help patients with normal thinking but severely limited motor ability, so that they can communicate with the outside world with the help of external equipment. Brain-computer interface has become a research hotspot in the fields of brain science, rehabilitation engineering, biomedical engineering and human-computer automatic control research.
[0005] Although research on brain-computer interfaces has made positive progress in recent years, the existing brain-computer interfaces are still in the theoretical experimental stage. In addition, these research and experimental equipment are bulky, the system is scattered, there are many wires, and the data can only be analyzed offline and cannot be applied to real life and work.
[0006] The existing brain-computer interface signal quality and decoding accuracy are not high. Due to the attenuation and interference in the signal transmission process, the existing technology leads to slow signal processing and information conversion, low signal recognition accuracy, and low decoding accuracy. In addition, the existing brain-computer interface signal has certain delays and fluctuations, which affects the user experience and security, resulting in weak real-time and stability. Although the existing EEG interface technology has a wide range of applications, its functions are not perfect enough and need further improvement. Summary of the invention
[0007] In view of this, the present invention provides a novel brain-computer interface control system with good signal transmission quality, high decoding accuracy, strong stability, multiple functions and greater practicality.
[0008] In order to achieve the purpose of the present invention, the following technical solutions can be adopted: A novel brain-computer interface control system, including an EEG signal acquisition module, an EEG signal preprocessing module, a data storage module, an EEG signal control module, a feature extraction module, a data classification and recognition module, and an algorithm decoding module; The EEG signal acquisition module is used to collect human EEG signal data; the EEG signal preprocessing module is used to amplify, filter, and remove interference signals of the collected EEG signals; the data storage module is used to store EEG signal data; the EEG signal control module is used to control and analyze the EEG signals after analysis; the feature extraction module is used to convert the EEG physiological signals into feature vectors to reduce the dimension of the data; the data classification and recognition module is used to classify and recognize the extracted feature vectors; the algorithm decoding module is used to parse the user's intention or decision information and convert it into recognizable instructions; The EEG signal acquisition module transmits the collected EEG signals to the EEG control module through the EEG signal preprocessing module and the data storage module, and the EEG control module controls the feature extraction module, the data classification and recognition module, and the decoding algorithm module respectively.
[0009] Further, preferably, the feature extraction module includes a scale-invariant feature transformation algorithm module, and the local binary pattern algorithm module is used to detect and describe local feature information of the image.
[0010] Further, preferably, the feature extraction module comprises a local binary pattern algorithm module, and the local binary pattern algorithm module is used to describe local texture feature information of the image.
[0011] Further, preferably, the data and classification identification module includes a support vector machine module, which is used to classify the EEG signal by seeking to maximize the interval information between different categories.
[0012] Further, preferably, the data and classification recognition module includes a decision tree module, which is used to represent each internal node of the EEG signal as a test on an attribute, each branch as a test output, and each node as a category for classification.
[0013] Further, preferably, the algorithm decoding module includes a movement intention decoding module, and the movement intention decoding module is used to convert the EEG signal into intention information of action or movement.
[0014] Further, preferably, the algorithm decoding module includes an image processing module, and the image processing module is used to convert the EEG signal into image information.
[0015] Further, preferably, the image processing module includes an image enhancement module, an image segmentation module, an image recognition module and an image synthesis module; the image processing module transmits the image information to the image segmentation module through the image enhancement module, and the image segmentation module transmits the processed image information to the image synthesis module through the image recognition module.
[0016] Further, preferably, the algorithm decoding module includes a decoding algorithm optimization module, and the decoding algorithm optimization module is used to improve data decoding speed and efficiency.
[0017] The technical solution provided by the present invention has the following beneficial effects: 1) the present invention transmits the collected EEG signal to the EEG control module, and the present invention controls the feature extraction module, the data classification and recognition module, and the decoding algorithm module respectively through the EEG control module, so that the brain-computer interface is controlled to accelerate the signal processing and information conversion speed, greatly improve the accuracy of signal recognition, make decoding more accurate, greatly enhance the stability, and make operation easier; 2) the present invention has various functions, and the algorithm decoding module of the present invention includes an image processing module, which makes it more convenient to process EEG information, has strong practicality, and improves the user experience; 3) the present invention has a wide range of applications and is suitable for universal promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a block diagram of a novel brain-computer interface control system according to an embodiment of the present invention; Figure 2 4 is a system block diagram of an image processing module of a brain-computer interface control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The invention will be further described in detail below in conjunction with the accompanying drawings and embodiments of the invention. Example
[0020] See also Figure 1 , a novel brain-computer interface control system, including an EEG signal acquisition module 1, an EEG signal preprocessing module 2, a data storage module 3, an EEG signal control module 4, a feature extraction module 41, a data classification and recognition module 42, and an algorithm decoding module 5; The EEG signal module is used to detect human brain wave signals, and the EEG signal acquisition module 1 is used to collect human brain wave signal data; the EEG signal preprocessing module 2 is used to amplify, filter, and remove interference signals of the collected EEG signals in advance; the data storage module 3 is used to save EEG signal data; the EEG signal control module 4 is used to control and analyze the EEG signals after analysis; the feature extraction module 41 is used to convert the brain electrophysiological signal into a feature vector to reduce the dimension of the data; the data classification and recognition module 42 is used to classify and recognize the extracted feature vector; the algorithm decoding module 5 is used to parse the user's intention or decision information and convert it into a recognizable instruction; The EEG signal acquisition module 1 transmits the collected EEG signals to the EEG control module 4 through the EEG signal preprocessing module 2 and the data storage module 3. The EEG control module 4 controls the feature extraction module 41, the data classification and recognition module 42, and the decoding algorithm module 5 respectively.
[0021] In this embodiment, the acquisition and processing of the electroencephalogram (EEG) signal is one of the key technologies. The acquisition of the electroencephalogram (EEG) signal is usually achieved through an electrode array placed on the scalp, which can detect the weak electrical signals generated by the activity of neurons in the cerebral cortex. The collected raw EEG signal contains a lot of noise and artifacts, and needs to be preprocessed to improve the signal-to-noise ratio.
[0022] The data preprocessing includes operations such as filtering, artifact removal, and downsampling of electroencephalogram (EEG) signals. Filtering can remove noise and interference and improve the quality of the signal. Artifact removal can reduce the impact of electrocardiogram interference or electrooculogram interference on the EEG. Downsampling can reduce the amount of calculation and improve the operating efficiency of the algorithm.
[0023] In this embodiment, preferably, the EEG signal preprocessing module 2 includes a signal noise reduction processing module, and the signal noise reduction processing module 21 is used to perform noise reduction and filtering processing on the EEG signal preprocessing module 2 .
[0024] In this embodiment, further, preferably, the EEG signal preprocessing module 2 also includes a data cleaning module, which is used to remove noise and outliers and reduce errors in the data.
[0025] The EEG signal preprocessing module 2 also includes a feature selection module, which is used to select the most relevant features from the original data to improve the accuracy and efficiency of the algorithm.
[0026] The EEG signal preprocessing module 2 also includes a feature scaling module, which is used to unify the feature values into a smaller range to facilitate the convergence and calculation of the algorithm.
[0027] In this embodiment, the feature extraction is the process of converting the original electroencephalographic physiological signal into a feature vector, the purpose of which is to reduce the dimension of the data and extract meaningful information. The feature extraction method may include time-frequency features, spatial features, and spatiotemporal features.
[0028] When extracting features, you can choose the corresponding time domain or frequency domain feature extraction method according to the characteristics of the signal. For example, since the P300 signal has serious frequency mixing around 300ms, it is necessary to use CWT (Continuous Wavelet Transform) to extract it, mainly to extract its time domain characteristics; SSVEP (Steady-State Visual Evoked Potential) has good frequency domain characteristics, and can be extracted by FFT (Fast Fourier Transform): The feature extraction of the event-related desynchronization potential (Event-Related Desynchronizatlon, ERD) of μ rhythm and β rhythm requires the use of the contralateral effect of brain movement to extract its spatial domain characteristics. However, due to the low signal-to-noise ratio of EEG signals and the fact that some interference components have similar time-frequency characteristics to the signals, simple time-frequency feature extraction will affect the classification effect due to insufficient discrimination. Therefore, more complex time-domain-spatial domain analysis methods are needed to comprehensively process the signals.
[0029] The time-frequency feature can reflect the variation of EEG signals in time and frequency; the spatial feature can reflect the relationship between EEG signals in different brain regions; The spatiotemporal features can simultaneously consider information in the time and space dimensions, thereby improving the accuracy of EEG signal recognition.
[0030] In this embodiment, the preprocessed EEG signal is converted into mathematical features that can represent the state of brain activity, and analyzed through an algorithm module to achieve a more accurate and efficient analysis.
[0031] In this embodiment, preferably, the feature extraction module 41 includes a scale-invariant feature transform (SIFT) algorithm module 411 , and the SIFT algorithm module 411 is used to detect and describe local feature information of an image.
[0032] Further, preferably, the feature extraction module 41 comprises a local binary pattern (LBP) algorithm module 412, and the LBP algorithm module 412 is used to describe local texture feature information of the image.
[0033] SIFT algorithm module 411 is used to detect and describe local features of an image. The main steps include: Step 1: Scale space extreme value detection The scale space of the image is constructed by convolving the Gaussian blur convolution kernel with the original image.
[0034] Formula: L(x,y,σ) = G(x,y,σ) * I(x,y), where L(x,y,σ) represents the image in the scale space, G(x,y,σ) represents the Gaussian kernel, I(x,y) represents the original image, and σ is the standard deviation of the Gaussian kernel, which determines the degree of blur of the image.
[0035] Step 2: Key point positioning Based on the scale space extreme value detection, the Gaussian Difference function (DoG) is used to identify potential key points.
[0036] By comparing the pixel values in DoG images at adjacent scales, local extreme points are found as key points.
[0037] Step 3: Determine the direction of key points Each keypoint is assigned one or more principal directions based on the directions of pixel gradients within the keypoint's neighborhood.
[0038] This is done to make the descriptor invariant to image rotation.
[0039] Step 4: Calculation of key point descriptors In the neighborhood of each keypoint, the local gradient of the image is measured.
[0040] These gradient information are organized into a descriptor vector to represent the characteristics of the key point.
[0041] The descriptor usually includes gradient information of different directions and scales in the neighborhood of the key point.
[0042] In this embodiment, preferably, the LBP (Local Binary Pattern) algorithm is a feature descriptor for image texture analysis, which is mainly used to describe the local texture information around each pixel in the image. The following is the detailed calculation formula and steps of the LBP algorithm: First, perform the basic LBP calculation. The steps are as follows: First, for each pixel point P(x, y) in the image, obtain the grayscale values of the eight adjacent pixels in its neighborhood (usually an eight-neighborhood is used, which can also be adjusted according to specific needs).
[0043] Second, compare the grayscale values of the eight adjacent pixels with the grayscale value of the central pixel P(x, y). If the grayscale value of the adjacent pixel is greater than or equal to the central pixel, it is represented by 1; otherwise, it is represented by 0.
[0044] Third, the above results (8 0s or 1s) are arranged in order to obtain a binary number, which is the LBP value of the pixel. This binary number (8 bits) is usually converted to a decimal number for subsequent calculations or processing.
[0045] Secondly, the rotation-invariant LBP (LBP_ROT), includes the following steps: First, the original LBP is not rotationally invariant. To overcome this shortcoming, a rotationally invariant LBP mode is proposed. This mode achieves rotational invariance by rotating the LBP value and taking its minimum value as the final LBP value.
[0046] In the second step, the rotation-invariant LBP calculation formula takes into account all possible rotations and takes the minimum value as the final LBP value. In this way, no matter how the image is rotated, as long as the texture pattern remains unchanged, its LBP value will not change.
[0047] Again, Uniform LBP, including: Although the rotation LBP mode solves the problem of rotation invariance, the number of LBP values is still large (for 8-bit LBP, there are 256 possible values); in order to reduce the computational complexity, the uniform LBP mode is proposed.
[0048] A uniform LBP pattern is a pattern in which the binary sequence changes from 0 to 1 or from 1 to 0 no more than 2 times (the binary sequence is connected end to end). For example, 10100000 is not a uniform pattern because it has 3 changes.
[0049] Uniform LBP patterns greatly reduce the number of LBP values, thus reducing computational complexity. For 8-bit LBP, there are only 58 possible uniform patterns (plus one non-uniform pattern category, for a total of 59 categories) The LBP algorithm process includes the following steps: For each pixel in the image, calculate its LBP value according to the above steps.
[0050] After performing LBP calculation on the entire image, an LBP image can be obtained, in which the value of each pixel is its corresponding LBP value.
[0051] The LBP image can be further statistically analyzed, such as calculating the histogram of the LBP image or counting the frequency of occurrence of different LBP values, so as to provide a basis for subsequent image analysis or application.
[0052] The advantage of the LBP algorithm is that it can quickly capture the texture features of the image and has good rotation and illumination invariance. By extracting the LBP features of the image, it can be applied to multiple computer vision tasks, such as face recognition, texture analysis, pedestrian detection, etc.
[0053] In this embodiment, the data classification and identification module 42 is used to classify and identify the extracted feature vectors; In this embodiment, preferably, the data and classification identification module 42 includes a support vector machine module 421, and the support vector machine module 421 is used to classify the EEG signal by seeking to maximize the interval information between different categories.
[0054] In this embodiment, further, preferably, the data and classification identification module 42 includes a decision tree module 422, which is used to represent each internal node of the EEG signal as a test on an attribute, each branch as a test output, and each node as a category for classification.
[0055] The support vector machine is an algorithm that performs classification by seeking to maximize the margin between different classes.
[0056] The algorithm formula is as follows: Decision function: [ f(x) = \text{sign}(\omega \cdot x + b) ] Among them, (\omega) is the normal vector of the hyperplane, (b) is the intercept, and (x) is the sample to be classified.
[0057] The algorithm consists of the following steps: First, training is performed: that is, solving the optimization problem, finding the best hyperplane (maximizing the margin), and determining (\omega) and (b).
[0058] Secondly, make a prediction: this includes bringing the sample to be classified into the decision function and determining its category based on the positive or negative result.
[0059] The decision tree is a tree structure in which each internal node represents a test on an attribute, each branch represents a test output, and each leaf node represents a category.
[0060] The steps include the following: First, training is performed: starting from the root node, the data is gradually divided into subsets according to the attribute values of the data to form branches and nodes of the tree until the stopping condition is met (such as all samples belong to the same category or the attributes have been exhausted).
[0061] Secondly, make a prediction: starting from the root node, traversing down the tree structure according to the attribute value of the sample to be classified until reaching the leaf node, and taking the category of the leaf node as the prediction result.
[0062] In this embodiment, preferably, the algorithm decoding module 5 includes a DTMF (Dual Tone Multi Frequency) decoding algorithm module and an AAC audio decoding algorithm module.
[0063] The DTMF (dual tone multi-frequency) decoding algorithm module includes a DTMF (dual tone multi-frequency) decoding algorithm; the DTMF (dual tone multi-frequency) decoding algorithm includes: The DTMF decoding algorithm is used to detect the received DTMF signal and restore it to the corresponding numeric keys.
[0064] The main steps and formulas (taking the FFT algorithm as an example) are as follows: Perform FFT (Fast Fourier Transform) on the received DTMF signal to obtain the signal's spectrum diagram.
[0065] According to the characteristics of DTMF signals, find the frequency components representing each signal in the spectrum diagram (for DTMF signals, there are usually 8 different frequency combinations).
[0066] The frequency components of each DTMF signal are matched with a predefined frequency table to determine the corresponding numeric key.
[0067] If the received signal contains multiple frequency components (for example, multiple numeric keys are pressed simultaneously), conflict resolution or identification of multiple key presses is required.
[0068] It should be noted that the specific implementation of the DTMF decoding algorithm may vary depending on different hardware and software platforms.
[0069] The AAC audio decoding algorithm module includes an AAC audio decoding algorithm; The AAC audio decoding algorithm (based on ISO / IEC 13818-7 and ISO / IEC 14496-3 standards) includes: The AAC audio decoding algorithm is used to restore the compressed AAC audio stream to the original PCM (Pulse Code Modulation) data. Its main steps include: Synchronization and element decoding: Find out the format information of the AAC audio stream, and decode the header information and element information.
[0070] Noise-free decoding (Huffman decoding): Decodes AAC bit stream into PCM data through modules such as inverse quantization, joint stereo, perceptual noise replacement, transient noise shaping, inverse discrete cosine transform, and frequency band replication.
[0071] Data output: Output the decoded PCM data to the sound playback device.
[0072] In this embodiment, preferably, the algorithm decoding module 5 includes a movement intention decoding module 51, which is used to convert the EEG signal into intention information of action or movement.
[0073] The movement intention decoding module 51 converts the electroencephalographic physiological signal into the intention of a certain action or movement. Among them, the most common is to judge the electroencephalographic signal as the intention of upper limb movement, such as flexible movement of fingers or movement of upper arms. The key to movement intention decoding is to accurately identify the correspondence between the electroencephalographic signal and the specific action intention. Example
[0074] In this embodiment, further, preferably, the algorithm decoding module 5 includes an image processing module 52, and the image processing module 52 is used to convert the EEG signal into image information.
[0075] The image processing module 52 is used to extract features related to the image processing task from the preprocessed signal and identify the user's thinking intention. The image processing module 52 can use machine learning and pattern recognition technology, such as support vector machine (SVM), neural network (NN), etc. Through these algorithms, the system of the present invention can automatically learn and identify the user's thinking pattern and convert it into image processing instructions.
[0076] See also Figure 2 , which is different from the above-mentioned embodiment, is that, in this embodiment, preferably, the image processing module 52 includes an image enhancement module 521, an image segmentation module 522, an image recognition module 523 and an image synthesis module 524; the image processing module 52 transmits the image information to the image segmentation module 522 through the image enhancement module 521, and the image segmentation module 522 transmits the processed image information to the image synthesis module 524 through the image recognition module 523.
[0077] The image enhancement module 521 is used to process the original image information to improve the visual effect of the image, increase the clarity of the image or highlight some important information in the image.
[0078] Image enhancement refers to highlighting certain information in an image according to specific needs, while weakening or removing certain unnecessary information. The purpose is to improve the visual effect of the image and make the image more suitable for human visual characteristics or machine recognition systems. Through image enhancement processing, the quality of the image is improved, and the readability and visualization effect are also enhanced.
[0079] The functions of the image enhancement module 521 include: Comprehensive contrast enhancement function, including real-time contrast enhancement of the entire image using contrast enhancement algorithm, improving the quality of the entire picture and increasing the readability of the entire image.
[0080] The local contrast enhancement function includes selecting a local image by a user-specified method (such as mouse click), and using a contrast enhancement algorithm to perform real-time contrast enhancement on the selected area, thereby improving the image quality of the specific area.
[0081] The comprehensive defogging function includes a highly efficient real-time defogging algorithm for the entire image to obtain a clear image without fog. Users can also manually adjust the defogging level to meet different needs.
[0082] The local dehazing function includes a function similar to local contrast enhancement, where users can select a local image for dehazing algorithm processing to improve the clarity of a specific area.
[0083] The image enhancement implementation method includes directly performing various linear or nonlinear operations on the image in the spatial domain of the image, and performing enhancement processing on the pixel grayscale value of the image.
[0084] It also includes treating the image as a two-dimensional signal in the image transform domain and performing signal enhancement based on two-dimensional Fourier transform. This method can transform the image from the spatial domain to the frequency domain for analysis and processing, thereby achieving a more sophisticated image enhancement effect.
[0085] The algorithm formula of the image enhancement method is as follows: 1. Histogram Equalization Principle: Flatten the grayscale histogram distribution of the image to enhance the contrast of the image.
[0086] Formula: (s_k = T(r k) = \sum {j=0}^{k} \frac{n_j}{n} \times (L-1)), where (r_k) is the (k)th grayscale in the input image, (n_j) is the number of pixels with grayscale level (j), (n) is the total number of pixels in the image, (L) is the number of grayscale levels, and (s_k) is the (k)th grayscale in the output image.
[0087] 2. Local Averaging Principle: Reduce the noise in the image by taking the average value in the local neighborhood of pixels.
[0088] Formula: (g(x, y) = \frac{1}{M} \sum_{(m, n) \in S} f(m, n)), where (f(m,n)) is the pixel value at position ((m, n)) in the input image, (g(x, y)) is the pixel value at position ((x, y)) in the output image, (S) is the local neighborhood centered at ((x, y)), and (M) is the number of pixels in (S).
[0089] The image segmentation module 522 is a core part of the image processing system, and is used to subdivide a digital image into multiple image sub-regions or objects with similar characteristics.
[0090] Image segmentation is the process of subdividing a digital image into multiple image sub-regions (collections of pixels, also called super-pixels). These sub-regions are formed based on similarity criteria of grayscale, color, texture, shape or other image characteristics.
[0091] The purpose of image segmentation is to simplify or change the representation of an image into a form that is easier to analyze in order to facilitate further tasks such as object recognition and tracking.
[0092] Image segmentation implementation methods include: Boundary-based methods: segmentation is performed by detecting the boundaries of different regions.
[0093] Texture-based method: uses the texture features of the image for segmentation, which is suitable for images with obvious texture features.
[0094] The image segmentation algorithm formula includes: 1. Threshold-based segmentation method Threshold segmentation method divides the gray level of the image into different categories by setting one or more thresholds, thus completing the segmentation. Common methods include bimodal method, maximum between-class variance method (OTSU), etc.
[0095] The OTSU method includes: Principle: The image to be segmented is regarded as consisting of two categories, one is the background and the other is the target. The variance is used to measure the difference between the target and the background. The gray level with the largest inter-class variance between the target and the background is considered to be the optimal threshold.
[0096] Key formula: Between-class variance = (Pa(w_a - w_0)^2 + Pb(w_b - w_0)^2), where + \(Pa\) and \(Pb\) are the proportions of foreground and background pixels, respectively.
[0097] + \(w_a\) and \(w_b\) are the average grayscale values of foreground and background pixels respectively.
[0098] + \(w_0\) is the average grayscale value of the entire image.
[0099] Second, the region-based segmentation methods include: Region-based segmentation methods usually include region growing and split-merge methods.
[0100] Region Growing Principle: Pixels with similar properties are grouped together to form a region. Starting from a seed pixel, the surrounding pixels with similar properties to the seed pixel are added to the region, and the process is iterated until no pixels that meet the conditions can be included.
[0101] Key steps: Select one or more seed pixels.
[0102] Determine the growth criteria (such as grayscale, color, texture, etc.).
[0103] Neighboring pixels that satisfy the growing criterion are added to the region iteratively.
[0104] The image recognition module 523 is used to convert visual information into decoding algorithm information of images or image features by analyzing EEG signals.
[0105] The image recognition module 523 refers to a decoding algorithm that converts visual information into images or image features by analyzing brain electrophysiological signals. The decoding and recognition of visual information is achieved by comparing the EEG signal with a pre-trained image pattern.
[0106] The image recognition module 52 performs image analysis and conversion including the following steps: First, feature extraction SIFT (Scale Invariant Feature Transform) The SIFT algorithm is a scale-space-based algorithm that can extract and match feature points in images of different sizes and angles.
[0107] The main steps include scale-space extremum detection, key point localization, direction determination and key point description.
[0108] The formula is mainly used to describe Gaussian filtering (in scale space construction) and key point description (through gradient direction and neighborhood pixel information).
[0109] SURF (Speeded Up Robust Features) The SURF algorithm is similar to SIFT, but faster.
[0110] It uses the Hessian matrix for feature point detection and Haar wavelet responses to describe key points.
[0111] Second, classification and identification Precision Accuracy refers to the proportion of samples that are actually positive among those predicted by the model to be positive.
[0112] Formula: (Precision = \frac{True Positives}{True Positives + False Positives} ) Recall Recall refers to the proportion of samples that are predicted as positive examples by the model among all samples that are actually positive examples.
[0113] Formula: (Recall = \frac{True positive examples}{True positive examples + False negative examples}) F1 Score The F1 score is the harmonic mean of precision and recall, which is used to comprehensively consider the performance of the two.
[0114] Formula: (F1 Score = 2 \frac{Precision Recall}{Precision + Recall} ) Accuracy Accuracy refers to the proportion of samples that are correctly predicted by the model to the total number of samples.
[0115] Formula: (Accuracy = \frac{True positive examples + True negative examples}{Total number of samples}) Third, loss function The loss function is a function that measures the prediction error of the model and is used to optimize the parameters of the model.
[0116] Common loss functions include mean square error, cross entropy, etc. The specific formulas of these loss functions depend on the specific tasks and models.
[0117] Fourth, AUC-ROC AUC-ROC is the area under the ROC curve, which is used to measure the performance of the model at various thresholds.
[0118] The closer the AUC-ROC value is to 1, the better the performance of the model.
[0119] Fifth, Running Time Running time is an important indicator to measure the speed of model operation, which is particularly important for real-time applications or large-scale data sets.
[0120] The image synthesis module 524 includes collecting or creating different image elements (such as background, characters, objects, etc.), and then analyzing and processing these elements through image processing algorithms, including color correction, edge detection, lighting adjustment, etc. Finally, the processed elements are merged according to certain rules and algorithms to form a final synthesized image.
[0121] The image synthesis method comprises: Masking technology: Control the visibility and transparency of elements by defining a mask layer to achieve precise fusion of elements.
[0122] Transparency adjustment: Blending between elements is achieved by adjusting the opacity of the elements.
[0123] Layer overlay: Place different elements on different layers and achieve a fusion effect by adjusting the order and transparency of the layers.
[0124] The image synthesis method includes an image synthesis algorithm formula, which is as follows: 1. Transparency fusion formula (also known as Alpha fusion): $$F(x,y) = \alpha \times S(x,y) + (1 - \alpha) \times T(x,y)$$ Among them, $F(x, y)$ represents the fused image, $S(x, y)$ represents the source image, $T(x, y)$ represents the template image, and $\alpha$ represents the fusion weight (also known as transparency). This formula describes how to calculate the pixel value of the fused image based on the pixel values of the source image and the template image and the transparency weight.
[0125] 2. Alpha mask fusion formula: In some cases, a separate alpha mask (i.e. a transparent mask image) can be used to control the blending. The formula is: $$output = foreground \times mask + background \times (1 - mask)$$ Here, $output$ is the fused image, $foreground$ is the foreground image, $background$ is the background image, and $mask$ is the alpha mask. This formula describes how to use the foreground image, background image, and alpha mask to calculate the fused image. Example
[0126] In this embodiment, further, preferably, the algorithm decoding module 5 also includes a lossless coding and decoding algorithm module and a lossy coding and decoding algorithm module; the lossless coding and decoding algorithm module includes a lossless coding and decoding algorithm, and the lossy coding and decoding algorithm module includes a lossy coding and decoding algorithm.
[0127] The lossless codec algorithm and the lossy codec algorithm each have different principles and methods in digital signal processing, including the following descriptions: Lossless codec algorithm Lossless codec algorithms ensure the integrity of data during the encoding and decoding process, that is, the decoded data is completely consistent with the original data. Such algorithms are usually used in scenarios with high requirements for data integrity, such as text files, audio (such as AAC lossless decoding), or certain types of images.
[0128] Lossless codec algorithms include Huffman Coding: Huffman coding is an entropy coding method based on variable-length coding, which is often used for lossless data compression.
[0129] It compresses data by assigning a unique codeword of variable length to each input symbol.
[0130] The length of the code is based on the probability of the input symbol appearing. The higher the probability of the symbol appearing, the shorter the code length.
[0131] Lossless codec algorithms include arithmetic coding (Arithmetic Coding): Arithmetic coding is another entropy coding method that achieves compression by representing the entire data stream with a floating point number.
[0132] In arithmetic coding, the input symbol sequence is mapped to an interval between 0 and 1, the length of which is proportional to the probability of the input symbol sequence.
[0133] Other lossless codec algorithms: In addition to Huffman coding and arithmetic coding, there are also lossless coding and decoding algorithms such as run-length encoding (RLE, Run Length Encoding).
[0134] Lossy codec algorithm Lossy codecs lose some information during the encoding process in exchange for a higher compression ratio. Such algorithms are often used to compress image and audio data because the human perception system can usually accept this quality loss even if some information is lost.
[0135] Lossy codec algorithms include discrete cosine transform (DCT, Discrete Cosine Transform): The DCT is a linear transform commonly used in signal and image processing, especially in lossy compression of images and audio.
[0136] Through DCT transformation, the signal can be converted from the time domain to the frequency domain, which facilitates the analysis and processing of the signal.
[0137] In image coding standards such as JPEG, DCT is used to transform image blocks, and then quantization is used to reduce data redundancy.
[0138] Lossy codec algorithms include quantization: The quantization is a process of approximating the continuous values of a signal to multiple discrete values, which plays a key role in lossy compression.
[0139] In coding standards such as MPEG-2, the quantization process is achieved by dividing the DCT coefficients by a certain quantization step size.
[0140] The size of the quantization step determines the compression ratio and the degree of distortion. The smaller the step size, the smaller the distortion, but the larger the amount of data.
[0141] In this embodiment, preferably, the algorithm decoding module 5 includes a decoding algorithm optimization module 6, and the decoding algorithm optimization module 6 is used to improve the data decoding speed and efficiency.
[0142] The decoding algorithm optimization is to improve the data decoding speed, efficiency and quality, including the following steps: Step 1: Algorithm selection and optimization Lossless and lossy codec algorithms: Use lossless codec algorithms (which can completely restore image data but have lower compression) and lossy codec algorithms (which have higher compression but may lose image quality) based on your needs.
[0143] Optimize the mathematical model and calculation method of the decoding algorithm: Improve the decoding speed and efficiency by improving the mathematical model of the algorithm, reducing unnecessary calculation steps, or using a more efficient algorithm.
[0144] The second step is parallelization Utilize multi-core processors: Decompose the decoding task into multiple subtasks and assign them to different processor cores for simultaneous calculation to achieve parallel acceleration.
[0145] Use graphics processing unit (GPU): Through parallel computing libraries or technologies such as CUDA and OpenCL, make full use of GPU for efficient parallel decoding calculations.
[0146] Step 3: Memory Management and Cache Optimization Reasonable memory management strategy: avoid frequent memory allocation and release operations to reduce performance loss caused by memory fragmentation.
[0147] Optimize data access patterns and cache mechanisms: By optimizing data locality, reducing cache invalidations, and improving memory access efficiency, the decoding process is accelerated.
[0148] Step 4: Tuning algorithm parameters and data structure Adjust quantization parameters and encoding parameters: Find the optimal parameter combination to achieve a balance between image quality and compression ratio.
[0149] Select appropriate data structures: such as hash tables, tree structures, etc., to improve the search and indexing efficiency of the decoding algorithm and reduce unnecessary computing and storage overhead.
[0150] Step 5: Hardware Acceleration and Heterogeneous Computing Use dedicated hardware: such as image decoding chips or FPGA (field programmable gate array) and other hardware devices to accelerate the decoding algorithm at the hardware level.
[0151] Optimize heterogeneous computing environments: Optimize different computing resources (such as CPU, GPU, etc.) to improve decoding efficiency.
[0152] Step 6: Specific optimization technology examples H.264 decoding optimization: Improve time-consuming modules (such as interpolation and deblocking filter modules), port the algorithm to the ARM platform, and optimize it according to the platform characteristics.
[0153] H.265 decoding optimization: In view of the high computational complexity of H.265, it is necessary to properly address the technical challenges brought about by the solution upgrade, while using its flexible encoding structure and parallel design to improve decoding efficiency.
[0154] Step 7: Evaluation and Optimization Cycle Performance evaluation: Use appropriate evaluation indicators (such as decoding speed, decoding quality, etc.) to evaluate the optimized decoding algorithm.
[0155] Feedback loop: Adjust the optimization strategy based on the evaluation results and repeat the above optimization steps until satisfactory performance is achieved.
[0156] By comprehensively considering the above aspects, the decoding algorithm can be effectively optimized to improve decoding efficiency and quality.
[0157] In this embodiment, further, preferably, the decoding algorithm optimization module 6 includes a gradient descent algorithm and a Newton algorithm The gradient descent algorithm minimizes the loss function by iteratively adjusting the model parameters.
[0158] The Newton algorithm uses the second-order derivative information of the objective function to update the model parameters, and has a fast convergence speed, but has high requirements on memory and computing power.
[0159] The gradient descent algorithm includes the following basic formula: The basic formula of the gradient descent method is: θ = θ - α * ∇J(θ) θ: represents the parameters of the model, that is, the target we want to optimize.
[0160] α: Learning Rate, used to control the step size of parameter update in each iteration.
[0161] ∇J(θ): represents the gradient of the loss function J(θ) with respect to the parameter θ. It gives the derivative of the loss function at the current parameter point and determines the direction of parameter update.
[0162] The formula of the Newton algorithm is as follows: Newton iteration formula is as follows: [ x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} ] (x_n): approximate solution obtained at the (n)th iteration.
[0163] ( f(x_n) ): The function value of the function ( f(x) ) at the point ( x_n ).
[0164] ( f'(x_n) ): The derivative (or slope) of the function ( f(x) ) at the point ( x_n ).
[0165] The iterative process includes: Initialization: Choose an initial point ( x_0 ).
[0166] Compute function values and derivatives: Compute ( f(x_0) ) and ( f'(x_0) ).
[0167] Iterate: Calculate according to the formula ( x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} ).
[0168] Repeat the iteration: for each new (x_n), calculate (f(x_n)) and (f'(x n) ), and make Use the iterative formula to get (x{n+1}).
[0169] Termination condition: When (|x_{n+1} - xn|) is less than a predetermined threshold (or reaches the maximum number of iterations), the iteration is stopped and (x{n+1}) is considered to be an approximate solution to the equation.
[0170] 3. Principles and Applications Principle: Newton's method is based on Taylor series expansion and uses the first-order derivative information of the function to approximate the zero point of the function. Because of the use of derivative information, Newton's method usually converges faster than iterative methods that only use function values (such as the bisection method).
[0171] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A new brain-computer interface control system, Features: It includes an EEG signal acquisition module, an EEG signal preprocessing module, a data storage module, an EEG signal control module, a feature extraction module, a data classification and recognition module, and an algorithm decoding module; The EEG signal module is used to detect human brain wave signals, and the EEG signal acquisition module is used to acquire human brain wave signal data; The EEG signal preprocessing module is used to amplify, filter and remove interference signals of the collected EEG signals; The data storage module is used to store EEG signal data; the EEG signal control module is used to perform control analysis by analyzing the processed EEG signals; the feature extraction module is used to convert EEG physiological signals into feature vectors; the data classification and recognition module is used to classify and recognize the extracted feature vectors; the algorithm decoding module is used to parse the user's intention or decision information and convert it into recognizable instructions; The EEG signal acquisition module transmits the collected EEG signals to the EEG control module through the EEG signal preprocessing module and the data storage module, and the EEG control module controls the feature extraction module, the data classification and recognition module, and the decoding algorithm module respectively.
2. According to the novel brain-computer interface control system of claim 1, Features: The feature extraction module includes a scale-invariant feature transformation algorithm module, and the scale-invariant feature transformation algorithm module is used to detect and describe local feature information of an image.
3. According to the novel brain-computer interface control system of claim 2, Features: The feature extraction module includes a local binary pattern algorithm module, and the local binary pattern algorithm module is used to describe local texture feature information of the image.
4. According to the novel brain-computer interface control system of claim 3, Features: The data and classification recognition module includes a support vector machine module, which is used to classify EEG signals by seeking to maximize the interval information between different categories.
5. According to the novel brain-computer interface control system of claim 4, Features: The data and classification recognition module includes a decision tree module, which is used to represent each internal node of the EEG signal as a test on an attribute, each branch as a test output, and each node as a category for classification.
6. According to the novel brain-computer interface control system of claim 5, Features: The algorithm decoding module includes a movement intention decoding module, which is used to convert the EEG signal into intention information of action or movement.
7. According to the novel brain-computer interface control system of claim 6, Features: The algorithm decoding module includes an image processing module, which is used to convert EEG signals into image information.
8. According to the novel brain-computer interface control system of claim 7, Features: The image processing module includes an image enhancement module, an image segmentation module, an image recognition module and an image synthesis module; the image processing module transmits image information to the image segmentation module through the image enhancement module, and the image segmentation module transmits the processed image information to the image synthesis module through the image recognition module.
9. According to the novel brain-computer interface control system of claim 8, Features: The algorithm decoding module includes a decoding algorithm optimization module, which is used to improve data decoding speed and efficiency.
