CN116321091A - Electroencephalogram data compression method and system, storage medium and processor thereof - Google Patents

Electroencephalogram data compression method and system, storage medium and processor thereof Download PDF

Info

Publication number
CN116321091A
CN116321091A CN202310254489.4A CN202310254489A CN116321091A CN 116321091 A CN116321091 A CN 116321091A CN 202310254489 A CN202310254489 A CN 202310254489A CN 116321091 A CN116321091 A CN 116321091A
Authority
CN
China
Prior art keywords
data
value
compression
electroencephalogram
data code
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
CN202310254489.4A
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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN202310254489.4A priority Critical patent/CN116321091A/en
Publication of CN116321091A publication Critical patent/CN116321091A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/38Flow control; Congestion control by adapting coding or compression rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The application is suitable for the technical field of electroencephalogram data transmission, and provides a method for compressing electroencephalogram data, a system, a storage medium and a processor thereof, wherein the method utilizes fewer data bits to represent the time of occurrence of action potential and the position of a channel for issuing the action potential. The method is based on analog-to-digital conversion of the electroencephalogram original data, preprocessing the data code value into a new value through a relative average value, and performing similar normalized compression on the new value based on a compression threshold value. The pressure of wireless data transmission can be effectively reduced when 128 channels of data or even more channels of data are acquired each time; the Bluetooth load rate is reduced, current consumption in the Bluetooth transmission process is reduced, data loss caused by Bluetooth at the full transmission rate is avoided, and the wireless transmission efficiency of the electroencephalogram data is effectively improved.

Description

Electroencephalogram data compression method and system, storage medium and processor thereof
Technical Field
The application belongs to the technical field of electroencephalogram data transmission, and particularly relates to a method and a system for compressing electroencephalogram data, a storage medium and a processor.
Background
Currently, in brain-computer interface imagination-motion decoding, an Action Potential (AP) signal or a field potential (field) signal may be generally used to characterize electroencephalogram information. The peak potential (spikepotential) is a major component of the Action Potential (AP), and the peak potential duration is about 1ms, and if the peak potential is detected, the sampling frequency adopted by the current mainstream is above 10000 hz per second. The current mature brain-computer interface electrode array has reached 128 channels, even more than 1000 channels, and if the acquired signals are transmitted to an upper computer, a considerable data transmission amount is formed. The wired transmission is not beneficial to the research of free moving animals in an open environment, and the Bluetooth transmission system is used for transmitting signals, so that the problems of low power consumption and high-speed transmission are difficult to solve simultaneously. The prior art has the defects.
Disclosure of Invention
The invention aims to provide a method and a system for compressing electroencephalogram data, a storage medium and a processor, and aims to solve the technical problem that in the prior art, wireless transmission is adopted for electroencephalogram data, and low power consumption and high-speed transmission are difficult to solve simultaneously.
In one aspect, the present application provides a method for compressing electroencephalogram data, the method including the following steps:
s1. sequentially collecting the electroencephalogram raw data according to the collection channel sequencing of the electroencephalogram collection device in each sampling period; setting a corresponding time stamp for each period;
s2, sequentially carrying out analog-to-digital conversion on the electroencephalogram original data of each channel to obtain a data code value of the channel;
s3. calculating a relative average value of the data code values, wherein the difference between the data code values and the relative average value is a new value corresponding to the data code values;
s4. calculating the difference between the new value and the compression threshold value to judge the compression value corresponding to the data code value, wherein the compression value is 1 when the difference value is more than or equal to 0, and the compression value is 0 when the difference value is less than 0;
s5. all the compressed values form compressed data of the sampling period according to the corresponding channel sequence, and the time stamp, the new value and the compression threshold value are added and then sent to an upper computer.
On the other hand, the application also provides a compression system of the brain electrical data, which adopts any one of the methods, and comprises the following steps:
the data acquisition module acquires electroencephalogram raw data through an electroencephalogram acquisition chip; setting a corresponding time stamp for each acquisition period;
the analog-to-digital conversion module is used for carrying out analog-to-digital conversion on the acquired electroencephalogram original data to obtain a corresponding data code value;
the data preprocessing module is used for calculating a relative average value of the data code values, and the difference between the data code values and the relative average value is a new value corresponding to the data code values;
the data compression module calculates the difference between the new value and a compression threshold value to judge a compression value corresponding to the data code value, wherein the compression value is 1 when the difference value is more than or equal to 0, and the compression value is 0 when the difference value is less than 0;
and the data packaging module is used for forming compressed data of the sampling period according to the corresponding channel sequence, adding the time stamp, the new value and the compression threshold value, and then sending the compressed data to the upper computer.
On the other hand, the application also provides a storage medium, wherein the storage medium stores a program file capable of realizing the method for compressing the electroencephalogram data.
On the other hand, the application also provides a processor, which is used for running a program, wherein the compression method of the electroencephalogram data is executed when the program runs.
The method and the device are mainly used for detecting the peak potential of the electroencephalogram signal, and the time of occurrence of the action potential and the position of a channel for issuing the action potential are represented by using fewer data bits.
Specifically, the method is based on analog-to-digital conversion of the electroencephalogram original data, preprocessing the data code value into a new value through a relative average value, and performing similar normalized compression on the new value based on a compression threshold value. Compared with the mode that 2-3 bytes are needed for storing the data of one channel in the prior art, the data of one channel only needs one bit to be stored. The system can effectively reduce the pressure of wireless data transmission when 128 channels of data acquired each time or even more channels of data, reduce the Bluetooth load rate, reduce the current consumption in the Bluetooth transmission process, avoid the data loss caused by Bluetooth at the full transmission rate, and effectively improve the wireless data transmission efficiency.
Meanwhile, the compressed data volume also enables the Bluetooth chip to upload the brain electrical data to the upper computer with the minimum load current, and the technical effect of delaying the service life of the brain electrical acquisition chip is achieved.
Drawings
Fig. 1 is a flow chart of a method for compressing electroencephalogram data according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a compression system of electroencephalogram data according to a second embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Specific implementations of the present application are described in detail below in conjunction with specific embodiments:
example 1
Fig. 1 shows an implementation flow of the method for compressing electroencephalogram data according to the first embodiment of the present application, and for convenience of explanation, only the portions relevant to the embodiments of the present application are shown, which are described in detail below:
in one aspect, the present application provides a method for compressing electroencephalogram data, including the following steps:
s1. sequentially collecting the electroencephalogram raw data according to the collection channel sequencing of the electroencephalogram collection device in each sampling period; setting a corresponding time stamp for each period;
s2, sequentially carrying out analog-to-digital conversion on the electroencephalogram original data of each channel to obtain a data code value of the channel;
s3. calculating the relative average value of the data code values, wherein the difference between the data code values and the relative average value is a new value corresponding to the data code values;
the calculation of the new value is expressed as:
Figure BDA0004129172560000041
wherein V is ave Represents a relative average value; v (V) new Representing the new value; v 1 A data code value representing channel 1; n represents the number of channels; i represents the current channel number;
s4. calculates the difference between the new value and the compression threshold to judge the compression value corresponding to the data code value, wherein the compression value is 1 when the difference is greater than or equal to 0, and the compression value is 0 when the difference is less than 0;
the process of calculating the compression value is expressed as:
Figure BDA0004129172560000042
wherein V is threshold Representing a compression threshold;
s5. all the compressed values form compressed data of the sampling period according to the corresponding channel sequence, and the compressed data is sent to the upper computer after being added with a time stamp, a new value and a compression threshold value.
Further, the relative average value is a value obtained by summing the data code values corresponding to all channels in a period and dividing the summed value by the number of the channels.
In the specific implementation, the relative average value obtained by adopting the method does not need to consider the data code values of other periods, so that the calculation resources of the electroencephalogram acquisition equipment are saved.
Further, the relative average value is a value obtained by summing the data code values corresponding to one channel in a plurality of periods and dividing the summed value by the period number.
In this embodiment, the relative average value is calculated by using the data code value of the same channel in a plurality of periods, and the relative average value is relatively more relevant to the data of the channel. The new value calculated later can more accurately reflect the change trend of the channel data code value.
Further, the compression threshold is greater than or equal to the average value of all new values in one period and less than the maximum value of the new values in one period. Preferably the sum of 60% of the difference between the maximum value of the new value and the average value of the new value.
Further, the compression threshold is preset by the upper computer according to the field potential of the electroencephalogram raw data.
In this embodiment, since the compression threshold is already known by the host computer, the electroencephalogram acquisition apparatus does not need to upload the compression threshold in step s5.
Further, the compressed data is in units of bits, each bit storing a compressed value.
The method and the device are mainly used for detecting the peak potential of the electroencephalogram signal, and the time of occurrence of the action potential and the position of a channel for issuing the action potential are represented by using fewer data bits.
Specifically, in the case of an electroencephalogram signal, the electroencephalogram signal generally exists in the form of waves, wherein a series of connection waveforms with relatively average amplitudes are field potential waveforms, and peak amplitudes are relatively high and can be obviously distinguished from the field potential waveforms, which are called action potential waveforms, and peak potentials are the most prominent part of action potentials and are the main component parts of Action Potentials (APs).
The method is based on the fact that after analog-to-digital conversion is carried out on the electroencephalogram raw data, the electroencephalogram data are converted into specific numerical values in a waveform mode, namely data code values. And preprocessing the data code value into a new value through the relative average value. The difference between the action potential waveform and the field potential waveform in the analog signal can be highlighted. The new value is then similarly normalized compressed based on the compression threshold. The peak potential in the action potential can be extracted more effectively without occupying too much storage space.
Compared with the mode that 2-3 bytes are needed for storing the data of one channel in the prior art, the data of one channel only needs one bit to be stored. The system can effectively reduce the pressure of wireless data transmission when 128 channels of data acquired each time or even more channels of data, reduce the Bluetooth load rate, reduce the current consumption in the Bluetooth transmission process, avoid the data loss caused by Bluetooth at the full transmission rate, and effectively improve the wireless data transmission efficiency.
Meanwhile, the compressed data volume also enables the Bluetooth chip to upload the brain electrical data to the upper computer with the minimum load current, and the technical effect of delaying the service life of the brain electrical acquisition chip is achieved.
Embodiment two:
the application also provides a compression system of brain electrical data, which adopts any one of the methods, and comprises the following steps:
the data acquisition module acquires electroencephalogram raw data through an electroencephalogram acquisition chip; setting a corresponding time stamp for each acquisition period;
the analog-to-digital conversion module is used for carrying out analog-to-digital conversion on the acquired electroencephalogram original data to obtain a corresponding data code value;
the data preprocessing module calculates a relative average value of the data code values, and the difference between the data code values and the relative average value is a new value corresponding to the data code values;
the data compression module calculates the difference between the new value and the compression threshold value to judge the compression value corresponding to the data code value, the compression value is 1 when the difference value is more than or equal to 0, and the compression value is 0 when the difference value is less than 0;
and the data packaging module is used for forming compressed data of the sampling period according to the corresponding channel sequence, adding a time stamp, a new value and a compression threshold value, and then sending the compressed data to the upper computer.
Further, the number of acquisition channels of the electroencephalogram acquisition chip is more than or equal to 128; the data packaging module is based on Bluetooth and host computer wireless transmission. The compression system adopting the compression method also has the technical effect of the compression method.
Embodiment III:
on the other hand, the application also provides a storage medium, wherein the storage medium stores a program file capable of realizing the method for compressing the electroencephalogram data.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in implementing the methods of the above embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc.
Embodiment four:
on the other hand, the application also provides a processor, which is used for running a program, wherein the compression method of the electroencephalogram data is executed when the program runs.
In this embodiment of the present application, the method for compressing electroencephalogram data may be implemented by corresponding hardware or software units, where each unit may be an independent software or hardware unit, or may be integrated into one software or hardware unit, which is not limited in this application. The specific implementation of each unit may refer to the description of the first embodiment, and will not be repeated here.
The foregoing description of the preferred embodiments of the present application is not intended to be limiting, but is intended to cover any and all modifications, equivalents, and alternatives falling within the spirit and principles of the present application.

