{"id":{"repo_id":"catalunya","oai_identifier":"oai:openaccess.uoc.edu:10609/156300"},"canonical_url":"https://search.ndltd.org/etd/catalunya/oai:openaccess.uoc.edu:10609/156300","repository":{"repo_id":"catalunya","name":"Universitat Oberta de Catalunya","base_url":"https://openaccess.uoc.edu/server/oai/request"},"display":{"title":"Decodificación de imágenes visuales a partir de señales cerebrales mediante modelos generativos","abstract":"This Master's Thesis investigates the reconstruction of visual stimuli from brain activity using two neuroimaging modalities with markedly different characteristics: functional magnetic resonance imaging (fMRI) and electroencephalography (EEG). The main objective is to assess not only whether visual information can be decoded from brain signals, but also whether the recovered information can effectively guide image generation. The proposed framework separates the problem into two stages. First, modality-specific neural encoders predict pretrained visual representations containing semantic and structural information. Second, these representations are used to condition a frozen Stable Diffusion 1.5 model. The same evaluation framework is applied to both modalities and includes retrieval metrics, image-generation metrics, preprocessing ablations and negative controls based on permuted, null and random inputs. The results show a clear difference between modalities. In fMRI, semantic decoding reaches 84.91 % Top-5 retrieval over 159 candidates, while the best EEG configuration reaches 12.00 % over 200 candidates. Structural information is also recoverable from fMRI (coefficient of determination, R^2 = 0.22), but not from EEG. During generation, fMRI-derived information provides improvements of up to 10.49 percentage points, whereas the contribution of EEG is limited and strongly affected by textual conditioning. Structural conditioning through a control network does not improve the final reconstruction. These findings show that above-chance decoding does not necessarily translate into useful generative conditioning and highlight the importance of negative controls for determining whether reconstruction performance can truly be attributed to brain activity.","abstract_html":"This Master&#x27;s Thesis investigates the reconstruction of visual stimuli from brain activity using two neuroimaging modalities with markedly different characteristics: functional magnetic resonance imaging (fMRI) and electroencephalography (EEG). The main objective is to assess not only whether visual information can be decoded from brain signals, but also whether the recovered information can effectively guide image generation. The proposed framework separates the problem into two stages. First, modality-specific neural encoders predict pretrained visual representations containing semantic and structural information. Second, these representations are used to condition a frozen Stable Diffusion 1.5 model. The same evaluation framework is applied to both modalities and includes retrieval metrics, image-generation metrics, preprocessing ablations and negative controls based on permuted, null and random inputs. The results show a clear difference between modalities. In fMRI, semantic decoding reaches 84.91 % Top-5 retrieval over 159 candidates, while the best EEG configuration reaches 12.00 % over 200 candidates. Structural information is also recoverable from fMRI (coefficient of determination, R^2 = 0.22), but not from EEG. During generation, fMRI-derived information provides improvements of up to 10.49 percentage points, whereas the contribution of EEG is limited and strongly affected by textual conditioning. Structural conditioning through a control network does not improve the final reconstruction. These findings show that above-chance decoding does not necessarily translate into useful generative conditioning and highlight the importance of negative controls for determining whether reconstruction performance can truly be attributed to brain activity.","abstract_has_math":false,"creators":["Diaconu, Octavian Eduard"],"institution":"Universitat Oberta de Catalunya (UOC)","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-09-01","date_published":"2026-09-01","updated_at":"2026-11-26T14:18:47Z","subjects":["brain decoding","fMRI","EEG","generative models","latent space","Stable Diffusion","CLIP"],"languages":["spa"],"rights":["info:eu-repo/semantics/openAccess","Attribution-NonCommercial-NoDerivatives 4.0 International"],"rights_urls":["https://creativecommons.org/licenses/by-nc-nd/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10609/156300","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10609/156300","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":"open","embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Acatalunya%3Aoai%3Aopenaccess.uoc.edu%3A10609%2F156300","prefix":"oai_dc"},"source_record":{"url":"https://openaccess.uoc.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aopenaccess.uoc.edu%3A10609%2F156300","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.director","label":"Dc Contributor Director","values":["González López, José Andrés"]},{"key":"dc:creator","label":"Author","values":["Diaconu, Octavian Eduard"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-09-16T19:37:17Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-09-16T19:37:17Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-09-01"]},{"key":"dc:publisher","label":"Institution","values":["Universitat Oberta de Catalunya (UOC)"]},{"key":"dc:type","label":"Dc Type","values":["info:eu-repo/semantics/masterThesis"]},{"key":"dc:type.version","label":"Dc Type Version","values":["info:eu-repo/semantics/submittedVersion"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["brain decoding","fMRI","EEG","generative models","latent space","Stable Diffusion","CLIP"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["spa"]},{"key":"dc:rights","label":"Dc Rights","values":["Attribution-NonCommercial-NoDerivatives 4.0 International"]},{"key":"dc:rights.accessrights","label":"Access Rights","values":["info:eu-repo/semantics/openAccess"]},{"key":"dc:rights.uri","label":"Rights URI","values":["https://creativecommons.org/licenses/by-nc-nd/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10609/156300"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This Master's Thesis investigates the reconstruction of visual stimuli from brain activity using two neuroimaging modalities with markedly different characteristics: functional magnetic resonance imaging (fMRI) and electroencephalography (EEG). The main objective is to assess not only whether visual information can be decoded from brain signals, but also whether the recovered information can effectively guide image generation. The proposed framework separates the problem into two stages. First, modality-specific neural encoders predict pretrained visual representations containing semantic and structural information. Second, these representations are used to condition a frozen Stable Diffusion 1.5 model. The same evaluation framework is applied to both modalities and includes retrieval metrics, image-generation metrics, preprocessing ablations and negative controls based on permuted, null and random inputs. The results show a clear difference between modalities. In fMRI, semantic decoding reaches 84.91 % Top-5 retrieval over 159 candidates, while the best EEG configuration reaches 12.00 % over 200 candidates. Structural information is also recoverable from fMRI (coefficient of determination, R^2 = 0.22), but not from EEG. During generation, fMRI-derived information provides improvements of up to 10.49 percentage points, whereas the contribution of EEG is limited and strongly affected by textual conditioning. Structural conditioning through a control network does not improve the final reconstruction. These findings show that above-chance decoding does not necessarily translate into useful generative conditioning and highlight the importance of negative controls for determining whether reconstruction performance can truly be attributed to brain activity.","Este Trabajo de Fin de Máster (TFM) estudia la reconstrucción de estímulos visuales a partir de la actividad cerebral mediante dos modalidades de neuroimagen con características muy distintas: resonancia magnética funcional (fMRI) y electroencefalografía (EEG). El objetivo principal es analizar si puede recuperarse información visual de la señal cerebral y si dicha información resulta útil para guiar la generación de imágenes. El sistema propuesto separa el problema en dos etapas. En la primera, codificadores específicos de cada modalidad predicen representaciones visuales preentrenadas con información semántica y estructural. En la segunda, estas representaciones se emplean para condicionar un modelo Stable Diffusion 1.5 congelado. Ambas modalidades se evalúan bajo un mismo marco experimental que incluye métricas de recuperación y generación, ablaciones de preprocesamiento y controles negativos con entradas permutadas, nulas y aleatorias. Los resultados muestran una diferencia clara entre modalidades. En fMRI, la decodificación semántica alcanza un 84,91 % de Top-5 sobre 159 candidatos, frente al 12,00 % obtenido por la mejor configuración de EEG sobre 200 candidatos. La información estructural también resulta recuperable en fMRI (coeficiente de determinación, R^2 = 0,22), pero no en EEG. Durante la generación, la información procedente de fMRI aporta mejoras de hasta 10,49 puntos porcentuales, mientras que la contribución del EEG es limitada y está fuertemente condicionada por la pista textual. Además, el condicionamiento estructural mediante una red de control no mejora la reconstrucción final. Los resultados muestran que una decodificación por encima del azar no implica necesariamente un condicionamiento generativo útil y destaca la importancia de los controles negativos para atribuir correctamente el rendimiento a la actividad cerebral."]},{"key":"dc:title","label":"Title","values":["Decodificación de imágenes visuales a partir de señales cerebrales mediante modelos generativos"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.director":["González López, José Andrés"],"dc:creator":["Diaconu, Octavian Eduard"],"dc:date.accessioned":["2026-09-16T19:37:17Z"],"dc:date.available":["2026-09-16T19:37:17Z"],"dc:date.issued":["2026-09-01"],"dc:description.abstract":["This Master's Thesis investigates the reconstruction of visual stimuli from brain activity using two neuroimaging modalities with markedly different characteristics: functional magnetic resonance imaging (fMRI) and electroencephalography (EEG). The main objective is to assess not only whether visual information can be decoded from brain signals, but also whether the recovered information can effectively guide image generation. The proposed framework separates the problem into two stages. First, modality-specific neural encoders predict pretrained visual representations containing semantic and structural information. Second, these representations are used to condition a frozen Stable Diffusion 1.5 model. The same evaluation framework is applied to both modalities and includes retrieval metrics, image-generation metrics, preprocessing ablations and negative controls based on permuted, null and random inputs. The results show a clear difference between modalities. In fMRI, semantic decoding reaches 84.91 % Top-5 retrieval over 159 candidates, while the best EEG configuration reaches 12.00 % over 200 candidates. Structural information is also recoverable from fMRI (coefficient of determination, R^2 = 0.22), but not from EEG. During generation, fMRI-derived information provides improvements of up to 10.49 percentage points, whereas the contribution of EEG is limited and strongly affected by textual conditioning. Structural conditioning through a control network does not improve the final reconstruction. These findings show that above-chance decoding does not necessarily translate into useful generative conditioning and highlight the importance of negative controls for determining whether reconstruction performance can truly be attributed to brain activity.","Este Trabajo de Fin de Máster (TFM) estudia la reconstrucción de estímulos visuales a partir de la actividad cerebral mediante dos modalidades de neuroimagen con características muy distintas: resonancia magnética funcional (fMRI) y electroencefalografía (EEG). El objetivo principal es analizar si puede recuperarse información visual de la señal cerebral y si dicha información resulta útil para guiar la generación de imágenes. El sistema propuesto separa el problema en dos etapas. En la primera, codificadores específicos de cada modalidad predicen representaciones visuales preentrenadas con información semántica y estructural. En la segunda, estas representaciones se emplean para condicionar un modelo Stable Diffusion 1.5 congelado. Ambas modalidades se evalúan bajo un mismo marco experimental que incluye métricas de recuperación y generación, ablaciones de preprocesamiento y controles negativos con entradas permutadas, nulas y aleatorias. Los resultados muestran una diferencia clara entre modalidades. En fMRI, la decodificación semántica alcanza un 84,91 % de Top-5 sobre 159 candidatos, frente al 12,00 % obtenido por la mejor configuración de EEG sobre 200 candidatos. La información estructural también resulta recuperable en fMRI (coeficiente de determinación, R^2 = 0,22), pero no en EEG. Durante la generación, la información procedente de fMRI aporta mejoras de hasta 10,49 puntos porcentuales, mientras que la contribución del EEG es limitada y está fuertemente condicionada por la pista textual. Además, el condicionamiento estructural mediante una red de control no mejora la reconstrucción final. Los resultados muestran que una decodificación por encima del azar no implica necesariamente un condicionamiento generativo útil y destaca la importancia de los controles negativos para atribuir correctamente el rendimiento a la actividad cerebral."],"dc:identifier.uri":["https://hdl.handle.net/10609/156300"],"dc:language.iso":["spa"],"dc:publisher":["Universitat Oberta de Catalunya (UOC)"],"dc:rights":["Attribution-NonCommercial-NoDerivatives 4.0 International"],"dc:rights.accessrights":["info:eu-repo/semantics/openAccess"],"dc:rights.uri":["https://creativecommons.org/licenses/by-nc-nd/4.0/"],"dc:subject":["brain decoding","fMRI","EEG","generative models","latent space","Stable Diffusion","CLIP"],"dc:title":["Decodificación de imágenes visuales a partir de señales cerebrales mediante modelos generativos"],"dc:type":["info:eu-repo/semantics/masterThesis"],"dc:type.version":["info:eu-repo/semantics/submittedVersion"],"others:access_status":["open.access"]},"updated_at":"2026-11-26T14:18:47Z"}