A distributed fNIRS brain functional imaging system for hyperscanning applications
Through the distributed fNIRS brain functional imaging system, wireless communication and DMA time-division multiplexing-double-threading strategy are used to achieve synchronous acquisition of brain function signals of multiple subjects, solving the problems of bulky equipment and synchronous acquisition in the existing technology. , providing tools suitable for studying brain function in natural situations.
Patent Information
- Application Number
- CN202211459564.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-11-17
AI Technical Summary
Existing brain functional imaging systems cannot achieve synchronization and continuous collection of brain function signals from multiple subjects in social interaction situations, and the equipment is bulky and unsuitable for group brain function research in natural situations.
A distributed fNIRS functional brain imaging system is designed, using wearable imaging terminals and host platforms to achieve synchronous recording and display of blood oxygen activities of multiple subjects through wireless communication, using DMA time-division multiplexing-dual threads The policy and response transmission mechanism eliminates time errors and ensures data synchronization and transmission correctness.
It achieves the simultaneous measurement of relative changes in brain hemoglobin concentration of multiple subjects during social interaction, and provides a comfortable, high-performance, stable and reliable imaging tool suitable for studying group brain functional activities in natural situations. .
Smart Images

Figure CN115844325B_ABST
Abstract
Description
Technical field:
[0001] The present invention relates to the field of photoelectric detection technology, and in particular to a distributed fNIRS brain function imaging system for superscanning applications. Background technology:
[0002] The brain is the most sophisticated and complex organ in the human body in terms of function and structure. It can participate in and control brain functions such as movement, sensation, cognition, memory, and emotional control. From the perspective of neuroinformatics research, brain science research helps humans understand the cognitive activity mechanism of the brain and promotes humans to further understand and develop the functional potential of the brain; from the perspective of disease treatment and control, brain science research is very important for the diagnosis and intervention of neurological diseases such as autism in children, Alzheimer's disease, and epilepsy, which helps to further understand the mechanism of related brain diseases and provide a scientific basis for diagnosis and treatment; from the perspective of artificial intelligence technology innovation, the use of the operating mechanism of brain function activities to promote new theoretical and technological development in the field of artificial intelligence, and empower new concepts in other disciplines, will help promote the development of new technologies such as brain-computer interfaces. In summary, brain function research is not only very important for exploring the operating mechanism of the brain, but is also closely related to human health development and social scientific progress.
[0003] With the advancement of science and technology, a large number of instruments for detecting brain functional activities have emerged, such as functional magnetic resonance imaging (fMRI), electroencephalography (EEG), and functional near-infrared spectroscopy (fNIRS), which have promoted the progress of brain science research. At present, most of the research based on the above instruments is on single-person task-based brain functional activities, which detects the brain hemodynamic response of the subjects through certain task stimulation. Since the influence of psychological activities and the surrounding natural environment on people in social interaction situations is not considered, this type of research limits the breadth of the research content, and the research results may have ecological validity problems.
[0004] Therefore, developing a detection instrument that can carry out synchronous neuroimaging (hyper-scanning) of two or more subjects in daily situations has become an important direction of current brain science research. The main technical difficulties in the simultaneous acquisition of multi-person brain function signals are the continuity and synchronization of signal acquisition at each sampling point, the sensitivity of the detection equipment, and the anti-interference of motion artifacts. fNIRS hyper-scanning technology uses the scattering and absorption characteristics of brain tissue to detect the relative changes in hemoglobin concentration, and calculates hemodynamic parameters based on its absorption spectrum characteristics to obtain the spatial distribution of brain functional activation areas, with good temporal resolution and spatial resolution. Although many research teams at home and abroad have developed corresponding large-scale systems and a few portable systems, most systems are relatively bulky and have relatively large restrictions on the behavior of the subjects. In addition, they do not consider the problem that multiple detection devices in group studies cannot continuously and synchronously collect data due to working methods, transmission delays, etc., and are not suitable for group brain function activity research in natural situations. Summary of the invention:
[0005] In order to overcome the defects of the prior art, the present invention proposes a distributed fNIRS brain functional imaging system for hyperscanning applications, which can synchronously and continuously measure the relative changes in brain hemoglobin concentrations of multiple subjects during social interaction, providing a comfortable, high-performance, stable and reliable imaging tool for the study of synchronized neural activity between brains.
[0006] The present invention solves the practical problem by adopting the following technical solutions:
[0007] A distributed fNIRS brain function imaging system for hyperscanning applications, the brain function imaging system comprising a host platform for data monitoring and analysis and at least two wearable imaging terminals; the host platform exchanges data with a plurality of the imaging terminals via wireless communication, and can continuously and synchronously record and display change information of blood oxygen activity of a plurality of subjects;
[0008] The wearable imaging terminal includes a source-detector array unit, a light source driving unit, a main control unit, a wireless communication unit and a power supply unit;
[0009] The main control unit implements online software phase-locked demodulation based on the reference signal weighted-accumulation strategy and collects all-channel measurement data in parallel;
[0010] The wireless communication unit realizes synchronous wireless transmission of multi-terminal information based on DMA time division multiplexing-dual thread strategy, eliminates the time error caused by asynchronous communication between the host platform and multiple imaging terminals, and adopts the response transmission mechanism and self-correction data frame to realize time alignment, classification storage and error identification, so as to ensure the synchronization of data detection and the accuracy of transmission.
[0011] Further, the main control unit implements the online software phase-locked demodulation step based on the reference signal weighted-accumulation strategy:
[0012] The main control unit discretizes the signal to be demodulated, takes the average value of the first 30 signals as the baseline value of this integration time for baseline calibration, and subtracts the baseline value from all the discrete signals to be demodulated; within the integration time, the signal to be tested that has been baseline calibrated is demodulated and accumulated with two discrete phase-sensitive detection reference signals respectively, so as to obtain the light intensity value of each sampling point.
[0013] Further, the wireless communication unit is based on DMA time division multiplexing-dual thread strategy steps:
[0014] The wireless communication unit performs continuous online software phase-locked demodulation through the CPU thread within each integration time, and sets the integration completion flag position to 1 when the demodulation is completed;
[0015] The wireless communication unit starts DMA data transmission in the second integration time through the DMA thread, and organizes the demodulated value of the previous integration time into a data frame and sends it to the host platform.
[0016] Further, the wireless communication unit adopts a response transmission mechanism and a self-correction data frame; wherein:
[0017] The response transmission mechanism adopted by the wireless communication unit has three processes:
[0018] Terminal transmission permission: the host platform sends the data transmission instruction of the first imaging terminal in the form of broadcast, and the imaging terminal recognizes and receives it through the DMA thread and sets the transmission permission flag position to 1;
[0019] Waiting for terminal data: the host platform waits to receive data in this process. Only when the internal integration completion flag and the sending permission flag of the imaging terminal are set to 1 at the same time, the imaging terminal sends the data frame to the host platform;
[0020] Receiving terminal data: The host platform receives data in this process. If there is an error in the transmission, the data frame is discarded and a data re-upload instruction is sent. The imaging terminal sends the data frame again. If the host platform still receives an error at this time, the data is marked as error data and marked on the data set. A data completion instruction is sent to the imaging terminal to start data transmission for the next imaging terminal.
[0021] When the main control unit completes the online software phase-locked demodulation, it reads the current system clock value as the timestamp information of the data, and the light intensity value of each sampling point constitutes the data bit in the data frame, and then sends the data frame to the host platform.
[0022] Beneficial effects:
[0023] 1. The present invention realizes wireless data transmission of multiple imaging terminals based on ZigBee communication technology, works based on DMA time division multiplexing-dual thread strategy, has high channel utilization, and the underlying firmware adopts automatic collision avoidance strategy. Data frames exceeding the channel tolerance will overflow and be lost, but data errors and crosstalk will not occur. At the same time, the network removal and addition of each imaging terminal are very convenient, plug-and-play, and the network has strong self-healing properties. Compared with WI-FI communication, it has the characteristics of low bit error rate and low power consumption, and is particularly suitable for data transmission applications of wearable medical devices.
[0024] 2. The present invention controls each imaging terminal to perform light intensity calibration to compensate for the differences in absorption and scattering of the brains of different subjects, and enables each imaging terminal to achieve a similar signal-to-noise ratio level by adjusting the near-infrared light intensity.
[0025] 3. In the present invention, the imaging terminal adopts a high-precision timer to provide timestamp information for the collected data, and uses DMA to realize that the wireless communication unit directly exchanges data with the internal data storage without going through the main control unit CPU, thereby eliminating the time error of asynchronous communication between the host platform and multiple imaging terminals; when the host platform receives the data frame, it performs time alignment and channel classification processing according to the difference in its timestamp bit and address bit, marks the abnormal data (transmission error, overflow loss) before fNIRS data preprocessing, and further analyzes and processes to obtain the individual hemodynamic activity information and data set of the subject. Description of the drawings:
[0026] Figure 1 It is a block diagram of a distributed fNIRS brain functional imaging system for hyperscanning applications;
[0027] Figure 2 It is a work flow chart related to online software phase-locked demodulation in the present invention;
[0028] Figure 3 This is a circuit schematic diagram of a light source driving unit in the present invention;
[0029] Figure 4 This is a working flow chart of automatic light intensity adjustment of the light source driving unit in the present invention;
[0030] Figure 5 The present invention relates to the ZigBee data frame transmission format requirements;
[0031] Figure 6 The present invention relates to a time division multiplexing-dual thread strategy working timing diagram
[0032] Figure 7 The present invention relates to a working flow chart of wireless communication. Specific implementation method:
[0033] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The described specific embodiments are only used to explain the present invention and are not intended to limit the present invention.
[0034] The present invention provides a distributed fNIRS brain function imaging system for hyperscanning applications, comprising a host platform for data monitoring and analysis and wearable imaging terminals (≥2 units); the imaging terminal is used for fully parallel acquisition of blood oxygen information of brain area sampling points of multiple subjects; the host platform is used for processing and analyzing received data frames to obtain brain hemodynamic activity information of each subject.
[0035] The imaging terminal uses a high-precision timer to continuously collect light intensity data, demodulate and process data, and communicate data, and provide timestamp information for the collected data. When system data transmission errors occur, data loss will occur. The use of timestamps can quickly identify the time point of the lost data, facilitating subsequent data processing.
[0036] The imaging terminal adopts a baseline calibration method. The first 30 sets of data are collected at each sampling point, and their average value is used as the baseline. The subsequent measurement values are calibrated with this baseline (subtracting the baseline value) and then subjected to online software phase-locked demodulation processing to obtain the original light intensity data of each sampling point.
[0037] The imaging terminal includes a constant current source driving circuit and a feedback light intensity regulation circuit. The constant current source driving circuit drives the light source to generate near-infrared modulated light of two wavelengths and different frequencies; the feedback light intensity regulation circuit adjusts the magnitude of the driving current by controlling the resistance change of the resistor.
[0038] The imaging terminal uses a flexible black medical self-adhesive silicone material to wrap the detector and light source device, so that it can naturally adhere to the contour of the skull and better fit the skin, reducing additional errors and motion artifacts caused by relative motion.
[0039] The data frame format in the imaging terminal consists of an address bit, a timestamp bit, a mark bit, a data bit and an end bit; the address bit is a specific serial number of the imaging terminal; the timestamp bit is used to mark the time point when the group of data is collected; the mark bit is used by the host platform to mark whether the group of data is transmitted correctly; the data bit is composed of the original light intensity data of each sampling point; and the end bit is used to determine whether the transmission of the group of data has ended.
[0040] The main control unit in the imaging terminal adopts a direct memory access (DMA) hardware transmission method to realize data transmission between a data storage device and a wireless communication unit, thereby solving the nesting conflict between an external serial port receiving interrupt and a timer interrupt and improving the demodulation efficiency of the main control unit.
[0041] The host platform includes a parameter configuration unit, a data processing unit and a real-time monitoring unit. The parameter configuration unit is used to select the number of enabled imaging terminals and control the imaging terminals to adjust light intensity and transmit related detection parameters; the data processing unit is used to classify and process the detection data of each imaging terminal and mark the data with transmission errors; the real-time monitoring unit receives the classified data, further analyzes and processes the data to obtain the brain hemodynamic activity information of each subject, and displays it in real time.
[0042] like Figure 1 As shown, a distributed fNIRS brain function imaging system for hyperscanning applications is characterized by: a host platform and wearable imaging terminals (≥2 units) for data monitoring and analysis; the host platform performs synchronous data interaction with multiple imaging terminals through wireless communication, and can continuously and synchronously record and display change information of blood oxygen activity of multiple subjects.
[0043] The brain function imaging system includes a host platform for data monitoring and analysis and at least two wearable imaging terminals; the host platform exchanges data with multiple imaging terminals through wireless communication, and can continuously record and display the change information of blood oxygen activity of multiple subjects;
[0044] The wearable imaging terminal includes a source-detector array unit, a light source driving unit, a main control unit, a wireless communication unit and a power supply unit; wherein:
[0045] The light source driving unit is composed of a constant current source driving circuit and a feedback light intensity regulating circuit;
[0046] The main control unit is composed of a timer, an ARM microcontroller, a data storage device and an online software phase-locked demodulator;
[0047] The light source driving unit generates a driving signal according to a control command issued by the main control unit;
[0048] The source-detector array unit generates near-infrared light of different frequencies and wavelengths according to the driving signal and converts the outgoing light signal into an electrical signal and performs analog-to-digital conversion, and further transmits the data to the main control unit;
[0049] The main control unit receives data and performs online software phase-locked demodulation processing to obtain the light intensity value; the wireless communication unit uses a response transmission mechanism and a self-correction data frame to interact in real time with the data generated by the main control unit and the data of the host platform;
[0050] The power supply unit is used to output power to the imaging terminal and output an abnormal alarm;
[0051] The host platform transmits relevant detection parameters to the imaging terminal, receives data frames from each imaging terminal, and performs detection records and classified storage.
[0052] Furthermore, the wireless communication unit implements the multi-terminal information synchronous wireless transmission step based on the DMA time division multiplexing-dual thread strategy:
[0053] The imaging terminal performs continuous online software phase-locked demodulation in each integration time through a CPU thread, and sets the integration completion flag position to 1 when the demodulation is completed;
[0054] The imaging terminal starts DMA data transmission in the second integration time through the DMA thread, and organizes the demodulated value of the previous integration time into a data frame and sends it to the host platform; wherein:
[0055] The wireless communication unit adopts the response transmission mechanism and the self-correction data frame, and there are three processes when performing data transmission:
[0056] Terminal transmission permission: the host platform sends the data transmission instruction of the first imaging terminal in the form of broadcast, and the imaging terminal recognizes and receives it through DMA and sets the transmission permission flag position to 1;
[0057] Waiting for terminal data: the host platform waits to receive data in this process. Only when the internal integration completion flag and the sending permission flag of the imaging terminal are set to 1 at the same time, the imaging terminal sends the data frame to the host platform;
[0058] Receiving terminal data: The host platform receives data in this process. If there is an error in the transmission, the data frame is discarded and a data re-upload instruction is sent. The imaging terminal sends the data again. If the host platform still receives an error at this time, the data is marked as error data and marked on the data set. A data completion instruction is sent to the imaging terminal to start data transmission for the next imaging terminal.
[0059] Further, the wireless communication unit uses a response transmission mechanism and a self-correction data frame to perform real-time interaction between the data generated by the main control unit and the data of the host platform:
[0060] The data frame format consists of an address bit, a timestamp bit, a mark bit, a data bit and an end bit;
[0061] The address bit is a specific serial number of the imaging terminal;
[0062] The timestamp bit is used to mark the time point of collecting the group of data;
[0063] The flag bit is used by the host platform to mark whether the group of data is transmitted correctly;
[0064] The data bits are composed of the original light intensity data of each sampling point;
[0065] The end bit is used to determine whether the transmission of the group of data has ended.
[0066] The wireless communication unit includes a self-correcting data frame and a time division multiplexing-dual thread strategy. The data frame consists of an address bit, a timestamp bit, a mark bit, a data bit and an end bit. The timestamp bit is determined by a high-precision timer with an accuracy of 10ms to ensure the time synchronization of data acquisition between multiple imaging terminals. The time division multiplexing-dual thread strategy adopts ZigBee based on the IEEE802.15.4 underlying protocol, and uses DMA to realize data interaction between the internal data storage of the main control unit and the ZigBee data buffer, eliminating the time error existing in asynchronous communication and realizing high-precision continuity detection of multiple imaging terminals.
[0067] Furthermore, the constant current source driving circuit drives the light source to generate near-infrared modulated light of two wavelengths and different frequencies; the feedback light intensity regulating circuit adjusts the driving current by controlling the resistance change of the resistor; wherein:
[0068] The feedback light intensity adjustment circuit receives a preset light intensity value range input by the host platform, adjusts the gear of the resistor to the minimum value, turns on the excitation light source of the first sampling point, and performs online software phase-locked demodulation;
[0069] Determine whether it is the maximum gear. If it is, the light intensity adjustment of the channel ends directly. Otherwise, further determine whether the light intensity is within the preset range. If it is not within the preset range, increase the gear for further measurement. If it is within the range, adjust the next sampling point until all sampling points are adjusted.
[0070] Further, the main control unit receives data and performs online software phase-locked demodulation to obtain the light intensity value step: a timer is used to generate 8 groups of square wave signals between 86 Hz and 303 Hz with an interval of 31 Hz, each group of square wave signals is composed of two square waves with no phase shift and 90° phase shift of the same frequency, which are used as phase-sensitive detection reference signals for online software phase-locked demodulation;
[0071] The main control unit discretizes the signal to be demodulated, takes the average value of the first 30 signals as the baseline value of this integration time for baseline calibration, and subtracts the baseline value from all the signal values to be demodulated; within the integration time, the baseline-calibrated signal to be tested is demodulated with two discrete phase-sensitive detection reference signals respectively, so as to obtain the light intensity value of each sampling point;
[0072] When the online software phase-locked demodulation is completed, the value of the system clock is read as the timestamp, and the time representation accuracy is 10ms; the light intensity value of each sampling point constitutes the data bit in the data frame, and the timestamp bit is determined by the system clock, and then the data frame is sent to the host platform.
[0073] Furthermore, the host platform includes a parameter configuration unit, a data processing unit and a real-time monitoring unit, wherein: the parameter configuration unit is used to select the number of enabled imaging terminals, control the imaging terminals to perform light intensity adjustment and transmit relevant detection parameters;
[0074] The data processing unit is used to classify and process the detection data of each imaging terminal and mark the data with transmission errors;
[0075] The real-time monitoring unit receives the classified data, further analyzes and processes the data to obtain brain hemodynamic activity information of each subject, and displays the information in real time.
[0076] The source-detector array unit is connected to the main control unit and the light source driving unit, and is used to emit near-infrared modulated light of different frequencies according to the control command of the main control unit, convert the emitted light signal into an electrical signal and perform analog-to-digital conversion, and transmit the data to the main control unit for demodulation processing;
[0077] The power supply unit includes a power management unit and a lithium battery power supply, and the power management unit is used to output stable power and abnormal output alarm.
[0078] The host platform transmits relevant detection parameters to the imaging terminal, receives data frames from each imaging terminal, and performs detection records and classified storage.
[0079] In order to obtain optical imaging of brain functional areas, optical topography (OT) technology was used for imaging. The principle is to use the modified Lambert-Beer law to convert the light intensity change information of each sampling point into the change of hemoglobin concentration, and then obtain a two-dimensional image through interpolation.
[0080]
[0081] Where A represents the absorbance of the channel, I 0 , I represent the intensity of the initial incident light and diffuse reflected light, represents the absorption coefficient of the two hemoglobins when the incident wavelength is λ, C HbO , C HbR represents the concentration of the two hemoglobins, DPF(λ) represents the differential path factor, r represents the distance between the light source and the detector, and G represents the light intensity loss caused by substances other than hemoglobin. The resting state of the subject at the beginning of the measurement is used as a reference, and the changes in the diffuse reflected light intensity are measured in real time to detect the changes in brain HbO and HbR:
[0082]
[0083] Where ΔA represents the change in absorbance; I λ They represent the resting state of the subject and the diffuse reflection intensity measured in real time. HbO , ΔC HbR Two unknown quantities require two wavelengths of near-infrared light to solve:
[0084]
[0085] Thus, the relative change of hemoglobin concentration at each sampling point is obtained, and then the two-dimensional activation image of the brain area to be tested at a certain time point is obtained by interpolation.
[0086] like Figure 2 As shown, the wearable imaging terminal discretizes the signal to be demodulated, takes the average value of the first 30 signals as the baseline value of this integration time, and then performs baseline calibration, subtracting the baseline value from all the signal values to be demodulated. During the integration time, the baseline-calibrated signal to be measured is demodulated with two discrete phase-sensitive detection reference signals respectively to obtain the light intensity value of each sampling point. The imaging terminal uses two cascaded high-precision timers to form a system clock that is always running. When the demodulation is completed, the value of this system clock is read as a timestamp, and the time representation accuracy is 10ms. The light intensity values of each sampling point constitute the data bits in the data frame, and the timestamp bits are determined by the system clock, and then the data frame is sent to the host platform.
[0087] like Figure 3 As shown, the light source driving unit in the wearable imaging terminal is an 8-way modulated constant current LED driving circuit, and the working principle is that when the analog switch is acted upon by the modulation signal, the reference voltage V REF When the op amp is in a "virtual short" state, the resistor R S The voltage on the REF ; Field effect tube U GS is greater than the internal conduction voltage, the drain and source are turned on, and due to the action on the resistor R S The reference voltage V REFunchanged, and the negative feedback of the circuit, the current i flowing through the LED D Keep the constant current unchanged and change the reference voltage V through the resistor REF The drive current is then changed to the target value.
[0088] like Figure 4 As shown, the wearable imaging terminal first receives the preset light intensity value range input by the host platform, adjusts the gear of the resistor to the minimum value, turns on the excitation light source of the first sampling point, and performs online software phase-locked demodulation. It is determined whether it is the maximum gear. If it is the maximum gear, the light intensity adjustment of the channel ends directly. Otherwise, it is further determined whether the light intensity is within the preset range. If it is not within the preset range, the gear is increased for further measurement. If it is within the range, the next sampling point is adjusted until all sampling points are adjusted.
[0089] As shown in Table 1, each light source of the wearable imaging terminal is composed of two LEDs with wavelengths of 775nm and 855nm, and there are 4 excitation light sources with a total of 8 LEDs. The main control unit generates 8 square wave signals with different frequencies between 86Hz and 303Hz and an interval of 31Hz to modulate the 8 LEDs, and realizes full parallel measurement of light intensity change information of multiple sampling points in the brain area based on the frequency division multiplexing method.
[0090] Table 1 LED modulation frequency
[0091]
[0092] like Figure 5 As shown, the length of the ZigBee receiving data frame in the wearable imaging terminal is 1-100 bytes, and there needs to be a certain time interval T0 (minimum 15ms) between data frames to ensure correct packet division. Theoretically, the maximum transmission rate is 100Byte*1000ms / 15ms=6.7KB / s.
[0093] like Figure 6As shown, the wearable imaging terminal performs time division multiplexing-dual thread strategy work, the CPU thread performs continuous online software phase-locked demodulation in each integration time, and the integration completion flag is set to 1 when the demodulation is completed; the DMA thread starts DMA data transmission in the second integration time, and organizes the demodulation value of the previous integration time into a data frame and sends it to the host platform. Considering the time division multiplexing transmission problem of multiple imaging terminals, a response transmission mechanism is set. There are three processes when an imaging terminal performs data transmission: 1. Terminal transmission permission. The host platform sends the data transmission instruction of the first imaging terminal in the form of broadcast, and the imaging terminal recognizes and receives it through DMA, and sets the transmission permission flag to 1. 2. Waiting for terminal data. The host platform waits to receive data in this process, and only when the internal integration completion flag and the transmission permission flag of the imaging terminal are set to 1 at the same time, the data frame is sent to the host platform. 3. Receive terminal data. The host platform receives data in this process. If there is an error in the transmission, the data frame is discarded, and the data re-upload instruction is sent, and the imaging terminal sends the data again. If the host platform still receives errors at this time, it marks the data as error data and marks it on the data set, sends a data completion instruction to the imaging terminal, and starts data transmission to the next imaging terminal.
[0094] As shown in Table 2, when ZigBee in the wearable imaging terminal performs data transmission, an answer transmission mechanism is adopted. Regardless of whether the data reception is normal or erroneous, the data transmission time of an imaging terminal is constant at 90ms. The minimum integration time adopted by the system depends on the number of enabled imaging terminals. The specific calculation basis is: minimum integration time ≥ number of enabled imaging terminals × 90ms.
[0095] Table 2 Minimum integration time for different numbers of imaging terminals
[0096]
[0097] like Figure 6As shown, the wearable imaging terminal time division multiplexing-dual thread strategy does not affect each other when working, which is manifested in that the CPU and DMA alternately occupy the bus in time division, the bus occupation time is short, and an imaging terminal only performs a DMA data transmission process once in one integration time. The modulation frequency of near-infrared light is between 86Hz-303Hz, with an interval of 31Hz, and a sampling frequency of 1K is selected according to the Nyquist sampling theorem. Due to the selection of an integration time of 1000ms and a sampling frequency of 1K, the imaging terminal generates a timer interrupt every 1ms for the CPU to occupy the bus, read the sampling value of the ADC, and write the accumulated value after the demodulation operation into memory 1. After the demodulation of an integration time is completed, the CPU writes the demodulated value into memory 2, clears memory 1, and starts the demodulation of the next integration time. After the CPU occupies the bus, the DMA obtains bus control, accesses and reads the data of memory 2, transmits the demodulation value of the previous integration time, and clears memory 2 after the data transmission is completed. Memory 1 stores the accumulated value used for demodulation operation in the current integration time, and memory 2 stores the demodulation value of the previous integration time.
[0098] like Figure 7 As shown, the wireless communication unit, first the host platform ZigBee establishes a network, configures network parameters and network identifiers and waits for the network access request of the child node; the imaging terminal ZigBee sends a network access request in each channel by broadcasting, and waits for the device network access request reply; the host platform ZigBee receives the device network access request, and replies with response information, including network parameters and network identifier (MAC address by default); the imaging terminal ZigBee selects the node network with the best signal quality, and sends a response reply information (its own MAC address and device attributes) to request to join; after receiving the response information, the host platform ZigBee can send unicast to the target device, and allocate a network short address for sending and receiving data in the network through distributed addressing; the imaging terminal ZigBee broadcasts a device declaration containing its short address and MAC address in the network. If a device finds that the address is the same as its own, it sends an address conflict broadcast information, and the conflicting devices need to change their addresses.
[0099] The system consists of:
[0100] 1. The source-detector array unit of the imaging terminal adopts two types of SMD LEDs, Ois-775 and Ois-855, produced by OSA-OPTO of Germany as the system light source, wherein Ois-775 is a light source with a wavelength of 775nm, and Ois-855 is a light source with a wavelength of 855nm. The detector adopts OPT101, and is synchronously sampled by the analog-to-digital converter AD7606, and the data is transmitted to the main control unit through the SPI communication protocol.
[0101] 2. The main control unit of the imaging terminal adopts STM32F407, which is mainly used to generate timestamp information of detection data, modulation signal of light source and reference signal required for demodulation, receive voltage information collected by ADC, perform online software phase-locked demodulation, DMA data transmission, etc.
[0102] 3. The light source driving unit of the imaging terminal is connected in sequence through the voltage reference chip LM4132, the operational amplifier LMV324, and the N-channel field effect transistor IRLMS2002 to form a constant current source driving circuit, and the square wave modulation of the light source is realized through the analog switch ADG734.
[0103] 4. The power supply unit of the imaging terminal adopts DM02-2805 and 1800mAh polymer lithium battery, which can provide stable power supply and abnormal alarm function. The lithium battery has large capacity and small size, which meets the requirements of wearable devices.
[0104] 5. The wireless communication unit adopts the 2.4G RF transceiver chip CC2530, RF front-end chip CC2591 and antenna module based on the ZigBee communication protocol. It has the characteristics of high hardware integration, strong signal, low bit error rate and low power consumption, and is suitable for small data volume, multi-node wireless RF networks.
[0105] 6. The host platform is designed using LabView software, and exchanges data with each imaging terminal through a wireless communication unit, processes, records and classifies the received data, and obtains the hemoglobin concentration time variation curve, OT optical imaging and data set.
[0106] Although the present invention has been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many modifications without departing from the purpose of the present invention, all of which are within the protection of the present invention.
Claims
1. A distributed fNIRS brain functional imaging system for hyperscanning applications, characterized by: The brain function imaging system includes a host platform for data monitoring and analysis and at least two wearable imaging terminals; the host platform exchanges data with the plurality of imaging terminals via wireless communication, and can continuously and synchronously record and display the change information of the blood oxygen activity of a plurality of subjects; The wearable imaging terminal includes a source-detector array unit, a light source driving unit, a main control unit, a wireless communication unit and a power supply unit; The main control unit implements online software phase-locked demodulation based on the reference signal weighted-accumulation strategy and collects all-channel measurement data in parallel; wherein: the main control unit is composed of a timer, an ARM microcontroller, a data storage device and online software phase-locked demodulation; including: The timer generates 8 groups of square wave signals with a frequency between 86Hz and 303Hz and an interval of 31Hz. Each group of square wave signals consists of two square waves with no phase shift and 90° phase shift of the same frequency, which serve as the phase-sensitive detection reference signal for online software phase-locked demodulation. The main control unit discretizes the signal to be demodulated, takes the average value of the first 30 signals as the baseline value of this integration time for baseline calibration, and subtracts the baseline value from all the discrete signals to be demodulated; within the integration time, the baseline-calibrated signal to be tested and two discrete phase-sensitive detection reference signals are demodulated and accumulated respectively, so as to obtain the light intensity value of each sampling point; When the online software phase-locked demodulation is completed, the value of the system clock is read as the timestamp, and the time representation accuracy is 10ms; the light intensity value of each sampling point constitutes the data bit in the data frame, and the timestamp bit is determined by the system clock, and then the data frame is sent to the host platform; The wireless communication unit realizes synchronous wireless transmission of multi-terminal information based on DMA time division multiplexing-dual thread strategy, eliminates the time error caused by asynchronous communication between the host platform and multiple imaging terminals, and adopts the response transmission mechanism and self-correction data frame to realize time alignment, classification storage and error identification; including: The wireless communication unit performs continuous online software phase-locked demodulation in each integration time through the CPU thread, and sets the integration completion flag to 1 when the demodulation is completed; the wireless communication unit starts DMA data transmission in the second integration time through the DMA thread, and organizes the demodulation value of the previous integration time into a data frame and sends it to the host platform; The wireless communication unit adopts a response transmission mechanism and a self-correction data frame step; wherein: the response transmission mechanism adopted by the wireless communication unit has three processes: Terminal transmission permission: the host platform sends the data transmission instruction of the first imaging terminal in the form of broadcast, and the imaging terminal recognizes and receives it through the DMA thread and sets the transmission permission flag position to 1; Waiting for terminal data: the host platform waits to receive data in this process. Only when the internal integration completion flag and the sending permission flag of the imaging terminal are set to 1 at the same time, the imaging terminal sends the data frame to the host platform; Receiving terminal data: The host platform receives data in this process. If there is an error in the transmission, the data frame is discarded, and a data re-upload instruction is sent, and the imaging terminal sends the data frame again; if the host platform still receives an error at this time, the data is marked as error data and marked on the data set, and a data completion instruction is sent to the imaging terminal to start data transmission for the next imaging terminal; When the main control unit completes the online software phase-locked demodulation, it reads the current system clock value as the timestamp information of the data, and the light intensity value of each sampling point constitutes the data bit in the data frame, and then sends the data frame to the host platform.
Citation Information
Patent Citations
Multicenter parallel measuring system for light ball modulation type reflection difference spectrograph
CN101201317A
Method and device for in-phase measurement of near infrared brain function detector
CN101449968A
Intelligent frequency-division modulation type multichannel near infrared spectrum cerebral function imaging method
CN106073716A
Wearable functional near-infrared spectral imaging system front end
CN106618599A
Synchronous acquisition system for human sport performance evaluated data
CN112294294A
