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.advisor | Rivera Estrada, Luis Alberto | |
| dc.contributor.advisor | Esquit Hernández, Carlos | |
| dc.contributor.author | Sánchez Castañeda, Santiago | |
| dc.date.accessioned | 2026-04-23T22:31:44Z | |
| dc.date.issued | 2025 | |
| dc.description | Formato PDF digital — 67 páginas — incluye gráficos, tablas y referencias bibliográficas. | |
| dc.description.abstract | Este 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.abstract | The 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.degreelevel | Pregrado | |
| dc.description.degreename | Licenciado en Ingeniería Mecatrónica | |
| dc.format.extent | 67 p. | |
| dc.format.mimetype | application/pdf | |
| dc.identifier.uri | https://repositorio.uvg.edu.gt/handle/123456789/6387 | |
| dc.language.iso | spa | |
| dc.publisher | Universidad del Valle de Guatemala | |
| dc.publisher.branch | Campus Central | |
| dc.publisher.faculty | Facultad de Ingeniería | |
| dc.publisher.place | Guatemala | |
| dc.publisher.program | Licenciatura en Ingeniería Mecatrónica | |
| dc.relation.references | R. 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.references | J. 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.references | World 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.references | A. Ghaiyoumi, Epilepsy , feb. de 2024. dirección: https : / / www . who . int / news - room/fact-sheets/detail/epilepsy . | |
| dc.relation.references | J. 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.references | A. 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.references | N. 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.references | M. 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.references | M. 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.references | M. 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.references | J. 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.references | D. 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.references | C. 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.references | S. 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.references | K. 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.references | D. 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.references | C. 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.references | J. 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.references | D. 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.references | Epilepsia: Estudio, Tratamiento y Cirugía desde el 2006 . dirección: https : //humanagt.org/epilepsia/#:~:text=VIDEO%2DELECTROENCEFALOGRAMA . | |
| dc.relation.references | E. 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.references | R. 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.references | R. 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.references | S. 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.references | R. 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.references | P. 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.references | M. X. Cohen, Analyzing neural time series data: theory and practice . MIT press, 2014. | |
| dc.relation.references | I. Mezi¢, Analysis of uid ows via spectral properties of the koopman operator , ene. de 2013. doi : 10.1146/annurev-fluid-011212-140652 . | |
| dc.relation.references | M. 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.references | Mauroy, I. Mezi¢ e Y. Susuki, Koopman Operator in Systems and Control: Concepts, Methodologies, and Applications . Springer International Publishing, 2020. | |
| dc.relation.references | I. Goodfellow, Y. Bengio y A. Courville, Deep Learning . MIT Press, 2016. dirección: http://www.deeplearningbook.org . | |
| dc.relation.references | C. 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.references | T.-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.references | S. 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.references | D. 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.references | I. Loshchilov y F. Hutter, Decoupled Weight Decay Regularization , 2019. arXiv: 1711. 05101 [cs.LG] . dirección: https://arxiv.org/abs/1711.05101 . | |
| dc.relation.references | D. Hendrycks y K. Gimpel, Gaussian error linear units (gelus), arXiv preprint ar- Xiv:1606.08415 , 2016. | |
| dc.relation.references | R. 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.references | S. 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.references | K. 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.references | D. Bahdanau, K. Cho e Y. Bengio, Neural machine translation by jointly learning to align and translate, arXiv preprint arXiv:1409.0473 , 2014. | |
| dc.relation.references | A. 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.references | T. 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.references | ML 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.references | T. 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.references | N. 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.references | A. 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.references | S. 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.references | P. 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.references | Cuda C Programming Guide, NVIDIA, July , vol. 29, n. o 31, pág. 6, 2013. | |
| dc.relation.references | A. 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.references | M. 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.references | Electroencephalography (EEG) Resources . dirección: https : / / isip . piconepress . com/projects/nedc/html/tuh_eeg/ . | |
| dc.relation.references | S. Ferrell, V. Mathew, M. Re ord, V. Tchiong, T. Ahsan, I. Obeid y J. Picone, Electrode Location and Channel Labels , 2022. | |
| dc.relation.references | S. Rahman, S. Ferrell, I. O. Tarek Elseify y J. P. D. Ochal, Annotation Guidelines , jul. de 2020. | |
| dc.relation.references | CHB-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.references | I. 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.references | B. 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.references | Reading raw data . dirección: https://mne.tools/stable/api/reading_raw_data. html . | |
| dc.relation.references | W. 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.references | TFRecord and tf.train.Example . dirección: https : / / www . tensorflow . org / tutorials/load_data/tfrecord . | |
| dc.relation.references | Better performance with the tf.data API . dirección: https://www.tensorflow.org/ guide/data_performance . | |
| dc.relation.references | XLA . dirección: https://openxla.org/xla . | |
| dc.relation.references | Torch.utils.data . dirección: https://docs.pytorch.org/docs/stable/data.html . | |
| dc.relation.references | Introduction to torch.compile . dirección: https://docs.pytorch.org/tutorials/ intermediate/torch_compile_tutorial.html . | |
| dc.relation.references | B. Hjorth, EEG analysis based on time domain properties, Electroencephalography and clinical neurophysiology , vol. 29, n. o 3, págs. 306-310, 1970. | |
| dc.relation.references | R. T. Fielding, Architectural styles and the design of network-based software architec- tures . University of California, Irvine, 2000. | |
| dc.rights.accessrights | info:eu-repo/semantics/openAccess | |
| dc.rights.coar | http://purl.org/coar/access_right/c_abf2 | |
| dc.rights.license | Atribución-NoComercial-SinDerivadas 4.0 Internacional (CC BY-NC-ND 4.0) | |
| dc.rights.uri | https://creativecommons.org/licenses/by-nc-nd/4.0/ | |
| dc.subject.armarc | Signal processing | |
| dc.subject.armarc | Electroencefalografía | |
| dc.subject.armarc | Deep learning (Machine learning) | |
| dc.subject.armarc | Procesamiento digital de señales | |
| dc.subject.armarc | Electroencephalography -- Guatemala | |
| dc.subject.ddc | 000 - Ciencias de la computación, información y obras generales | |
| dc.subject.ocde | 2. Ingeniería y Tecnología::2K. Otras Ingenierías y Tecnologías | |
| dc.subject.ods | ODS 3: Salud y bienestar. Garantizar una vida sana y promover el bienestar de todos a todas las edades | |
| dc.subject.proposal | Epilepsia | spa |
| dc.subject.proposal | EEG | spa |
| dc.subject.proposal | Aprendizaje Profundo | spa |
| dc.subject.proposal | TUSZ | spa |
| dc.subject.proposal | TCN | spa |
| dc.subject.proposal | CNN-RNN | spa |
| dc.subject.proposal | Transformer | spa |
| dc.subject.proposal | Detección de Crisis | spa |
| dc.subject.proposal | Cómputo de Alto Rendimiento | spa |
| dc.subject.proposal | API | spa |
| dc.title | 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 | spa |
| dc.title.translated | Application of deep learning algorithms to bioelectrical signals for the identification of segments of interest in epilepsy research | |
| dc.type | Trabajo de grado - Pregrado | |
| dc.type.coar | http://purl.org/coar/resource_type/c_7a1f | |
| dc.type.coarversion | http://purl.org/coar/version/c_970fb48d4fbd8a85 | |
| dc.type.content | Text | |
| dc.type.driver | info:eu-repo/semantics/bachelorThesis | |
| dc.type.version | info:eu-repo/semantics/publishedVersion | |
| dc.type.visibility | Public Thesis | |
| dspace.entity.type | Publication |