Claims (10)

1. A method for compressing electroencephalogram data, the method comprising the steps of:
s1. sequentially collecting the electroencephalogram raw data according to the collection channel sequencing of the electroencephalogram collection device in each sampling period; setting a corresponding time stamp for each period;
s2, sequentially carrying out analog-to-digital conversion on the electroencephalogram original data of each channel to obtain a data code value of the channel;
s3. calculating a relative average value of the data code values, wherein the difference between the data code values and the relative average value is a new value corresponding to the data code values;
s4. calculating the difference between the new value and the compression threshold value to judge the compression value corresponding to the data code value, wherein the compression value is 1 when the difference value is more than or equal to 0, and the compression value is 0 when the difference value is less than 0;
s5. all the compressed values form compressed data of the sampling period according to the corresponding channel sequence, and the time stamp, the new value and the compression threshold value are added and then sent to an upper computer.
2. The compression method of claim 1, wherein the relative average value is a value obtained by summing data code values corresponding to all channels in a period and dividing the summed data code values by the number of channels.
3. The compression method of claim 1, wherein the relative average value is a value obtained by summing data code values corresponding to one channel in a plurality of periods and dividing the summed data code values by the number of periods.
4. The compression method of claim 1, wherein the compression threshold is equal to or greater than an average of all new values in one cycle and less than a maximum of new values in one cycle.
5. The compression method of claim 1, wherein the compression threshold is preset by the upper computer according to a field potential of the electroencephalogram raw data.
6. The compression method of claim 1, wherein the compressed data is stored in units of bits, each bit storing a compression value.
7. A compression system for electroencephalogram data, employing the method of any one of claims 1 to 6, the system comprising:
the data acquisition module acquires electroencephalogram raw data through an electroencephalogram acquisition chip; setting a corresponding time stamp for each acquisition period;
the analog-to-digital conversion module is used for carrying out analog-to-digital conversion on the acquired electroencephalogram original data to obtain a corresponding data code value;
the data preprocessing module is used for calculating a relative average value of the data code values, and the difference between the data code values and the relative average value is a new value corresponding to the data code values;
the data compression module calculates the difference between the new value and a compression threshold value to judge a compression value corresponding to the data code value, wherein the compression value is 1 when the difference value is more than or equal to 0, and the compression value is 0 when the difference value is less than 0;
and the data packaging module is used for forming compressed data of the sampling period according to the corresponding channel sequence, adding the time stamp, the new value and the compression threshold value, and then sending the compressed data to the upper computer.
8. The compression system of claim 1, wherein the number of acquisition channels of the electroencephalogram acquisition chip is greater than or equal to 128; the data packaging module is based on Bluetooth and is in wireless transmission with the upper computer.
9. A storage medium storing a program file capable of realizing the method of compressing electroencephalogram data according to any one of claims 1 to 6.
10. A processor, characterized in that the processor is configured to run a program, wherein the program, when run, performs the method of compressing electroencephalogram data according to any one of claims 1 to 6.
CN202310254489.4A 2023-03-10 2023-03-10 Electroencephalogram data compression method and system, storage medium and processor thereof Pending CN116321091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310254489.4A CN116321091A (en) 2023-03-10 2023-03-10 Electroencephalogram data compression method and system, storage medium and processor thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310254489.4A CN116321091A (en) 2023-03-10 2023-03-10 Electroencephalogram data compression method and system, storage medium and processor thereof

