{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/the-case-for-cleaner-biosignals-high-fidelity","title":"The Case for Cleaner Biosignals: High-fidelity Neural Compressor Enables Transfer from Cleaner iEEG to Noisier EEG","arxiv_id":"2502.17462","date":"2025-02-10","proceeding":null,"authors":["Francesco Stefano Carzaniga","Gary Tom Hoppeler","Michael Hersche","Kaspar Anton Schindler","Abbas Rahimi"],"abstract":"All data modalities are not created equal, even when the signal they measure comes from the same source. In the case of the brain, two of the most important data modalities are the scalp electroencephalogram (EEG), and the intracranial electroencephalogram (iEEG). They are used by human experts, supported by deep learning (DL) models, to accomplish a variety of tasks, such as seizure detection and motor imagery classification. Although the differences between EEG and iEEG are well understood by human experts, the performance of DL models across these two modalities remains under-explored. To help characterize the importance of clean data on the performance of DL models, we propose BrainCodec, a high-fidelity EEG and iEEG neural compressor. We find that training BrainCodec on iEEG and then transferring to EEG yields higher reconstruction quality than training on EEG directly. In addition, we also find that training BrainCodec on both EEG and iEEG improves fidelity when reconstructing EEG. Our work indicates that data sources with higher SNR, such as iEEG, provide better performance across the board also in the medical time-series domain. BrainCodec also achieves up to a 64x compression on iEEG and EEG without a notable decrease in quality. BrainCodec markedly surpasses current state-of-the-art compression models both in final compression ratio and in reconstruction fidelity. We also evaluate the fidelity of the compressed signals objectively on a seizure detection and a motor imagery task performed by standard DL models. Here, we find that BrainCodec achieves a reconstruction fidelity high enough to ensure no performance degradation on the downstream tasks. Finally, we collect the subjective assessment of an expert neurologist, that confirms the high reconstruction quality of BrainCodec in a realistic scenario. The code is available at https://github.com/IBM/eeg-ieeg-brain-compressor.","url_abs":"https://arxiv.org/abs/2502.17462v1","url_pdf":"https://arxiv.org/pdf/2502.17462v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"the-case-for-cleaner-biosignals-high-fidelity","repo_url":"https://github.com/ibm/eeg-ieeg-brain-compressor","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"eeg-1","task_name":"EEG"},{"task_slug":"eeg","task_name":"Electroencephalogram (EEG)"},{"task_slug":"motor-imagery","task_name":"Motor Imagery"},{"task_slug":"seizure-detection","task_name":"Seizure Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2502.17462","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.17462"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/IBM/eeg-ieeg-brain-compressor","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ibm/eeg-ieeg-brain-compressor","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"193e4cb06c7034a4","entry":"all_reduce","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/balancer.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/balancer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"193e4cb06c7034a4"}},{"code_sha256_prefix":"c2d240f4c4eea4c2","entry":"average_metrics","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/balancer.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/balancer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c2d240f4c4eea4c2"}},{"code_sha256_prefix":"92caa759a4576975","entry":"averager","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/balancer.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/balancer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"92caa759a4576975"}},{"code_sha256_prefix":"7403268d9ceecbaa","entry":"get_extra_padding_for_conv1d","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/conv.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/conv.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7403268d9ceecbaa"}},{"code_sha256_prefix":"91fc3a15aa3db3a4","entry":"line_loss","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/loss.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"91fc3a15aa3db3a4"}},{"code_sha256_prefix":"2b0557766d250739","entry":"pad1d","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/conv.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/conv.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2b0557766d250739"}},{"code_sha256_prefix":"75633d354dc99835","entry":"reconstruction_loss","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/loss.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"75633d354dc99835"}},{"code_sha256_prefix":"4fa328a73ac259bd","entry":"unpad1d","repo":"IBM/eeg-ieeg-brain-compressor","repo_kind":"official","path":"utils/conv.py","file_url":"https://github.com/IBM/eeg-ieeg-brain-compressor/blob/HEAD/utils/conv.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4fa328a73ac259bd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}