필터 지우기
필터 지우기

How to do real Time EEG seizure Detection/analysis?

조회 수: 34 (최근 30일)
Tania Akhtar
Tania Akhtar 2024년 5월 11일
댓글: Image Analyst 2024년 5월 12일
Hello, I am writing a code that should be able to tell if a signal inputed into the code has a seizure or not. How can I change it so it analyses an eeg recording that may have seizures at some point and then give real time answer/showcases realtime if the current part of the recording has a seizure? I'm not sure where to get started and need some advice if possible.It may need some sort of window but i do not know how to go about it.

채택된 답변

Image Analyst
Image Analyst 2024년 5월 11일
I suggest you first consult with your neurologist, or whatever medical professional hired you to do this, and have them identify normal and abnormal eeg signals. We cannot do that for you. We only help with MATLAB code, and perhaps some simple algorithm development.
I suspect you can use traditional signal analysis, or a deep learning approach. If you have some characteristics of the signal that can be readily identified from the signal(s) then perhaps a traditional signal analysis approach would be successful. If not, you could try deep learning but you'd need a neurologist to categorize hundreds of signals as normal or one of some number of abnormal states, after which you can use those categorizations to train a deep learning classification network.
Here are some articles that may help you with algorithms:
As far as real time analysis, I think you may need the Data Acquisition Toolbox to somehow input your signals from the EEG machine into your computer. I can't help with that part but there may be examples in that toolbox's documentation. You may have to first capture and then look at short time segments, like import 2 second segment of signal, then process that segment, then grab and analyze the next segment.
  댓글 수: 4
Tania Akhtar
Tania Akhtar 2024년 5월 12일
Thank you for the advice I've taken it into account, I've mostly finished the threshold code through amplitude differences and other features, and now I'm looking into using the buffer function for the real time simulation of the eeg bit since not sure the fread would be applicable.
Image Analyst
Image Analyst 2024년 5월 12일
I think you haven't looked into it enough. They do different things. From what I can see in the documentation buffer splits up a signal that is already in memory (already in a variable) into separate segments, so you need to have it already read in from disk. fread is the function that does the actual reading of the bytes into memory from a disk file. So you need fread. If you want to then use buffer on what fread retrieved from the file, then you can do that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by