Different pattern: a new EEG-based method for mental performance detection.
The 6 matches
- [1] § Experimental results › Explainable results ↔ main.m, lines 140–180 · score 0.69 · DLob symbols, TL, TR, PL, PR, CL
- [2] § Experimental results › Experimental setup ↔ main.m, lines 223–292 · score 0.63 · cortical connectome, DLob sentence, DLob symbols, entropy, histogram, transition
- [3] § Discussions › External dataset validation ↔ main.m, lines 1–49 · score 0.60 · driven XFE model, EEG signal, DiffPat, detection, mental
- [4] § Experimental results › Explainable results ↔ main.m, lines 223–292 · score 0.59 · cortical connectome, DLob sentence, DLob symbol, histogram
- [5] § The presented DiffPat-driven XFE model › Overall pipeline overview ↔ ten_cv_inca.m, lines 114–157 · score 0.51 · iterative feature selection, feature weighting, nested, training, INCA, fold
- [6] § The presented DiffPat-driven XFE model › Overall pipeline overview ↔ loso_cv_inca.m, lines 62–113 · score 0.50 · iterative feature selection, feature weighting, LOSO, training, INCA, fold
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 292 lines · 11 KB · MIT · 4 matches
- % =========================================================================
- % Main Script: DiffPat-driven XFE Model for Mental Performance Detection
- % =========================================================================
- % "Different Pattern: A new mental performance detection using EEG signal"
- %
- % Referans:
- % Ince et al., "Different Pattern: A new mental performance detection
- % using EEG signal", 2026.
- % =========================================================================
- clc; clear; close all;
- fprintf('==========================================================\n');
- fprintf(' DiffPat-driven XFE Model - Mental Performance Detection\n');
- fprintf('==========================================================\n\n');
- % =====================================================================
- % 1. VERI YUKLEME
- % =====================================================================
- data_file = 'EEG_mental_performance.mat'; % <-- Veri dosyanizin adi
- if ~exist(data_file, 'file')
- error(['Veri dosyasi bulunamadi: %s\n' ...
- 'Lutfen veri dosyanizin yolunu data_file degiskeninde belirtin.\n' ...
- 'Beklenen degiskenler: data (cell/3D), labels (Nx1), subjects (Nx1)'], ...
- data_file);
- end
- fprintf('Veri yukleniyor: %s\n', data_file);
- loaded = load(data_file);
- if isfield(loaded, 'data') && isfield(loaded, 'labels') && isfield(loaded, 'subjects')
- raw_data = loaded.data;
- labels = loaded.labels(:);
- subject_ids = loaded.subjects(:);
- elseif isfield(loaded, 'X') && isfield(loaded, 'y') && isfield(loaded, 'subject_ids')
- fprintf('Hazir ozellik matrisi bulundu, DiffPat cikarimi atlanacak.\n');
- X = loaded.X;
- y = loaded.y(:);
- subject_ids = loaded.subject_ids(:);
- raw_data = [];
- labels = y;
- else
- error(['Veri dosyasinda beklenen degiskenler bulunamadi.\n' ...
- 'Beklenen: (data, labels, subjects) veya (X, y, subject_ids)']);
- end
- % =====================================================================
- % 2. DIFFPAT OZELLIK CIKARIMI
- % =====================================================================
- if ~isempty(raw_data)
- fprintf('\n--- DiffPat Ozellik Cikarimi ---\n');
- if iscell(raw_data)
- num_segments = length(raw_data);
- [~, num_channels] = size(raw_data{1});
- if size(raw_data{1}, 1) < size(raw_data{1}, 2)
- num_channels = size(raw_data{1}, 1);
- end
- elseif ndims(raw_data) == 3
- [~, num_channels, num_segments] = size(raw_data);
- else
- error('Veri formati desteklenmiyor. Cell array veya 3D matris olmali.');
- end
- num_features = num_channels^2;
- X = zeros(num_segments, num_features);
- y = labels;
- fprintf('Segment sayisi: %d | Kanal sayisi: %d | Ozellik sayisi: %d\n', ...
- num_segments, num_channels, num_features);
- feature_time = tic;
- for seg = 1:num_segments
- if iscell(raw_data)
- eeg_segment = raw_data{seg};
- else
- eeg_segment = raw_data(:, :, seg);
- end
- X(seg, :) = diffpat(eeg_segment);
- if mod(seg, 500) == 0
- fprintf(' Islem: %d / %d segment tamamlandi...\n', seg, num_segments);
- end
- end
- feat_elapsed = toc(feature_time);
- fprintf('DiffPat ozellik cikarimi tamamlandi: %.2f saniye\n', feat_elapsed);
- fprintf('Ozellik matrisi boyutu: %d x %d\n', size(X,1), size(X,2));
- end
- % =====================================================================
- % 3. VERI OZETI
- % =====================================================================
- fprintf('\n--- Veri Seti Ozeti ---\n');
- unique_labels = unique(y);
- num_subjects = length(unique(subject_ids));
- fprintf('Toplam segment: %d\n', length(y));
- fprintf('Toplam birey: %d\n', num_subjects);
- for lbl = 1:length(unique_labels)
- fprintf(' Class %d: %d segment\n', unique_labels(lbl), sum(y == unique_labels(lbl)));
- end
- % =====================================================================
- % 4. SINIFLANDIRMA: LOSO CV (Birincil Degerlendirme)
- % =====================================================================
- fprintf('\n');
- fprintf('==========================================================\n');
- fprintf(' LOSO Cross-Validation (Birincil Metrik)\n');
- fprintf('==========================================================\n');
- [loso_acc, loso_cm, loso_subj_results, loso_feat_info] = ...
- loso_cv_inca(X, y, subject_ids);
- % =====================================================================
- % 5. SINIFLANDIRMA: 10-Fold Subject-Aware CV (Tamamlayici Metrik)
- % =====================================================================
- fprintf('\n');
- fprintf('==========================================================\n');
- fprintf(' 10-Fold Subject-Aware Cross-Validation\n');
- fprintf('==========================================================\n');
- [tenfold_acc, tenfold_cm, tenfold_results, tenfold_feat_info] = ...
- ten_cv_inca(X, y, subject_ids);
- % =====================================================================
- % 6. DLOB-TABANLI XAI SONUCLARI
- % =====================================================================
- fprintf('\n');
- fprintf('==========================================================\n');
- fprintf(' DLob-tabanli Aciklanabilir Sonuclar (XAI)\n');
- fprintf('==========================================================\n');
- % DLob Look-Up Table (LUT): 32 kanal -> 14 DLob sembol
- % Emotiv Flex 32-kanal montaji icin kanal-sembol eslestirmesi
- % Semboller: FL, FR, CL, CR, TL, TR, PL, PR, OL, OR, Cz, Oz, Pz, Fz
- channel_names = {'Fp1','Fp2','F3','F4','F7','F8','FC1','FC2', ...
- 'FC5','FC6','C3','C4','T7','T8','CP1','CP2', ...
- 'CP5','CP6','P3','P4','P7','P8','PO3','PO4', ...
- 'O1','O2','Fz','Cz','Pz','Oz','AF3','AF4'};
- % LUT: Her kanal icin DLob sembol indeksi (1-14)
- % 1:FL, 2:FR, 3:CL, 4:CR, 5:TL, 6:TR, 7:PL, 8:PR,
- % 9:OL, 10:OR, 11:Cz, 12:Oz, 13:Pz, 14:Fz
- dlob_symbols = {'FL','FR','CL','CR','TL','TR','PL','PR', ...
- 'OL','OR','Cz','Oz','Pz','Fz'};
- % Kanal -> DLob sembol eslestirmesi
- % Fp1->FL, Fp2->FR, F3->FL, F4->FR, F7->FL, F8->FR, FC1->CL, FC2->CR
- % FC5->CL, FC6->CR, C3->CL, C4->CR, T7->TL, T8->TR, CP1->PL, CP2->PR
- % CP5->PL, CP6->PR, P3->PL, P4->PR, P7->PL, P8->PR, PO3->OL, PO4->OR
- % O1->OL, O2->OR, Fz->Fz, Cz->Cz, Pz->Pz, Oz->Oz, AF3->FL, AF4->FR
- LUT = [1, 2, 1, 2, 1, 2, 3, 4, ... % Fp1,Fp2,F3,F4,F7,F8,FC1,FC2
- 3, 4, 3, 4, 5, 6, 7, 8, ... % FC5,FC6,C3,C4,T7,T8,CP1,CP2
- 7, 8, 7, 8, 7, 8, 9, 10, ... % CP5,CP6,P3,P4,P7,P8,PO3,PO4
- 9, 10, 14, 11, 13, 12, 1, 2]; % O1,O2,Fz,Cz,Pz,Oz,AF3,AF4
- num_channels = 32;
- % LOSO CV sonuclarindan secilen feature indekslerini topla
- % (tum fold'lardan ortak secilen feature'lari analiz et)
- all_selected_features = [];
- for i = 1:length(loso_feat_info)
- all_selected_features = [all_selected_features; ...
- loso_feat_info(i).feature_indices(:)];
- end
- % En sik secilen feature'lari bul
- [unique_feats, ~, ic] = unique(all_selected_features);
- feat_counts = accumarray(ic, 1);
- [~, sort_idx] = sort(feat_counts, 'descend');
- % En onemli feature'larin kanal bilgilerini cikar (Eq. 16-20)
- fprintf('\n--- Secilen Feature''larin Kanal Analizi ---\n');
- fprintf('Toplam benzersiz secilen feature: %d\n', length(unique_feats));
- % DLob cumlesi olustur
- DS = {};
- for k = 1:min(201, length(sort_idx)) % Makaleye gore 201 feature
- feat_idx = unique_feats(sort_idx(k));
- % Eq. 17: Satir kanali (1-indexed)
- chan1 = floor((feat_idx - 1) / num_channels) + 1;
- chan1 = mod(chan1 - 1, num_channels) + 1;
- % Eq. 18: Sutun kanali (1-indexed)
- chan2 = mod(feat_idx - 1, num_channels) + 1;
- % Eq. 19-20: DLob sembollerine donustur
- DS{end+1} = dlob_symbols{LUT(chan1)};
- DS{end+1} = dlob_symbols{LUT(chan2)};
- end
- % DLob cumlesi
- dlob_sentence = strjoin(DS, ' ');
- fprintf('\nDLob Cumlesi (ilk 50 sembol):\n');
- disp(strjoin(DS(1:min(50, length(DS))), ' '));
- % DLob histogram
- fprintf('\n--- DLob Sembol Histogrami ---\n');
- symbol_counts = zeros(1, length(dlob_symbols));
- for s = 1:length(DS)
- for sym = 1:length(dlob_symbols)
- if strcmp(DS{s}, dlob_symbols{sym})
- symbol_counts(sym) = symbol_counts(sym) + 1;
- break;
- end
- end
- end
- for sym = 1:length(dlob_symbols)
- if symbol_counts(sym) > 0
- fprintf(' %-4s: %d (%.2f%%)\n', dlob_symbols{sym}, ...
- symbol_counts(sym), symbol_counts(sym)/length(DS)*100);
- end
- end
- % Bilgi entropisi
- probs = symbol_counts / sum(symbol_counts);
- probs = probs(probs > 0); % Sifir olasiliklari cikar
- info_entropy = -sum(probs .* log2(probs));
- max_entropy = log2(length(dlob_symbols));
- complexity_ratio = info_entropy / max_entropy * 100;
- fprintf('\nBilgi Entropisi: %.4f bit\n', info_entropy);
- fprintf('Maksimum Entropi: %.4f bit (log2(%d))\n', max_entropy, length(dlob_symbols));
- fprintf('Karmasiklik Orani: %.2f%%\n', complexity_ratio);
- % Cortical connectome (transition table)
- fprintf('\n--- Cortical Connectome Transition Table ---\n');
- connectome = zeros(length(dlob_symbols));
- for s = 1:length(DS)-1
- from_idx = find(strcmp(dlob_symbols, DS{s}));
- to_idx = find(strcmp(dlob_symbols, DS{s+1}));
- if ~isempty(from_idx) && ~isempty(to_idx)
- connectome(from_idx, to_idx) = connectome(from_idx, to_idx) + 1;
- end
- end
- fprintf(' ');
- for sym = 1:length(dlob_symbols)
- fprintf('%-5s', dlob_symbols{sym});
- end
- fprintf('\n');
- for i = 1:length(dlob_symbols)
- fprintf('%-5s: ', dlob_symbols{i});
- for j = 1:length(dlob_symbols)
- fprintf('%-5d', connectome(i,j));
- end
- fprintf('\n');
- end
- % =====================================================================
- % 7. SONUC OZETI
- % =====================================================================
- fprintf('\n');
- fprintf('==========================================================\n');
- fprintf(' GENEL SONUC OZETI\n');
- fprintf('==========================================================\n');
- fprintf('LOSO CV Dogruluk (Birincil): %.2f%%\n', loso_acc);
- fprintf('10-Fold CV Dogruluk: %.2f%%\n', tenfold_acc);
- fprintf('DLob Bilgi Entropisi: %.4f bit\n', info_entropy);
- fprintf('DLob Karmasiklik Orani: %.2f%%\n', complexity_ratio);
- fprintf('==========================================================\n');
- % =====================================================================
- % 8. SONUCLARI KAYDET
- % =====================================================================
- results.loso_accuracy = loso_acc;
- results.loso_cm = loso_cm;
- results.loso_subject_results = loso_subj_results;
- results.loso_feature_info = loso_feat_info;
- results.tenfold_accuracy = tenfold_acc;
- results.tenfold_cm = tenfold_cm;
- results.tenfold_results = tenfold_results;
- results.tenfold_feature_info = tenfold_feat_info;
- results.dlob_sentence = dlob_sentence;
- results.dlob_histogram = symbol_counts;
- results.dlob_entropy = info_entropy;
- results.connectome = connectome;
- results.feature_matrix = X;
- results.labels = y;
- results.subject_ids = subject_ids;
- save('DiffPat_XFE_results.mat', 'results', '-v7.3');
- fprintf('\nSonuclar kaydedildi: DiffPat_XFE_results.mat\n');
- fprintf('==========================================================\n');
main.m at commit b00514d, under MIT · at the source
Overview
- Department of Digital Forensics Engineering, College of Technology, Firat University,Elazig, 23119 Türkiye
- Department of Pediatrics, Division of Pediatric Neurology, Fethi Sekin City Hospital, Elazig, 23280 Türkiye
- Department of Neurology, School of Medicine, Firat University,Elazig, Türkiye
- School of Business (Information System), University of Southern Queensland,Springfield, QLD 4350 Australia
- Department of Computer Engineering, Faculty of Engineering, Erzurum Technical University,Erzurum, Türkiye
- Vocational School of Technical Sciences, Firat University,Elazig, Türkiye
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
mhmtbygn/Mental_Perfomance_Classification
b00514df76e1e0fef4297c7234b0c8d3579fff7b, 7 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
5 files
- diffpat.m, MATLAB, 84 lines
- loso_cv_inca.m, MATLAB, 274 lines, 1 match
- main.m, MATLAB, 292 lines, 4 matches
- ten_cv_inca.m, MATLAB, 300 lines, 1 match
- README.md, Text, 138 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 4 scripts, each with its path and the digest of its content;
- 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1186/s12911-026-03591-1.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Funding: added Türkiye Bilimsel ve Teknolojik Araştırma Kurumu: 123E357
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 5 keywords, 3 MeSH terms, 47 references.
Cite
This paper
Ince, U., Kirik, S., Tasci, I., Barua, P. D., Baygin, M., Tasci, B., Dogan, S., & Tuncer, T. (2026). Different pattern: a new EEG-based method for mental performance detection. BMC medical informatics and decision making, 26(1), 290. https://
BibTeX
@article{ince2026differe
author = {Ince, Ugur and Kirik, Serkan and Tasci, Irem and Barua, Prabal Datta and Baygin, Mehmet and Tasci, Burak and Dogan, Sengul and Tuncer, Turker},
title = {{Different pattern: a new EEG-based method for mental performance detection}},
journal = {BMC medical informatics and decision making},
year = {2026},
month = may,
volume = {26},
number = {1},
pages = {290},
publisher = {BMC},
issn = {1472-6947},
doi = {10.1186/
url = {https://
pmid = {42216207},
pmcid = {PMC13440034}
}
RIS
TY - JOUR
AU - Ince, Ugur
AU - Kirik, Serkan
AU - Tasci, Irem
AU - Barua, Prabal Datta
AU - Baygin, Mehmet
AU - Tasci, Burak
AU - Dogan, Sengul
AU - Tuncer, Turker
TI - Different pattern: a new EEG-based method for mental performance detection
T2 - BMC medical informatics and decision making
J2 - BMC Med Inform Decis Mak
PY - 2026
DA - 2026/
VL - 26
IS - 1
SP - 290
SN - 1472-6947
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Different pattern: a new EEG-based method for mental performance detection",
"container-title": "BMC medical informatics and decision making",
"author": [
{
"family": "Ince",
"given": "Ugur"
},
{
"family": "Kirik",
"given": "Serkan"
},
{
"family": "Tasci",
"given": "Irem"
},
{
"family": "Barua",
"given": "Prabal Datta"
},
{
"family": "Baygin",
"given": "Mehmet"
},
{
"family": "Tasci",
"given": "Burak"
},
{
"family": "Dogan",
"given": "Sengul"
},
{
"family": "Tuncer",
"given": "Turker"
}
],
"container-title-short":
"volume": "26",
"issue": "1",
"page": "290",
"DOI": "10.1186/
"PMID": "42216207",
"PMCID": "PMC13440034",
"ISSN": "1472-6947",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
29
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1007/s10548-026-01214-6
- Operational Transformer: An investigation of epilepsy detection.Journal: Brain topographyIn common: methods / tools, EEG, 4 references
- [2] doi:10.3390/diagnostics16050789
- TensorCSBP: A Tensor Center-Symmetric Feature Extractor for EEG Odor Detection.Journal: Diagnostics (Basel, Switzerland)In common: methods / tools, EEG, 4 references
- [3] doi:10.3389/fnhum.2026.1895016 [code]
- A confidence-gated source selection strategy for cross-session transfer in brain-computer interfaces.Journal: Frontiers in human neuroscienceIn common: methods / tools, EEG, 3 references
- [4] doi:10.1016/j.neuroimage.2026.122171 [code]
- A conserved node degree-based backbone and flexible hub organization of brain connectome during naturalistic movie watching.Journal: NeuroImageIn common: Statistics and Machine Learning Toolbox, methods / tools, 3 references
- [5] doi:10.7554/elife.108017 [code]
- Visual working memory guides attention rhythmically in humans.Journal: eLifeIn common: Statistics and Machine Learning Toolbox, 3 references
- [6] doi:10.1371/journal.pone.0351872 [code]
- Decoding visual object recognition from EEG signals.Journal: PloS oneIn common: EEG, 3 references
- [7] doi:10.1038/s41598-026-41821-8
- Quantum inspired feature engineering for explainable EEG signal classification.Journal: Scientific reportsIn common: methods / tools, EEG, 2 references
- [8] doi:10.1038/s41598-026-56070-y [code]
- SSDLabeler: realistic semi-synthetic data generation for multi-label artifact classification in EEG.Journal: Scientific reportsIn common: Statistics and Machine Learning Toolbox, EEG, 2 references
- [9] doi:10.3390/s26113410
- An Arduino-Based, Portable Prototype for the Recording and Analysis of EEG Signals to Support Self-Detection and Self-Monitoring of Stress.Journal: Sensors (Basel, Switzerland)In common: methods / tools, EEG, 2 references
- [10] doi:10.3390/s26134045
- Brain Signal for Secure EEG Biometric Authentication: A Comprehensive Survey.Journal: Sensors (Basel, Switzerland)In common: methods / tools, EEG, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 4 scripts, and 6 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:1ff022544b9891e2…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
