Publicación:
Aplicación de algoritmos de aprendizaje profundo a señales bioeléctricas para la identificación de segmentos de interés en el estudio de la epilepsia

dc.contributor.advisorRivera Estrada, Luis Alberto
dc.contributor.advisorEsquit Hernández, Carlos
dc.contributor.authorSánchez Castañeda, Santiago
dc.date.accessioned2026-04-23T22:31:44Z
dc.date.issued2025
dc.descriptionFormato PDF digital — 67 páginas — incluye gráficos, tablas y referencias bibliográficas.
dc.description.abstractEste trabajo presenta el diseño y evaluación de un sistema basado en aprendizaje profundo para clasificar ventanas de EEG multi-paciente de la base Temple University Hospital EEG Corpus (TUSZ) como ictales o no ictales. Se implementó un pipeline en Python que incluye selección de canales, montaje, filtrado, remuestreo, segmentación en ventanas, balanceo de clases y extracción de características estadísticas y espectrales. Sobre este flujo se entrenaron tres arquitecturas: una red convolucional temporal (TCN), un modelo híbrido CNN+RNN con atención y un Transformer temporal, utilizando TensorFlow y PyTorch, con particiones entre pacientes y métricas estándar de clasificación. Los resultados muestran que TCN e híbrida alcanzan el mejor compromiso entre desempeño y costo computacional en un escenario fuertemente desbalanceado, mientras que el Transformer presenta mayor complejidad y menor precisión efectiva. Se cuantificó además el impacto del hardware (PC de laboratorio, HPC e instancia en la nube) y de las optimizaciones del pipeline sobre los tiempos de entrenamiento. Finalmente, los modelos se integraron en la herramienta existente mediante una API y clientes en MATLAB y Python, habilitando la solicitud de predicciones sobre registros EDF y su visualización conjunta con anotaciones clínicas.spa
dc.description.abstractThe following work presents the design and evaluation of a deep learning based system to classify multi-patient EEG windows from the Temple University Hospital EEG Corpus (TUSZ) as ictal or non-ictal. A Python pipeline was implemented, including channel selection, montage, ltering, resampling, window segmentation, class balancing, and extraction of statistical and spectral features. On top of this ow, three architectures were trained: a Temporal Convolutional Network (TCN), a hybrid CNN+RNN model with attention, and a temporal Transformer, using TensorFlow and PyTorch, with cross-patient partitions and standard classi cation metrics. The results show that the TCN and the hybrid model achieve the best trade-o between performance and computational cost in a highly imbalanced scenario, while the Transformer exhibits higher complexity and lower e ective accuracy. The impact of hardware (laboratory PC, HPC cluster, and cloud instance) and pipeline optimizations on training time was also quanti ed. Finally, the models were integrated into the existing tool through an API and MATLAB and Python clients, enabling prediction requests on EDF recordings and their joint visualization with clinical annotations.eng
dc.description.degreelevelPregrado
dc.description.degreenameLicenciado en Ingeniería Mecatrónica
dc.format.extent67 p.
dc.format.mimetypeapplication/pdf
dc.identifier.urihttps://repositorio.uvg.edu.gt/handle/123456789/6387
dc.language.isospa
dc.publisherUniversidad del Valle de Guatemala
dc.publisher.branchCampus Central
dc.publisher.facultyFacultad de Ingeniería
dc.publisher.placeGuatemala
dc.publisher.programLicenciatura en Ingeniería Mecatrónica
dc.relation.referencesR. S. Fisher, C. Acevedo, A. Arzimanoglou, A. Bogacz, J. H. Cross, C. E. Elger, J. Engel, L. Forsgren, J. A. French, M. Glynn, D. C. Hesdor er, B. I. Lee, G. W. Mathern, S. L. Moshé, E. Perucca, I. E. Sche er, T. Tomson, M. Watanabe y S. Wiebe, De nición clínica práctica de la epilepsia, Epilepsia , vol. 55, págs. 475-482, 4 2014, issn : 15281167. doi : 10.1111/epi.12550 .
dc.relation.referencesJ. Carlos, L. Girón, A. Antonio, J. Magaña, O. Gerardo, R. Samayoa, J. Manuel y P. Córdova, Epilepsia Enfoque Multidisciplinario , 2. a ed. 2014, isbn : 9789929404618. dirección: www.humanagt.org .
dc.relation.referencesWorld Health Assembly, Global burden of epilepsy and the need for coordinated action at the country level to address its health, social and public knowledge impli- cations: report by the Secretariat, n. o 68, 2015. dirección: https://iris.who.int/ handle/10665/252840 .
dc.relation.referencesA. Ghaiyoumi, Epilepsy , feb. de 2024. dirección: https : / / www . who . int / news - room/fact-sheets/detail/epilepsy .
dc.relation.referencesJ. E. B. del Busto, La epilepsia, un problema de salud a escala mundial Epilepsy, a global health problem, Revista Habanera de Ciencias Médicas , págs. 660-663, oct. de 2014, issn : 1729-519X.
dc.relation.referencesA. Craik, Y. He y J. L. Contreras-Vidal, Deep learning for electroencephalogram (EEG) classi cation tasks: A review , 2019. doi : 10.1088/1741-2552/ab0ab5 .
dc.relation.referencesN. Ke, T. Lin, Z. Lin, X.-H. Zhou y T. Ji, Convolutional Transformer Networks for Epileptic Seizure Detection, en Proceedings of the 31st ACM International Confe- rence on Information & Knowledge Management , ép. CIKM '22, Atlanta, GA, USA: Association for Computing Machinery, 2022, págs. 4109-4113, isbn : 9781450392365. doi : 10.1145/3511808.3557568 . dirección: https://doi.org/10.1145/3511808. 3557568 .
dc.relation.referencesM. Gunavathi, S. Sudha, S. Oviyaajanani y V. Girija, Detecting the Seizure Conditions of Humans with EEG Dataset using Deep Belief Network Algorithm . dirección: https: //doi.org/10.56155/978-81-955020-9-7-23 .
dc.relation.referencesM. J. Angulo, Análisis y Reconocimiento de Patrones de Señales Biomédicas de Pa- cientes con Epilepsia, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2020.
dc.relation.referencesM. F. Pineda, Diseño e Implementación de una Base de Datos de Señales Biomédicas de Pacientes con Epilepsia, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2020.
dc.relation.referencesJ. D. Manrique, Herramienta de Software con una Base de Datos Integrada para el Estudio de la Epilepsia-Fase II, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2021.
dc.relation.referencesD. A. Vela, Automatización del Proceso de Anotación de Señales EEG de Pacien- tes con Epilepsia por Medio de Técnicas de Aprendizaje Automático, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2021.
dc.relation.referencesC. Lemus, Análisis y anotación de señales bioeléctricas de pacientes con epilepsia utilizando técnicas de aprendizaje automático supervisado y no supervisado, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2022.
dc.relation.referencesS. J. Silvestre, Diseño e implementación de un repositorio de acceso público de datos y señales relacionados al estudio de la epilepsia, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2022.
dc.relation.referencesK. V. Caceros, Mejora y expansión de un repositorio de datos y señales biomédicas de acceso público, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2023.
dc.relation.referencesD. A. Méndez, Extensión, validación y migración de una herramienta de software para el estudio de la epilepsia para su uso en el Centro de Epilepsia y Neurocirugía Funcional (HUMANA), Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2023.
dc.relation.referencesC. I. Patzán, Aplicación sistemática de algoritmos de aprendizaje automático para el estudio de la epilepsia y la detección de segmentos de interés en señales bioeléctricas, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2023.
dc.relation.referencesJ. A. Pérez, Aplicación de algoritmos de aprendizaje automático, con énfasis en apren- dizaje supervisado, para la identi cación y categorización de segmentos de interés en señales bioeléctricas para el estudio de la epilepsia - Fase V, Trabajo de graduación de licenciatura, Universidad del Valle, 2024.
dc.relation.referencesD. A. Ixcayau, Aplicación de algoritmos de aprendizaje automático, con énfasis en aprendizaje no supervisado, para la identicación y categorización de segmentos de interés en señales bioeléctricas para el estudio de la epilepsia - Fase V, Trabajo de graduación de licenciatura, Universidad del Valle de Guatemala, 2024.
dc.relation.referencesEpilepsia: Estudio, Tratamiento y Cirugía desde el 2006 . dirección: https : //humanagt.org/epilepsia/#:~:text=VIDEO%2DELECTROENCEFALOGRAMA .
dc.relation.referencesE. C. Wirrell, R. Nabbout, I. E. Sche er, T. Alsaadi, A. Bogacz, J. A. French, E. Hirsch, S. Jain, S. Kaneko, K. Riney, P. Samia, O. C. Snead, E. Somerville, N. Specchio, E. Trinka, S. M. Zuberi, S. Balestrini, S. Wiebe, J. H. Cross, E. Perucca, S. L. Moshé y P. Tinuper, Methodology for classi cation and de nition of epilepsy syndromes with list of syndromes: Report of the ILAE Task Force on Nosology and De nitions, Epilepsia , vol. 63, págs. 1333-1348, 6 jun. de 2022, issn : 0013-9580. doi : 10.1111/epi.17237 .
dc.relation.referencesR. S. Fisher, J. H. Cross, J. A. French, N. Higurashi, E. Hirsch, F. E. Jansen, L. Lagae, S. L. Moshé, J. Peltola, E. R. Perez, I. E. Sche er, A. Schulze- Bonhage, E. Somerville, M. Sperling, E. M. Yacubian y S. M. Zuberi, Operational classi cation of seizure types by the International League Against Epilepsy: Position Paper of the ILAE Commission for Classi cation and Terminology, Epilepsia , vol. 58, págs. 522-530, 4 abr. de 2017, issn : 0013-9580. doi : 10.1111/epi.13670 .
dc.relation.referencesR. S. Fisher, J. H. Cross, C. D'Souza, J. A. French, S. R. Haut, N. Higurashi, E. Hirsch, F. E. Jansen, L. Lagae, S. L. Moshé, J. Peltola, E. R. Perez, I. E. Sche er, A. Schulze- Bonhage, E. Somerville, M. Sperling, E. M. Yacubian y S. M. Zuberi, Instruction manual for the ILAE 2017 operational classi cation of seizure types, Epilepsia , vol. 58, págs. 531-542, 4 abr. de 2017, issn : 0013-9580. doi : 10.1111/epi.13671 .
dc.relation.referencesS. U. Fredes, A. D. Firoozabadi, P. Adasme, D. Zabala-Blanco, P. P. Játiva y C. Azurdia-Meza, Enhanced Epileptic Seizure Detection through Wavelet-Based Analy- sis of EEG Signal Processing, Applied Sciences (Switzerland) , vol. 14, 13 jul. de 2024, issn : 20763417. doi : 10 . 3390 / app14135783 . dirección: https : / / www . mdpi . com / 2076-3417/14/13/5783 .
dc.relation.referencesR. Madou, M. A. Haberman, E. M. Spinelli y A. C. Ceriani, Señales bioeléctricas del cuerpo: de la ingeniería electrónica a la performance artística, ½Cuerpo, Máquina, Acción! , vol. 4, 2020.
dc.relation.references¿Qué es un electroencefalograma? Clínica Universiadad de Navarra , direc- ción: www . cun . es / enfermedades - tratamientos / pruebas - diagnosticas / electroencefalograma .
dc.relation.referencesP. Boonyakitanont, A. Lek-uthai, K. Chomtho y J. Songsiri, A review of feature ex- traction and performance evaluation in epileptic seizure detection using EEG , 2019. arXiv: 1908.00492 [eess.SP] . dirección: https://arxiv.org/abs/1908.00492 .
dc.relation.referencesM. X. Cohen, Analyzing neural time series data: theory and practice . MIT press, 2014.
dc.relation.referencesI. Mezi¢, Analysis of uid ows via spectral properties of the koopman operator , ene. de 2013. doi : 10.1146/annurev-fluid-011212-140652 .
dc.relation.referencesM. O. Williams, I. G. Kevrekidis y C. W. Rowley, A Data-Driven Approximation of the Koopman Operator: Extending Dynamic Mode Decomposition, ago. de 2014. doi : 10.1007/s00332-015-9258-5 . dirección: http://arxiv.org/abs/1408.4408% 20http://dx.doi.org/10.1007/s00332-015-9258-5 .
dc.relation.referencesMauroy, I. Mezi¢ e Y. Susuki, Koopman Operator in Systems and Control: Concepts, Methodologies, and Applications . Springer International Publishing, 2020.
dc.relation.referencesI. Goodfellow, Y. Bengio y A. Courville, Deep Learning . MIT Press, 2016. dirección: http://www.deeplearningbook.org .
dc.relation.referencesC. M. Bishop, Pattern Recognition and Machine Learning . Springer New York, 2006. dirección: https://www.microsoft.com/en- us/research/wp- content/uploads/ 2006/01/Bishop-Pattern-Recognition-and-Machine-Learning-2006.pdf .
dc.relation.referencesT.-Y. Lin, P. Goyal, R. Girshick, K. He y P. Dollár, Focal loss for dense object detection, en Proceedings of the IEEE international conference on computer vision , 2017, págs. 2980-2988.
dc.relation.referencesS. S. M. Salehi, D. Erdogmus y A. Gholipour, Tversky loss function for image seg- mentation using 3D fully convolutional deep networks, en International workshop on machine learning in medical imaging , Springer, 2017, págs. 379-387.
dc.relation.referencesD. P. Kingma y J. Ba, Adam: A Method for Stochastic Optimization , 2015. arXiv: 1412.6980 [cs.LG] . dirección: https://arxiv.org/abs/1412.6980 .
dc.relation.referencesI. Loshchilov y F. Hutter, Decoupled Weight Decay Regularization , 2019. arXiv: 1711. 05101 [cs.LG] . dirección: https://arxiv.org/abs/1711.05101 .
dc.relation.referencesD. Hendrycks y K. Gimpel, Gaussian error linear units (gelus), arXiv preprint ar- Xiv:1606.08415 , 2016.
dc.relation.referencesR. T. Schirrmeister, J. T. Springenberg, L. D. J. Fiederer, M. Glasstetter, K. Eg- gensperger, M. Tangermann, F. Hutter, W. Burgard y T. Ball, Deep learning with convolutional neural networks for EEG decoding and visualization, Human brain mapping , vol. 38, n. o 11, págs. 5391-5420, 2017.
dc.relation.referencesS. Hochreiter y J. Schmidhuber, Long Short-Term Memory, Neural Computation , vol. 9, págs. 1735-1780, 8 nov. de 1997, issn : 08997667. doi : 10.1162/neco.1997.9. 8.1735 .
dc.relation.referencesK. Cho, B. Van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk e Y. Bengio, Learning phrase representations using RNN encoder-decoder for statistical machine translation, arXiv preprint arXiv:1406.1078 , 2014.
dc.relation.referencesD. Bahdanau, K. Cho e Y. Bengio, Neural machine translation by jointly learning to align and translate, arXiv preprint arXiv:1409.0473 , 2014.
dc.relation.referencesA. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, . Kaiser e I. Polosukhin, Attention is all you need, Advances in neural information processing systems , vol. 30, 2017.
dc.relation.referencesT. Saito y M. Rehmsmeier, The precision-recall plot is more informative than the ROC plot when evaluating binary classi cators on imbalanced datasets, PLoS ONE , vol. 10, 3 mar. de 2015, issn : 19326203. doi : 10.1371/journal.pone.0118432 .
dc.relation.referencesML and DL Explained. Understanding the Precision-Recall Curve (and Why It Mat- ters). Medium. Consultado el 17 de noviembre de 2025. dirección: https://medium. com/@ml_dl_explained/understanding-the-precision-recall-curve-and-why- it-matters-72297cbdbd2b .
dc.relation.referencesT. Fawcett, An introduction to ROC analysis, Pattern Recognition Letters , vol. 27, págs. 861-874, 8 jun. de 2006, issn : 01678655. doi : 10.1016/j.patrec.2005.10.010 .
dc.relation.referencesN. Van Otten. ROC And AUC Curves In Machine Learning Made Simple & How To Tutorial In Python. Spot Intelligence. Consultado el 17 de noviembre de 2025. dirección: https : / / spotintelligence . com / 2024 / 06 / 17 / roc - auc - curve - in - machine-learning/ .
dc.relation.referencesA. Krizhevsky, I. Sutskever y G. E. Hinton, Imagenet classi cation with deep convo- lutional neural networks, Advances in neural information processing systems , vol. 25, 2012.
dc.relation.referencesS. Chetlur, C. Woolley, P. Vandermersch, J. Cohen, J. Tran, B. Catanzaro y E. Shelha- mer, cudnn: E cient primitives for deep learning, arXiv preprint arXiv:1410.0759 , 2014.
dc.relation.referencesP. Micikevicius, S. Narang, J. Alben, G. Diamos, E. Elsen, D. Garcia, B. Ginsburg, M. Houston, O. Kuchaiev, G. Venkatesh et al., Mixed precision training, arXiv preprint arXiv:1710.03740 , 2017.
dc.relation.referencesCuda C Programming Guide, NVIDIA, July , vol. 29, n. o 31, pág. 6, 2013.
dc.relation.referencesA. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga et al., Pytorch: An imperative style, high-performance deep learning library, Advances in neural information processing systems , vol. 32, 2019.
dc.relation.referencesM. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. S. Corrado, A. Davis, J. Dean, M. Devin et al., Tensor ow: Large-scale machine learning on heterogeneous distributed systems, arXiv preprint arXiv:1603.04467 , 2016.
dc.relation.referencesElectroencephalography (EEG) Resources . dirección: https : / / isip . piconepress . com/projects/nedc/html/tuh_eeg/ .
dc.relation.referencesS. Ferrell, V. Mathew, M. Re ord, V. Tchiong, T. Ahsan, I. Obeid y J. Picone, Electrode Location and Channel Labels , 2022.
dc.relation.referencesS. Rahman, S. Ferrell, I. O. Tarek Elseify y J. P. D. Ochal, Annotation Guidelines , jul. de 2020.
dc.relation.referencesCHB-MIT Scalp EEG Database , jun. de 2010. doi : https://doi.org/10.13026/ C2K01R . dirección: https://physionet.org/content/chbmit/1.0.0/ .
dc.relation.referencesI. Obeid y J. Picone, The temple university hospital EEG data corpus, Frontiers in Neuroscience , vol. 10, MAY 2016, issn : 1662453X. doi : 10.3389/fnins.2016.00196 .
dc.relation.referencesB. Kemp y J. Olivan, European data format `plus'(EDF+), an EDF alike standard format for the exchange of physiological data, Clinical neurophysiology , vol. 114, n. o 9, págs. 1755-1761, 2003.
dc.relation.referencesReading raw data . dirección: https://mne.tools/stable/api/reading_raw_data. html .
dc.relation.referencesW. AL-Salman, Y. Li y P. Wen, K-complexes Detection in EEG Signals using Frac- tal and Frequency Features Coupled with an Ensemble Classi cation Model, Neu- roscience , vol. 422, págs. 119-133, dic. de 2019, issn : 18737544. doi : 10 . 1016 / j . neuroscience.2019.10.034 .
dc.relation.referencesTFRecord and tf.train.Example . dirección: https : / / www . tensorflow . org / tutorials/load_data/tfrecord .
dc.relation.referencesBetter performance with the tf.data API . dirección: https://www.tensorflow.org/ guide/data_performance .
dc.relation.referencesXLA . dirección: https://openxla.org/xla .
dc.relation.referencesTorch.utils.data . dirección: https://docs.pytorch.org/docs/stable/data.html .
dc.relation.referencesIntroduction to torch.compile . dirección: https://docs.pytorch.org/tutorials/ intermediate/torch_compile_tutorial.html .
dc.relation.referencesB. Hjorth, EEG analysis based on time domain properties, Electroencephalography and clinical neurophysiology , vol. 29, n. o 3, págs. 306-310, 1970.
dc.relation.referencesR. T. Fielding, Architectural styles and the design of network-based software architec- tures . University of California, Irvine, 2000.
dc.rights.accessrightsinfo:eu-repo/semantics/openAccess
dc.rights.coarhttp://purl.org/coar/access_right/c_abf2
dc.rights.licenseAtribución-NoComercial-SinDerivadas 4.0 Internacional (CC BY-NC-ND 4.0)
dc.rights.urihttps://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subject.armarcSignal processing
dc.subject.armarcElectroencefalografía
dc.subject.armarcDeep learning (Machine learning)
dc.subject.armarcProcesamiento digital de señales
dc.subject.armarcElectroencephalography -- Guatemala
dc.subject.ddc000 - Ciencias de la computación, información y obras generales
dc.subject.ocde2. Ingeniería y Tecnología::2K. Otras Ingenierías y Tecnologías
dc.subject.odsODS 3: Salud y bienestar. Garantizar una vida sana y promover el bienestar de todos a todas las edades
dc.subject.proposalEpilepsiaspa
dc.subject.proposalEEGspa
dc.subject.proposalAprendizaje Profundospa
dc.subject.proposalTUSZspa
dc.subject.proposalTCNspa
dc.subject.proposalCNN-RNNspa
dc.subject.proposalTransformerspa
dc.subject.proposalDetección de Crisisspa
dc.subject.proposalCómputo de Alto Rendimientospa
dc.subject.proposalAPIspa
dc.titleAplicación de algoritmos de aprendizaje profundo a señales bioeléctricas para la identificación de segmentos de interés en el estudio de la epilepsiaspa
dc.title.translatedApplication of deep learning algorithms to bioelectrical signals for the identification of segments of interest in epilepsy research
dc.typeTrabajo de grado - Pregrado
dc.type.coarhttp://purl.org/coar/resource_type/c_7a1f
dc.type.coarversionhttp://purl.org/coar/version/c_970fb48d4fbd8a85
dc.type.contentText
dc.type.driverinfo:eu-repo/semantics/bachelorThesis
dc.type.versioninfo:eu-repo/semantics/publishedVersion
dc.type.visibilityPublic Thesis
dspace.entity.typePublication

Archivos

Bloque original

Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
Santiago Sánchez Castañeda.pdf
Tamaño:
9.21 MB
Formato:
Adobe Portable Document Format

Bloque de licencias

Mostrando 1 - 1 de 1
Cargando...
Miniatura
Nombre:
license.txt
Tamaño:
14.49 KB
Formato:
Item-specific license agreed upon to submission
Descripción: