[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-122830-en":3,"doc-seo-122830-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},122830,4810365810221,"Aurora","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","Machine Learning-Based Classiﬁcation to Disentangle EEG Responses to TMS and Auditory Input - Proof-of-concept study","Transcranial magnetic stimulation (TMS) combined with electroencephalography (EEG) enables investigation of cortical physiology through transcranial-evoked potentials (TEPs), yet these signals can be contaminated by auditory evoked potentials (AEPs) generated by the TMS click. Common statistical approaches may struggle when AEP suppression is suboptimal. Using machine-learning algorithms, the study compares masked TEPs, AEPs, and non-masked TEPs in healthy participants, showing reliable single-subject classification and lower group-level performance under cross-subject training and multi-condition comparisons, with improved accuracy for averaged versus single-trial TEPs.","brain sciences  \nArticle  \nMachine Learning-Based Classiﬁcation to Disentangle EEG Responses to TMS and Auditory Input  \nAndrea Cristofari 1, Marianna De Santis 2, Stefano Lucidi 2, John Rothwell 3, Elias P. Casula 4 and Lorenzo Rocchi 3,5, *  \nCitation: Cristofari, A.; De Santis, M.; Lucidi, S.; Rothwell, J.; Casula, E.P.; Rocchi, L. Machine Learning-Based Classiﬁcation to Disentangle EEG Responses to TMS and Auditory Input. Brain Sci. 2023, 13, 866 . [https://doi.org/10.3390/](https://doi.org/10.3390/)[ ](https://doi.org/10.3390/)brainsci13060866  \nAcademic Editor: David Papo  \nReceived: 7 May 2023  \nRevised: 21 May 2023  \nAccepted: 25 May 2023  \nPublished: 27 May 2023  \nCopyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ([https://](https://)[ ](https://)[creativecommons.org/licenses/by/](creativecommons.org/licenses/by/)[ ](creativecommons.org/licenses/by/)[4.0/](4.0/)) .  \n1 Department of Civil Engineering and Computer Science Engineering,“Tor Vergata” University of Rome, 00133 Rome, Italy; [andrea.cristofari@uniroma2.it](andrea.cristofari@uniroma2.it)  \n2 Department of Computer, Automatic and Management Engineering,“Sapienza” University of Rome, 00185 Rome, Italy; [marianna.desantis@uniroma1.it](marianna.desantis@uniroma1.it) (M.D.S.); [lucidi@diag.uniroma1.it](lucidi@diag.uniroma1.it) (S.L.)  \n3 Department of Clinical and Movement Neurosciences, UCL Queen Square Institute of Neurology, University College London, London WC1N 3BG, UK; [j.rothwell@ucl.ac.uk](j.rothwell@ucl.ac.uk)  \n4 Department of System Medicine,“Tor Vergata” University of Rome, 00133 Rome, Italy; [elias.casula@gmail.com](elias.casula@gmail.com)  \n5 Department of Medical Sciences and Public Health, University of Cagliari, Cittadella Universitaria di Monserrato, 09042 Cagliari, Italy  \n* Correspondence: [l.rocchi@ucl.ac.uk](l.rocchi@ucl.ac.uk)  \nAbstract: The combination of transcranial magnetic stimulation (TMS) and electroencephalography (EEG) offers an unparalleled opportunity to study cortical physiology by characterizing brain electrical responses to external perturbation, called transcranial-evoked potentials (TEPs) . Although these reﬂect cortical post-synaptic potentials, they can be contaminated by auditory evoked potentials (AEPs) due to the TMS click, which partly show a similar spatial and temporal scalp distribution. Therefore, TEPs and AEPs can be difﬁcult to disentangle by common statistical methods, especially in conditions of suboptimal AEP suppression. In this work, we explored the ability of machine learning algorithms to distinguish TEPs recorded with masking of the TMS click, AEPs and non-masked TEPs in a sample of healthy subjects. Overall, our classiﬁer provided reliable results at the singlesubject level, even for signals where differences were not shown in previous works. Classiﬁcation accuracy (CA) was lower at the group level, when different subjects were used for training and test phases, and when three stimulation conditions instead of two were compared. Lastly, CA was higher when average, rather than single-trial TEPs, were used. In conclusion, this proof-of-concept study proposes machine learning as a promising tool to separate pure TEPs from those contaminated by sensory input.  \nKeywords: transcranial magnetic stimulation; electroencephalography; TMS-EEG; evoked potentials; machine learning; neural networks  \n1. Introduction  \nThe combination of transcranial magnetic stimulation (TMS) and electroencephalography (EEG) has become an increasingly used approach to assess cortical physiology in healthy humans [1–4] and patients affected by disorders of the central nervous system [5–7] . There is considerable evidence to support the notion that EEG signals following TMS, either measured as transcranial-evoked potentials (TEPs) or oscillations, mostly reﬂect the summation of excitat","cbCaibO3IOyfuLCo","https://ap.wps.com/l/cbCaibO3IOyfuLCo","pdf",5615411,1,11,"English","en",105,"# Introduction\n## TEPs and AEPs contamination in TMS-EEG\n# Methods (as described in abstract)\n## Machine learning classification across stimulation conditions\n# Results (as described in abstract)\n## Single-subject reliability vs group-level accuracy\n# Conclusion (as described in abstract)\n## Separating pure TEPs from sensory-contaminated responses","[{\"question\":\"Why is it difficult to disentangle TEPs and AEPs in TMS-EEG data?\",\"answer\":\"TMS produces a click that can elicit auditory evoked potentials (AEPs) with partly similar spatial and temporal scalp distributions. When auditory suppression is not optimal, common statistical methods may not separate TEPs and AEPs well.\"},{\"question\":\"What role does machine learning play in the study?\",\"answer\":\"Machine learning algorithms are used to distinguish TEPs recorded with masking of the TMS click, AEPs, and non-masked TEPs. The work evaluates how well classification performs under different conditions.\"},{\"question\":\"How do classification results differ between single-subject and group analyses?\",\"answer\":\"The classifier provides reliable results at the single-subject level. Group-level accuracy is lower when training and test involve different subjects and when comparing three stimulation conditions instead of two.\"}]","Machine Learning-Based Classiﬁcation to Disentangle EEG Responses to TMS and Auditory Input - Proof-of-concept study | PDF",1785813120,28,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"machine-learning-based-classification-to-disentangle-eeg-responses-to-tms-and-auditory-input-proof-of-concept-study","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/machine-learning-based-classification-to-disentangle-eeg-responses-to-tms-and-auditory-input-proof-of-concept-study/122830/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-05","2026-08-04",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"Why is it difficult to disentangle TEPs and AEPs in TMS-EEG data?","Question",{"text":76,"@type":77},"TMS produces a click that can elicit auditory evoked potentials (AEPs) with partly similar spatial and temporal scalp distributions. When auditory suppression is not optimal, common statistical methods may not separate TEPs and AEPs well.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"What role does machine learning play in the study?",{"text":81,"@type":77},"Machine learning algorithms are used to distinguish TEPs recorded with masking of the TMS click, AEPs, and non-masked TEPs. The work evaluates how well classification performs under different conditions.",{"name":83,"@type":74,"acceptedAnswer":84},"How do classification results differ between single-subject and group analyses?",{"text":85,"@type":77},"The classifier provides reliable results at the single-subject level. Group-level accuracy is lower when training and test involve different subjects and when comparing three stimulation conditions instead of two.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,98,102,106,111,116,121,124,129,132,136],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":107,"doc_module":4,"doc_module_name":46,"category_name":108,"show_sort_weight":109,"slug":110},5,"Comic",60,"comic",{"id":112,"doc_module":4,"doc_module_name":46,"category_name":113,"show_sort_weight":114,"slug":115},6,"Technology",50,"technology",{"id":117,"doc_module":4,"doc_module_name":46,"category_name":118,"show_sort_weight":119,"slug":120},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":122,"slug":123},30,"research-report",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":46,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":137,"doc_module":4,"doc_module_name":46,"category_name":138,"show_sort_weight":107,"slug":139},19,"General","general"]