Publications (1)

Publication Number Publication Date
CN116321091A true CN116321091A (en) 2023-06-23

Family

ID=86821943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310254489.4A Pending CN116321091A (en) 2023-03-10 2023-03-10 Electroencephalogram data compression method and system, storage medium and processor thereof

Country Status (1)

Country Link
CN (1) CN116321091A (en)

Similar Documents

Publication Publication Date Title
US5623935A (en) Data compression methods and apparatus for use with physiological data
CN101893865B (en) Data transmission method for industrial detection system
CN109805930A (en) It is a kind of to drive the method and system for reminding puerpera to exert oneself based on puerpera's uterine contraction signal
CN205193523U (en) Feedback -type incident drive formula analog signal frequency conversion acquisition circuit
CN109239679A (en) It is a kind of can Intelligent Compression Radar Signal Processing System and verification method
CN116321091A (en) Electroencephalogram data compression method and system, storage medium and processor thereof
CN104598347A (en) Waveform data acquisition module suitable for high density server test
US20190012515A1 (en) System and method for detecting spikes in noisy signals
CN204810275U (en) Radio signal monitors analytic system based on IQ data
CN108226682B (en) Compression algorithm for fault indicator recording waveform
AU2021102014A4 (en) Bcg-based non-contact heart rate monitoring method and system
CN112072783B (en) Method and device for transmitting second-level load data between end-side equipment and edge-side equipment
CN110522441B (en) Electrocardio data processing method and device
Gagnon-Turcotte et al. Multichannel spike detector with an adaptive threshold based on a Sigma-delta control loop
CN209387717U (en) A kind of eight channel computer oscilloscopes
CN112787322B (en) Dynamic power grid management method based on scada system and multiple time scales
CN111447284A (en) Dynamic data compression, communication and restoration method and device based on Fourier transform algorithm, terminal equipment and readable storage medium
US20220061701A1 (en) System and method for compressing and segmenting activity data in real-time
CN104302017A (en) Pretreatment method for wavelet data compression in sensor network
CN112741594A (en) Sleep monitoring device and method
CN202372572U (en) Visual multi-path jumping pulse measurement virtual logic analyzer
CN116388768B (en) Compression method and system for signal data
CN108981990A (en) Indicator
CN205620473U (en) Synchronous electric signal of multiple voltage level gathers device
CN201977779U (en) Portable pulse signal acquisition and recording device

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