[go: up one dir, main page]

CN116115238A - A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption - Google Patents

A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption Download PDF

Info

Publication number
CN116115238A
CN116115238A CN202111344625.6A CN202111344625A CN116115238A CN 116115238 A CN116115238 A CN 116115238A CN 202111344625 A CN202111344625 A CN 202111344625A CN 116115238 A CN116115238 A CN 116115238A
Authority
CN
China
Prior art keywords
eeg
eeg signal
distributed
data compression
encryption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111344625.6A
Other languages
Chinese (zh)
Inventor
吴振东
张毅
王立成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Smic Future Beijing Technology Co ltd
Original Assignee
Smic Future Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Smic Future Beijing Technology Co ltd filed Critical Smic Future Beijing Technology Co ltd
Priority to CN202111344625.6A priority Critical patent/CN116115238A/en
Publication of CN116115238A publication Critical patent/CN116115238A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/369Electroencephalography [EEG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/369Electroencephalography [EEG]
    • A61B5/372Analysis of electroencephalograms
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7225Details of analogue processing, e.g. isolation amplifier, gain or sensitivity adjustment, filtering, baseline or drift compensation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7232Signal processing specially adapted for physiological signals or for diagnostic purposes involving compression of the physiological signal, e.g. to extend the signal recording period
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Signal Processing (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Psychiatry (AREA)
  • Molecular Biology (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychology (AREA)
  • Power Engineering (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明针对脑‑机接口系统部署不够灵活、脑电采集设备耗电、数据传输不安全等问题,提出支持数据压缩与加密的分布式脑电信号计算方法,将脑‑机接口系统的不同计算过程分布式地部署到不同的计算节点上,节点之间通过无线网络传输数据,对脑电采集设备发送的脑电信号进行数据压缩与加密,对计算节点间传输的数据进行加密,在不同的计算节点上分别部署接收与滤波程序、特征提取与分类程序、外部设备控制程序。本发明解决脑电信号计算过程在一个计算节点上导致不灵活的问题,提升了便携式脑电采集设备的工作时长,提高了脑电信号网络传输的安全性。

Figure 202111344625

Aiming at problems such as inflexible deployment of the brain-computer interface system, power consumption of EEG acquisition equipment, and unsafe data transmission, the present invention proposes a distributed EEG signal calculation method that supports data compression and encryption, and combines different calculations of the brain-computer interface system The process is deployed on different computing nodes in a distributed manner. The nodes transmit data through the wireless network, compress and encrypt the EEG signals sent by the EEG acquisition equipment, and encrypt the data transmitted between the computing nodes. The receiving and filtering program, the feature extraction and classification program, and the external device control program are respectively deployed on the computing nodes. The invention solves the problem of inflexibility caused by an EEG signal calculation process on one calculation node, increases the working time of a portable EEG acquisition device, and improves the security of EEG signal network transmission.

Figure 202111344625

Description

支持数据压缩与加密的分布式脑电信号计算方法A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption

技术领域technical field

本发明涉及一种支持数据压缩与加密的分布式脑电信号计算方法,主要应用于脑-机接口领域,将脑电信号的计算过程分布在不同的计算节点上,节点之间的脑电数据通过网络进行传输,并对传输的脑电数据进行压缩与加密,提升脑-机接口系统的实用性、安全性、灵活性。The invention relates to a distributed EEG signal calculation method supporting data compression and encryption, which is mainly used in the field of brain-computer interface, and distributes the calculation process of EEG signals on different computing nodes, and the EEG data between nodes It is transmitted through the network, and the transmitted EEG data is compressed and encrypted to improve the practicability, security, and flexibility of the brain-computer interface system.

背景技术Background technique

脑-机接口(brain-computer interface,BCI)技术是指在人脑与外部设备之间创建连接,实现脑与设备的信息交换,通常情况下会通过计算机来处理脑电信号并将处理结果传输给外部设备。脑电信号是脑神经细胞电生理活动在大脑皮层的总体反映,其中包含了大量的生理信息,可以用来为某些脑疾病提供诊断依据,也可以用来分析大脑真实的情感,或者用来控制外部设备。在脑-机接口系统中,有专门的设备来采集脑电信号并传输给计算机,计算机在接收脑电信号后,通过信号处理、特征提取与分类之后得到大脑的真实意图,并将此意图发送给外部设备,实现脑控外部设备、脑意识监测等目的。Brain-computer interface (brain-computer interface, BCI) technology refers to the establishment of a connection between the human brain and external devices to realize the information exchange between the brain and the device. Usually, the computer processes the EEG signal and transmits the processing results. to external devices. EEG signals are the overall reflection of the electrophysiological activities of brain nerve cells in the cerebral cortex, which contains a large amount of physiological information, which can be used to provide diagnostic basis for certain brain diseases, and can also be used to analyze the real emotions of the brain, or to Control external devices. In the brain-computer interface system, there are special equipment to collect EEG signals and transmit them to the computer. After receiving the EEG signals, the computer obtains the real intention of the brain through signal processing, feature extraction and classification, and sends the intention to the computer. Provide external equipment to achieve the purpose of brain-controlled external equipment and brain awareness monitoring.

常见的脑-机接口系统的组成部分包括脑电信号采集设备、脑电信号处理计算机、外部响应设备等,各个设备间一般会通过无线网络来传输数据。脑电信号采集设备通常是头盔这种便携式设备,在工作时会实时地采集大脑皮层信号并发送给处理计算机,在很多应用场景下脑电采集设备的工作时长是非常重要的一个需求,而便携式脑电采集设备的工作是采集与发送脑电信号,由于多通道、高采样率的原因,采集设备需要通过无线网络发送大量的数据到处理计算机上,这就造成采集设备大部分的能耗是无线传输脑电数据造成的。为了延长脑电采集设备的工作时长,本发明采用数据压缩的方法来减少网络数据传输量,提升脑-机接口系统的实用性。The components of a common brain-computer interface system include EEG signal acquisition equipment, EEG signal processing computer, external response equipment, etc., and data is generally transmitted between each device through a wireless network. EEG signal acquisition equipment is usually a portable device such as a helmet, which collects cerebral cortex signals in real time and sends them to the processing computer during work. In many application scenarios, the working time of EEG acquisition equipment is a very important requirement, and portable The job of the EEG acquisition equipment is to collect and send EEG signals. Due to the multi-channel and high sampling rate, the acquisition equipment needs to send a large amount of data to the processing computer through the wireless network, which causes most of the energy consumption of the acquisition equipment to be Caused by wireless transmission of EEG data. In order to prolong the working hours of the EEG acquisition equipment, the present invention adopts a data compression method to reduce the amount of network data transmission and improve the practicability of the brain-computer interface system.

在有些场景下,如军事场景,或者需要对传输的脑电信号进行加密保护等需求,就需要在脑电信号网络传输过程中避免被他人窃听到真实的大脑想法,现有的脑电信号传输方法都是在实验场景下,并没有考虑到隐私保护、安全传输的情况,本发明采用数据加密的方式来保护大脑的真实意图,使得在隐私性要求极高的场景下也能安全地使用脑-机接口系统。In some scenarios, such as military scenarios, or the need to encrypt and protect the transmitted EEG signals, it is necessary to avoid being eavesdropped on the real brain thoughts by others during the EEG signal network transmission process. The existing EEG signal transmission The methods are all in experimental scenarios, without considering privacy protection and secure transmission. The present invention uses data encryption to protect the real intention of the brain, so that the brain can be safely used in scenarios with high privacy requirements. - Machine interface system.

脑-机接口系统包含对脑电信号的采集、计算、响应等多个步骤,脑电信号处理计算机在接收到脑电信号后,需要进行数据预处理,通过滤波算法将脑电信号中的工频、肌电信号等滤除掉,然后对滤波后的脑电信号进行特征提取与分类,最后将分类结果发送给外部设备控制程序,达到脑控外部设备的目的。在这一过程中,现有的方法通常是将这些程序都在同一个计算节点上实现,这样会限制脑-机接口系统的应用灵活性。本发明将脑电信号的接收与滤波程序、特征提取与分类程序、外部设备控制程序分布式地部署在不同的计算节点上运行,提升脑-机接口系统的灵活性。The brain-computer interface system includes multiple steps such as collection, calculation, and response of the EEG signal. After the EEG signal processing computer receives the EEG signal, it needs to perform data preprocessing. EEG signals, EEG signals, etc. are filtered out, and then feature extraction and classification are performed on the filtered EEG signals, and finally the classification results are sent to the external device control program to achieve the purpose of brain-controlled external devices. In this process, the existing methods usually implement these programs on the same computing node, which limits the application flexibility of the brain-computer interface system. The invention deploys the EEG signal receiving and filtering program, the feature extraction and classification program, and the external device control program in a distributed manner to run on different computing nodes, thereby improving the flexibility of the brain-computer interface system.

本发明所提出的方法能够提升脑-机接口系统的实用性、安全性、灵活性。The method proposed by the invention can improve the practicability, safety and flexibility of the brain-computer interface system.

发明内容Contents of the invention

本发明的目的在于提出一种支持数据压缩与加密的分布式脑电信号计算方法,将脑-机接口系统的不同计算过程分布式地部署到不同的计算节点上,节点之间通过无线网络传输数据,本发明支持脑电信号计算过程中的数据压缩与加密,能够提升脑-机接口系统的实用性、安全性、灵活性。The purpose of the present invention is to propose a distributed EEG signal calculation method that supports data compression and encryption, deploying different calculation processes of the brain-computer interface system to different computing nodes in a distributed manner, and transmitting data between nodes through a wireless network Data, the present invention supports data compression and encryption in the process of EEG signal calculation, which can improve the practicability, security, and flexibility of the brain-computer interface system.

为实现上述目的,本发明将脑电信号的计算过程进行分割,分成三个程序,分别为接收与滤波程序、特征提取与分类程序、外部设备控制程序,这三个程序可以运行在不同的计算节点上,同时会有一个管理程序来对这三个程序进行参数配置、过程控制、脑电信号查看等,管理程序同样可以部署在不同的计算节点上,如平板电脑等。In order to achieve the above object, the present invention divides the calculation process of the EEG signal into three programs, namely the receiving and filtering program, the feature extraction and classification program, and the external device control program. These three programs can run on different computing machines. On the node, there will also be a management program to configure parameters, process control, and EEG signal viewing for the three programs. The management program can also be deployed on different computing nodes, such as tablet computers.

本发明中各个程序之间的工作先后关系及主要过程如图1所示,组成一个脑-机接口系统,主要的步骤如下:In the present invention, the work sequence and the main process between each program are as shown in Figure 1, forming a brain-computer interface system, the main steps are as follows:

①来自脑电采集设备所采集到的大脑皮层的脑电信号会通过无线网络发送至接收与滤波程序;① The EEG signals from the cerebral cortex collected by the EEG acquisition equipment will be sent to the receiving and filtering program through the wireless network;

②接收与滤波程序对接收的脑电信号进行滤波预处理,然后发送至特征提取与分类程序;②The receiving and filtering program filters and preprocesses the received EEG signal, and then sends it to the feature extraction and classification program;

③特征提取与分类程序对接收的脑电信号进行特征提取,并识别出大脑的真实意图,归类到特定的类别,并将类别发送至外部设备控制程序;③The feature extraction and classification program extracts the features of the received EEG signals, recognizes the real intention of the brain, classifies them into specific categories, and sends the categories to the external device control program;

④外部设备控制程序将接收到的类别信息转化为具体的控制指令,如控制座椅移动,显示拼写内容、游戏指令控制等,通过调用外部设备编程接口的方式实现与外部设备的互动。④ The external device control program converts the received category information into specific control instructions, such as controlling seat movement, displaying spelling content, game command control, etc., and realizes interaction with external devices by calling the external device programming interface.

本发明将脑-机接口系统的各个步骤分离成不同的程序,并分布式地部署在不同的计算节点上,能够提升脑-机接口系统的灵活性。由于脑电信号的数据量通常很大,尤其是多通道高采样率的情况下,一小时能够达到7Gb的流量,通过无线网络传输这么多的数据量会严重影响便携式脑电采集设备的工作时长。本发明在图1的第①步中进行数据压缩,即在脑电信号发送前进行压缩,而在接收与滤波程序处对接收到的数据进行重构来得到原始脑电信号。由于本发明将脑-机接口系统的各个步骤分布式部署在不同的计算节点上,脑电信号是通过无线网络进行传输的,为了保护用户的隐私,提升脑电信号等数据传输的安全性,在脑电采集设备、计算节点之间传输数据时进行加密传输,即在第②③两步中对数据的传输进行加密。本发明的第④步通常会调用外部设备的编程接口,由外部设备的编程接口来完成安全传输数据。The invention separates each step of the brain-computer interface system into different programs and distributes them on different computing nodes, which can improve the flexibility of the brain-computer interface system. Since the data volume of EEG signals is usually large, especially in the case of multi-channel high sampling rate, the traffic can reach 7Gb in one hour, and the transmission of such a large amount of data through wireless networks will seriously affect the working hours of portable EEG acquisition equipment. . The present invention performs data compression in step ① in FIG. 1 , that is, compresses the EEG signal before sending it, and reconstructs the received data at the receiving and filtering program to obtain the original EEG signal. Since the present invention distributes the various steps of the brain-computer interface system on different computing nodes, and the EEG signals are transmitted through the wireless network, in order to protect the privacy of users and improve the security of data transmission such as EEG signals, Encrypted transmission is performed when transmitting data between EEG acquisition equipment and computing nodes, that is, the data transmission is encrypted in the second and third steps. Step ④ of the present invention usually calls the programming interface of the external device, and the secure data transmission is completed by the programming interface of the external device.

本发明所提出的支持数据压缩与加密的分布式脑电信号计算方法具体过程如图2所示,在脑电采集设备、接收与滤波程序、特征提取与分类程序、外部设备控制程序上分别会进行不同的步骤,本发明与传统的脑-机接口系统相比,不仅支持各个程序的分布式部署,还支持各个程序间通信的数据压缩与加密。本发明的各个具体步骤如下:The specific process of the distributed EEG signal calculation method supporting data compression and encryption proposed by the present invention is shown in Figure 2. The EEG acquisition equipment, receiving and filtering program, feature extraction and classification program, and external device control program will be respectively By performing different steps, compared with the traditional brain-computer interface system, the present invention not only supports the distributed deployment of each program, but also supports the data compression and encryption of the communication between each program. Each concrete step of the present invention is as follows:

(1)脑电信号采集:脑电采集设备通过与大脑皮层接触的方式获取到大脑皮层各个位置的脑电信号,以设置的采样率进行采样,并根据所使用的通道数进行数据组合,如250Hz采样率的情况下8通道同时采样,则每秒钟8个通道都会采样250次数据,采集设备会按照固定的时间窗口N来组合数据,如N为6表示将6次采集的脑电信号组合在一起,则为T11、T21、T31、T41、T51、T61、T71、T81、...、T16、T26、T36、T46、T56、T66、T76、T86,其中T11表示第1个通道第1次采集的数据,T86表示第8个通道第6次采集的数据,以这6次采集的脑电信号为粒度进行后续的处理与网络传输;(1) EEG signal acquisition: EEG acquisition equipment obtains EEG signals from various positions in the cerebral cortex by contacting with the cerebral cortex, samples at the set sampling rate, and performs data combination according to the number of channels used, such as In the case of 250Hz sampling rate, 8 channels are sampled at the same time, then the 8 channels will sample 250 times of data per second, and the acquisition device will combine the data according to a fixed time window N. For example, if N is 6, it means that the EEG signals collected 6 times Combined together, T1 1 , T2 1 , T3 1 , T4 1 , T5 1 , T6 1 , T7 1 , T8 1 ,..., T1 6 , T2 6 , T3 6 , T4 6 , T5 6 , T6 6. T7 6 , T8 6 , where T1 1 represents the data collected for the first time on the first channel, and T8 6 represents the data collected for the sixth time on the eighth channel, and follow-up with the EEG signals collected for the 6 times as the granularity processing and network transmission;

(2)脑电信号压缩:对于固定时间窗口N内的脑电信号,本发明进行脑电信号的数据压缩,具体的压缩方法可以采用成熟的现有算法;(2) EEG signal compression: for the EEG signal in the fixed time window N, the present invention performs data compression of the EEG signal, and the specific compression method can adopt a mature existing algorithm;

(3)脑电信号加密:针对压缩后的脑电信号,本发明采用对称密码算法进行加密,加密的密钥由发送端与接收端协商产生,如采用国产SM4对称密码算法能够很快地得到加密后的数据;(3) EEG signal encryption: for the compressed EEG signal, the present invention uses a symmetric cryptographic algorithm to encrypt, and the encrypted key is negotiated between the sending end and the receiving end, and can be obtained quickly if the domestic SM4 symmetric cryptographic algorithm is adopted. encrypted data;

(4)脑电信号解密:接收与滤波程序在收到脑电采集设备通过网络传输过来的加密数据后,根据对称密码算法采用相同的密钥进行解密,得到压缩了的数据;(4) EEG signal decryption: After receiving the encrypted data transmitted by the EEG acquisition device through the network, the receiving and filtering program uses the same key to decrypt according to the symmetric cryptographic algorithm to obtain the compressed data;

(5)脑电信号重构:接收与滤波程序根据解压算法将压缩了的数据重构成原始的脑电信号;(5) EEG signal reconstruction: the receiving and filtering program reconstructs the compressed data into the original EEG signal according to the decompression algorithm;

(6)滤波预处理:采用常用的滤波算法进行脑电信号预处理,包括采用低通滤波器或陷波器消除脑电信号中的工频干扰等,所得到的结果是更加真实准确的脑电信号;(6) Filtering preprocessing: use commonly used filtering algorithms for EEG signal preprocessing, including the use of low-pass filters or notch filters to eliminate power frequency interference in EEG signals, etc. The result obtained is a more realistic and accurate brain image. electric signal;

(7)脑电信号加密:将预处理后的脑电信号采用对称密码算法进行加密,加密的密钥由发送端与接收端协商产生;(7) EEG signal encryption: the preprocessed EEG signal is encrypted using a symmetric cryptographic algorithm, and the encrypted key is negotiated between the sending end and the receiving end;

(8)脑电信号解密:特征提取与分类程序在收到网络传输过来的加密数据后,根据对称密码算法采用相同的密钥进行解密,得到没有干扰的脑电信号;(8) EEG signal decryption: After the feature extraction and classification program receives the encrypted data transmitted from the network, it uses the same key to decrypt according to the symmetric cryptographic algorithm to obtain the EEG signal without interference;

(9)特征提取与分类:对脑电信号从时域和频域进行特征提取,基于所提取的特征对脑电信号进行分类,识别出大脑真实的意图;(9) Feature extraction and classification: feature extraction of EEG signals from the time domain and frequency domain, classify the EEG signals based on the extracted features, and identify the true intention of the brain;

(10)分类结果加密:对分类结果采用对称密码算法进行加密,加密的密钥由发送端与接收端协商产生;(10) Classification result encryption: the classification result is encrypted using a symmetric cryptographic algorithm, and the encrypted key is negotiated between the sending end and the receiving end;

(11)分类结果解密:外部控制程序在收到网络传输过来的加密数据后,根据对称密码算法采用相同的密钥进行解密,得到脑电信号分类的结果;(11) Classification result decryption: After receiving the encrypted data transmitted from the network, the external control program uses the same key to decrypt according to the symmetric cryptographic algorithm to obtain the result of the classification of the EEG signal;

(12)外部设备控制:将脑电信号分类的结果转化为对外部设备的控制指令,或者是拼写的目标字符等,然后调用外部设备的编程接口来完成大脑真实意图的外部控制或意图呈现等。(12) External device control: convert the results of EEG signal classification into control instructions for external devices, or spelled target characters, etc., and then call the programming interface of the external device to complete the external control or intention presentation of the brain's true intentions, etc. .

本发明的有益效果是提升脑-机接口系统的灵活性、实用性、安全性,解决脑电信号计算过程在一个计算节点上使用不灵活的问题,以及提升了便携式脑电采集设备的工作时长,且对脑-机接口系统中各个计算节点间通过网络传输的数据进行了加密,提高了脑电信号传输的安全性。The beneficial effect of the present invention is to improve the flexibility, practicability, and safety of the brain-computer interface system, solve the problem of inflexible use of the EEG signal calculation process on one computing node, and improve the working hours of the portable EEG acquisition device , and encrypts the data transmitted between computing nodes in the brain-computer interface system through the network, which improves the security of EEG signal transmission.

附图说明Description of drawings

图1为基于分布式的脑-机接口系统中各个程序工作过程图;Fig. 1 is a diagram of the working process of each program in the distributed brain-computer interface system;

图2为支持数据压缩与加密的分布式脑电信号计算具体过程图;Fig. 2 is a specific process diagram of distributed EEG signal calculation supporting data compression and encryption;

图3为管理程序上参数配置界面图;Fig. 3 is a parameter configuration interface diagram on the management program;

图4为管理程序的界面上以波形图的形态可视化展示脑电信号的效果图。FIG. 4 is an effect diagram of visually displaying EEG signals in the form of waveform diagrams on the interface of the management program.

具体实施方式Detailed ways

为了更好地描述本发明如何实现支持数据压缩与加密的分布式脑电信号计算方法,对该方法中的数据压缩、数据加密、分布式脑电信号计算等过程分别进行实施说明。In order to better describe how the present invention implements the distributed EEG signal calculation method that supports data compression and encryption, the processes of data compression, data encryption, and distributed EEG signal calculation in the method are described separately.

(1)脑电信号的数据压缩(1) Data compression of EEG signals

本发明中的数据压缩主要对脑电采集设备所采集到的脑电信号进行压缩,减少便携式脑电采集设备的网络数据传输量,达到降低功耗的效果。数据压缩的算法有很多种,本发明采用适合脑电信号数据压缩的defalte方法,该方法的思路是:先将数据中重复的字符串,替换成(距离,长度)对;再对替换后的数据,使用huffman编码,将字符按出现频率重新编码。由于脑电采集设备通常是多通道的,而且采样率也可以根据不同的应用需求进行设置,本发明测试了有无数据压缩情况下,脑电采集设备在不同情况下所需要发送的数据规模大小,见表1(数据经过1000次实验取平均值得到)。The data compression in the present invention mainly compresses the EEG signals collected by the EEG acquisition equipment, reduces the network data transmission amount of the portable EEG acquisition equipment, and achieves the effect of reducing power consumption. There are many kinds of algorithms for data compression. The present invention adopts the defalte method suitable for EEG signal data compression. The idea of the method is: first replace the repeated character strings in the data into (distance, length) pairs; The data, using huffman encoding, re-encodes the characters according to their frequency. Since the EEG acquisition equipment is usually multi-channel, and the sampling rate can also be set according to different application requirements, the present invention tests the size of the data that the EEG acquisition equipment needs to send under different circumstances with or without data compression , see Table 1 (data obtained by taking the average value of 1000 experiments).

表1 脑电采集设备每秒钟在有无压缩情况下分别发送的数据规模比较(kb)Table 1 Comparison of data size sent by EEG acquisition equipment per second with or without compression (kb)

Figure BSA0000257697080000031
Figure BSA0000257697080000031

本发明计算了不同情况下脑电信号的数据压缩率,压缩率的计算公式为:压缩后数据大小除于压缩前数据大小,结果见表2。脑电信号压缩后数据大小不超过原始无压缩情况下的50%,而且随着通道数的增多,压缩率逐渐变小,说明通道数越多的情况下存在的重复数据越多而使得压缩的效果越好。从表1和表2的结果表明本发明能够有效地减少便携式脑电采集设备的网络数据传输量。The present invention calculates the data compression rate of the EEG signal under different conditions. The calculation formula of the compression rate is: the data size after compression is divided by the data size before compression, and the results are shown in Table 2. After the EEG signal is compressed, the data size does not exceed 50% of the original uncompressed condition, and as the number of channels increases, the compression ratio gradually decreases, indicating that the more channels there are, the more duplicate data exists and the compressed The better the effect. The results from Table 1 and Table 2 show that the present invention can effectively reduce the amount of network data transmission of the portable EEG acquisition device.

表2 脑电采集设备每秒钟在不同情况下的压缩率Table 2 Compression rate of EEG acquisition equipment in different situations per second

采样率(Hz)Sampling rate(Hz) 8通道8 channels 16通道16 channels 32通道32 channels 64通道64 channels 160160 45.0%45.0% 35.2%35.2% 27.4%27.4% 22.5%22.5% 250250 45.1%45.1% 35.0%35.0% 27.3%27.3% 22.6%22.6% 500500 44.8%44.8% 34.8%34.8% 27.4%27.4% 22.6%22.6% 10001000 44.9%44.9% 35.1%35.1% 27.4%27.4% 22.6%22.6%

本发明由于需要对脑电信号进行压缩和重构,与直接传输原始脑电信号的方式相比,会额外地带来一些计算操作,造成脑电信号的时间延迟。本发明在不同通道数、不同采样率的情况下,测试了脑电采集设备与计算节点之间由于脑电信号压缩而带来的额外时间延迟,见表3。从表3的结果可以看出,本发明对脑电采集设备的脑电信号进行压缩后再传输,所带来的延迟在50微秒以内,并不会影响脑-机接口系统的正常使用。Since the present invention needs to compress and reconstruct the EEG signal, compared with the way of directly transmitting the original EEG signal, it will bring some additional calculation operations, resulting in a time delay of the EEG signal. In the case of different channel numbers and different sampling rates, the present invention tests the extra time delay between the EEG acquisition device and the computing node due to EEG signal compression, as shown in Table 3. It can be seen from the results in Table 3 that the present invention compresses the EEG signal of the EEG acquisition device before transmitting it, and the delay brought by it is within 50 microseconds, which will not affect the normal use of the brain-computer interface system.

表3 脑电采集设备压缩与计算节点重构脑电信号带来的额外时间延迟(us)Table 3 The extra time delay (us) brought by EEG acquisition equipment compression and computing node reconstruction EEG signal

采样率(Hz)Sampling rate(Hz) 8通道8 channels 16通道16 channels 32通道32 channels 64通道64 channels 160160 32.432.4 33.033.0 37.237.2 45.345.3 250250 32.232.2 33.733.7 37.537.5 47.247.2 500500 32.732.7 35.535.5 36.636.6 46.446.4 10001000 34.934.9 35.035.0 37.137.1 46.546.5

(2)脑电信号与分类结果的加密(2) Encryption of EEG signals and classification results

本发明将脑-机接口系统的各个部分分布式部署在不同的计算节点上,计算节点之间通过网络相互传输数据,为了保护数据传输的安全,对通过网络传输的脑电信号或分类结果进行加密。本发明应用国产密码算法SM4进行加密,并测试了由于对脑电信号进行加密与解密所带来的额外时间延迟,不超过17微秒,见表4。从表4的结果可以看出,本发明对脑电数据进行加密后能够提升安全性,且不影响脑-机接口系统的实时性。In the present invention, various parts of the brain-computer interface system are distributed and deployed on different computing nodes, and the computing nodes transmit data to each other through the network. In order to protect the security of data transmission, the EEG signals or classification results transmitted through the network are processed encryption. The present invention uses the domestic encryption algorithm SM4 to encrypt, and tests the extra time delay caused by the encryption and decryption of the EEG signal, which does not exceed 17 microseconds, as shown in Table 4. It can be seen from the results in Table 4 that the present invention can improve the security after encrypting the EEG data without affecting the real-time performance of the brain-computer interface system.

表4 脑电采集设备用SM4密码算法加解密脑电信号带来的额外时间延迟(us)Table 4 The extra time delay (us) caused by the EEG acquisition equipment using the SM4 cryptographic algorithm to encrypt and decrypt EEG signals

采样率(Hz)Sampling rate(Hz) 8通道8 channels 16通道16 channels 32通道32 channels 64通道64 channels 160160 13.913.9 13.813.8 13.913.9 14.014.0 250250 13.813.8 14.214.2 13.713.7 13.913.9 500500 14.114.1 13.613.6 14.114.1 13.813.8 10001000 16.216.2 13.813.8 13.913.9 14.014.0

(3)分布式脑电信号计算(3) Distributed EEG signal calculation

本发明中设计了接收与滤波程序、特征提取与分类程序、外部设备控制程序来接收脑电信号,并在不同的计算节点上实现脑电信号的预处理、特征提取与分类、外部设备响应。本发明还设计了一个管理程序来对这三个程序进行参数配置、过程控制、脑电信号查看等。In the present invention, a receiving and filtering program, a feature extraction and classification program, and an external device control program are designed to receive EEG signals, and realize preprocessing, feature extraction and classification, and external device responses of EEG signals on different computing nodes. The present invention also designs a management program to perform parameter configuration, process control, and EEG signal viewing for the three programs.

根据图1可以看出,本发明中接收与滤波程序、特征提取与分类程序、外部设备控制程序这三个程序之间存在着先后顺序关系,传输的数据是单向的,包括脑电信号数据、程序工作状态数据等。脑电信号数据是来自脑电采集设备所采集到的数据;而程序工作状态数据则用来表示当前计算节点上程序的状态,在脑-机接口系统正式工作之前传输,用于帮助各个程序都进入到准备状态中。According to Fig. 1, it can be seen that there is a sequence relationship among the three programs of the present invention, the receiving and filtering program, the feature extraction and classification program, and the external device control program, and the transmitted data is unidirectional, including EEG signal data , program working status data, etc. The EEG signal data is the data collected by the EEG acquisition equipment; while the program working status data is used to indicate the status of the program on the current computing node, which is transmitted before the official work of the brain-computer interface system, and is used to help each program into the ready state.

本发明中的管理程序和其他三个程序之间传输的数据是双向的,传输的数据种类比较多,包括工作状态数据、参数数据、用于可视化的脑电数据。工作状态数据用来反映计算节点之间是否存在通信错误或计算节点上的程序是否运行正常等;参数数据主要是帮助用户在管理程序上设置不同参数来控制各个计算节点上程序的运行信息,见图3;用于可视化的脑电数据则用来将计算节点上的脑电信号在管理程序的界面上以波形图的形态可视化地展示,见图4。The data transmitted between the management program and the other three programs in the present invention are two-way, and there are many types of transmitted data, including working status data, parameter data, and EEG data for visualization. The working status data is used to reflect whether there is a communication error between the computing nodes or whether the program on the computing node is running normally, etc.; the parameter data is mainly to help the user set different parameters on the management program to control the running information of the program on each computing node. Figure 3; the EEG data used for visualization is used to visualize the EEG signals on the computing nodes in the form of waveform diagrams on the interface of the management program, see Figure 4.

Claims (12)

1.一种支持数据压缩与加密的分布式脑电信号计算方法,其特征在于:将脑-机接口系统的不同计算过程分布式地部署到不同的计算节点上,节点之间通过无线网络传输数据,对脑电采集设备发送的脑电信号进行数据压缩与加密,对计算节点间传输的数据进行加密,在不同的计算节点上分别部署接收与滤波程序、特征提取与分类程序、外部设备控制程序。1. A distributed EEG signal calculation method supporting data compression and encryption, characterized in that different calculation processes of the brain-computer interface system are distributed to different computing nodes, and the nodes are transmitted through a wireless network Data, compress and encrypt the EEG signals sent by the EEG acquisition equipment, encrypt the data transmitted between computing nodes, deploy receiving and filtering programs, feature extraction and classification programs, and external device control on different computing nodes program. 2.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述脑电采集设备通过与大脑皮层接触的方式获取到大脑皮层各个位置的脑电信号,根据设置的采样率及使用的通道数,对固定时间窗口内采集的脑电信号进行数据压缩,采用成熟的压缩方法来实现。2. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the EEG acquisition device obtains the EEG signals at various positions of the cerebral cortex by contacting the cerebral cortex According to the set sampling rate and the number of channels used, data compression is performed on the EEG signals collected in a fixed time window, and a mature compression method is used to achieve. 3.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述脑电采集设备对压缩后的脑电信号采用对称密码算法进行加密,加密的密钥由数据发送端与接收端协商产生。3. the distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the EEG acquisition device encrypts the compressed EEG signal using a symmetric cryptographic algorithm, and the encrypted key The key is generated through negotiation between the data sender and the receiver. 4.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述接收与滤波程序对接收到的加密数据根据对称密码算法采用相同的密钥进行解密。4. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the receiving and filtering program uses the same key to decrypt the received encrypted data according to the symmetric cryptographic algorithm . 5.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述接收与滤波程序根据解压算法将压缩了的数据重构成原始的脑电信号。5. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the receiving and filtering program reconstructs the compressed data into the original EEG signal according to the decompression algorithm. 6.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述接收与滤波程序采用常用的滤波算法进行脑电信号预处理,包括采用低通滤波器或陷波器消除脑电信号中的工频干扰等,所得到的结果是更加真实准确的脑电信号。6. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the receiving and filtering program adopts commonly used filtering algorithms to perform EEG signal preprocessing, including low-pass filtering The filter or notch filter can eliminate the power frequency interference in the EEG signal, and the result is a more realistic and accurate EEG signal. 7.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述接收与滤波程序将预处理后的脑电信号采用对称密码算法进行加密,加密的密钥由发送端与接收端协商产生。7. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the receiving and filtering program encrypts the preprocessed EEG signal using a symmetric cryptographic algorithm, and the encrypted The key is negotiated between the sender and the receiver. 8.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述特征提取与分类程序在收到网络传输过来的加密数据后,根据对称密码算法采用相同的密钥进行解密,得到没有干扰的脑电信号。8. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the feature extraction and classification program adopts a symmetric cryptographic algorithm after receiving the encrypted data transmitted from the network. The same key is used for decryption to obtain EEG signals without interference. 9.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述特征提取与分类程序对脑电信号从时域和频域进行特征提取,基于所提取的特征对脑电信号进行分类,识别出大脑真实的意图。9. the distributed EEG signal computing method that supports data compression and encryption according to claim 1, is characterized in that, described feature extraction and classification program carry out feature extraction to EEG signal from time domain and frequency domain, based on the The extracted features classify EEG signals and identify the real intention of the brain. 10.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述特征提取与分类程序对分类结果采用对称密码算法进行加密,加密的密钥由发送端与接收端协商产生。10. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, characterized in that, the feature extraction and classification program uses a symmetric cryptographic algorithm to encrypt the classification results, and the encrypted key is sent by generated through negotiation between the end and the receiving end. 11.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述外部控制程序在收到传输过来的加密数据后,根据对称密码算法采用相同的密钥进行解密,得到=分类结果。11. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the external control program adopts the same encryption method according to the symmetric encryption algorithm after receiving the encrypted data transmitted. Key to decrypt, get = classification result. 12.根据权利要求1所述的支持数据压缩与加密的分布式脑电信号计算方法,其特征在于,所述外部控制程序将脑电信号分类结果转化为对外部设备的控制指令,或者是拼写的目标字符等,然后调用外部设备的编程接口来完成大脑真实意图的外部控制或意图呈现等。12. The distributed EEG signal calculation method supporting data compression and encryption according to claim 1, wherein the external control program converts the EEG signal classification results into control instructions for external devices, or spelling target character, etc., and then call the programming interface of the external device to complete the external control or intention presentation of the real intention of the brain.
CN202111344625.6A 2021-11-15 2021-11-15 A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption Pending CN116115238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111344625.6A CN116115238A (en) 2021-11-15 2021-11-15 A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111344625.6A CN116115238A (en) 2021-11-15 2021-11-15 A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption

Publications (1)

Publication Number Publication Date
CN116115238A true CN116115238A (en) 2023-05-16

Family

ID=86310445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111344625.6A Pending CN116115238A (en) 2021-11-15 2021-11-15 A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption

Country Status (1)

Country Link
CN (1) CN116115238A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117503159A (en) * 2023-11-08 2024-02-06 中国科学技术大学 A portable 64-channel EEG collection system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130231947A1 (en) * 2000-05-30 2013-09-05 Vladimir Shusterman Mobile System with Network-Distributed Data Processing for Biomedical Applications
CN106293088A (en) * 2016-08-10 2017-01-04 山东建筑大学 Brain-computer interface processing system and its implementation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130231947A1 (en) * 2000-05-30 2013-09-05 Vladimir Shusterman Mobile System with Network-Distributed Data Processing for Biomedical Applications
CN106293088A (en) * 2016-08-10 2017-01-04 山东建筑大学 Brain-computer interface processing system and its implementation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117503159A (en) * 2023-11-08 2024-02-06 中国科学技术大学 A portable 64-channel EEG collection system

Similar Documents

Publication Publication Date Title
CN104605939B (en) Physiological information processing method and information processing device
CN114900480B (en) Communication safety management and control system based on data platform
CN105007272A (en) Information exchange system with safety isolation
CN116599776B (en) Smart electric meter management method, device, equipment and storage medium based on Internet of things
CN115174255B (en) Industrial Internet platform data transmission safety protection system
CN116115238A (en) A Distributed EEG Signal Calculation Method Supporting Data Compression and Encryption
CN105915509B (en) A kind of network type voltage monitoring system based on Hybrid Encryption algorithm
Hameed et al. An enhanced lossless compression with cryptography hybrid mechanism for ECG biomedical signal monitoring
CN117874695A (en) Method, device and equipment for processing personnel workload state based on multi-mode data
CN113965212B (en) Method and device for eliminating interference signal, communication equipment and storage medium
CN108498094B (en) Brain wave information transmission control method and related products
CN110855512A (en) Ultra-large-scale DPI data processing system based on edge calculation
CN108011712A (en) A kind of Mobile medical system private data communication means
CN118830846A (en) Wearable cognitive function detection device for aluminum exposure crowd and working method of wearable cognitive function detection device
CN104714645A (en) Human-computer interaction method and human-computer interaction equipment
CN102184017B (en) Lead optimizing method for P300 brain-computer interface
CN110278077B (en) Method, device, equipment and storage medium for acquiring data information of electric energy meter
CN117714134A (en) Buoy-based data encryption transmission method
CN106774843A (en) A kind of cipher input equipment and method
CN118171178A (en) A multi-classification system of motor imagery EEG signals based on FPGA
CN108830068A (en) A kind of terminal security guard system and method
CN108833310B (en) Switches with AI Analytics
CN113558637A (en) A method for constructing brain network under music perception based on phase transfer entropy
CN112364060A (en) Transmission method of photovoltaic intelligent operation and maintenance data
CN109801695A (en) A kind of Medical data acquisition device based on artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230516