Autoencoders for unsupervised analysis of rat myeloarchitecture.
The 6 matches
- [1] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/architectures/AE_model128.py, lines 65–106 · score 0.59 · ReLU, sigmoid, kernel, stride, decoder, linear
- [2] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/architectures/AE_model256.py, lines 67–110 · score 0.59 · ReLU, sigmoid, kernel, stride, decoder, linear
- [3] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/scripts/train_AE_model128_part1.py, lines 171–186 · score 0.56 · MSE loss function, Adam, patience, optimizer, epoch, trained
- [4] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/scripts/train_AE_model256_part1.py, lines 172–187 · score 0.56 · MSE loss function, Adam, patience, optimizer, epoch, trained
- [5] § Materials and methods › Feature analysis › Unsupervised clustering ↔ scripts_analysis/featureExtraction_clustering/D/color_dictionary_27_3_cov.py, lines 10–71 · score 0.56 · symmetric KL divergence, assignment, covariance, spherical, match, clusters
- [6] § Materials and methods › Feature analysis › Unsupervised clustering ↔ scripts_analysis/featureExtraction_clustering/D/colorDictionary_4animals.py, lines 10–71 · score 0.55 · symmetric KL divergence, assignment, covariance, spherical, match, clusters
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 126 lines · 3.7 KB · MIT · 1 match
- import torch.nn as nn
- KERNEL_SIZE = 3
- STRIDE = 2
- PADDING = 1
- A = 8
- B = 16
- C = 32
- D = 64
- E = 128
- F = 256
- G = 512
- LS = 256
- # Define the Autoencoder class
- class Encoder(nn.Module):
- # input shape in tensor form: (1, 128, 128), i.e., patches of size 128x128
- def __init__(self, output_dim=LS):
- super(Encoder, self).__init__()
- self.output_dim = output_dim
- # Encoder
- self.encoder = nn.Sequential(
- nn.Conv2d(1, A, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(A),
- nn.ReLU(),
- nn.Conv2d(A, B, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(B),
- nn.ReLU(),
- nn.Conv2d(B, C, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(C),
- nn.ReLU(),
- nn.Conv2d(C, D, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(D),
- nn.ReLU(),
- nn.Conv2d(D, E, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(E),
- nn.ReLU(),
- nn.Conv2d(E, F, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(F),
- nn.ReLU(),
- nn.Conv2d(F, G, KERNEL_SIZE, STRIDE, PADDING),
- nn.BatchNorm2d(G),
- nn.ReLU(),
- nn.Flatten(),
- nn.Linear(G, LS),
- # nn.ReLU(),
- # nn.Linear(F, LS)
- )
- def forward(self, x):
- x = x.float()
- x = self.encoder(x)
- return x
- # ---------------------------------------------------------------------------------------------------------------------
- # ---------------------------------------------------------------------------------------------------------------------
- class Decoder(nn.Module):
- def __init__(self, input_dim=LS):
- super(Decoder, self).__init__()
- self.input_dim = input_dim
- self.linear1 = nn.Linear(LS, G)
- self.relu = nn.ReLU()
- # self.linear2 = nn.Linear(F, G)
- # Decoder
- self.decoder = nn.Sequential(
- nn.ReLU(),
- nn.ConvTranspose2d(G, F, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(F, E, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(E, D, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(D, C, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(C, B, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(B, A, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.ReLU(),
- nn.ConvTranspose2d(A, 1, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
- nn.Sigmoid() # ensures that the output values are in range (0,1)
- )
- # self.output = nn.Conv2d(1, 1, kernel_size=1, stride=1) # no tenc clar que fa aixo
- def forward(self, x):
- x = x.float()
- x = self.linear1(x)
- # x = self.relu(x)
- # x = self.linear2(x)
- # reshape 3d tensor to 4d tensor
- x = x.reshape(x.shape[0], G, 1, 1)
- x = self.decoder(x)
- # return self.output(x)
- return x
- # ---------------------------------------------------------------------------------------------------------------------
- # ---------------------------------------------------------------------------------------------------------------------
- # putting them together:
- class AutoEncoder(nn.Module):
- def __init__(self):
- super(AutoEncoder, self).__init__()
- self.encoder = Encoder(output_dim=LS)
- self.decoder = Decoder(input_dim=LS)
- def forward(self, x):
- return self.decoder(self.encoder(x))
- def instance():
- return AutoEncoder()
AE_model128.py at commit ac529b0, under MIT · at the source
Overview
- A.I. Virtanen Institute for Molecular Sciences, University of Eastern Finland, Kuopio, Finland
- Department of Applied Physics, University of Eastern Finland, Kuopio, Finland
Abstract
Quantitative assessment of brain histology is often constrained by predefined feature sets and labor-intensive manual annotations. To overcome these limitations, we employed unsupervised deep learning to automatically extract and quantify tissue organizational patterns from myelin-stained rat brain sections without the need for prior labeling. We evaluated nonlinear convolutional autoencoders (AEs) against linear principal component analysis (PCA) and DINOv3, a self-supervised foundation model applied without task-specific fine-tuning, for feature representation, followed by clustering with Gaussian mixture models. Compared to both PCA and DINOv3, AEs better preserved fine axonal architecture and produced more consistent and interpretable tissue clusters across hierarchical levels. The resulting clusters revealed anatomically meaningful tissue organization, including different white matter densities and grey matter subregions. When applied to tissue from sham and mild traumatic brain injury animals, AE-derived features also captured pathology-related alterations, such as white matter loss and injury-specific microstructural changes. These findings suggest that task-specific unsupervised training on domain-specific histological data can automatically characterize tissue organization at multiple scales and detect pathological changes, offering a scalable, annotation-free approach to computational neuropathology.
Supplementary Information: The online version contains supplementary material available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
UEF-Multiscale-Imaging/AE-and-GMM-myelin-stained-tissue
ac529b0afa16fa6971c09b207408305d5100f806, 10 February 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
53 files
- AE/
architectures/ , Python, 126 lines, 1 matchAE_model128.py - AE/
architectures/ , Python, 130 lines, 1 matchAE_model256.py - AE/
scripts/ , Python, 312 lines, 1 matchtrain_AE_model128_part1. py - AE/
scripts/ , Python, 305 linestrain_AE_model128_part2. py - AE/
scripts/ , Python, 313 lines, 1 matchtrain_AE_model256_part1. py - AE/
scripts/ , Python, 284 linestrain_AE_model256_part2. py - AE/
scripts/ , Python, 269 linestrain_AE_model256_part3. py - AE/
scripts/ , Python, 284 linestrain_AE_model256_part4. py - PCA/
scripts/ , Python, 201 linesPCA_model128.py - PCA/
scripts/ , Python, 205 linesPCA_model256.py - PCA/
scripts/ , Python, 75 linesrun_PCA_model128.py - PCA/
scripts/ , Python, 74 linesrun_PCA_model256.py - scripts_analysis/
data_preprocessing/ , Python, 75 linesbounding_rectangle.py - scripts_analysis/
data_preprocessing/ , Python, 52 linescheck_cuts.py - scripts_analysis/
data_preprocessing/ , Python, 10 linescoordinates.py - scripts_analysis/
data_preprocessing/ , Python, 50 linesenumerate.py - scripts_analysis/
data_preprocessing/ , Python, 180 linesfunctions4finding_coordi nates.py - scripts_analysis/
data_preprocessing/ , Python, 35 linesmanual_inspection.py - scripts_analysis/
data_preprocessing/ , Python, 108 linesmasking_precise.py - scripts_analysis/
data_preprocessing/ , Shell, 43 linesndpi2tiff.sh - scripts_analysis/
data_preprocessing/ , Python, 107 linesnormalization.py - scripts_analysis/
data_preprocessing/ , Python, 138 linesnormalization_among_anim als.py - scripts_analysis/
data_preprocessing/ , Python, 124 linesrenormalization_def.py - scripts_analysis/
data_preprocessing/ , Python, 74 linesruning_renorm.py - scripts_analysis/
featureExtraction_cluste , Python, 76 linesring/ A/ a0_plotErrorsAltogether. py - scripts_analysis/
featureExtraction_cluste , Python, 135 linesring/ A/ a1_passImagiesThroughAEs .py - scripts_analysis/
featureExtraction_cluste , Python, 114 linesring/ A/ a1_pca_applied.py - scripts_analysis/
featureExtraction_cluste , Python, 201 linesring/ A/ figure2_reconstructions. py - scripts_analysis/
featureExtraction_cluste , Python, 51 linesring/ A/ merge_errors.py - scripts_analysis/
featureExtraction_cluste , Python, 77 linesring/ B/ b0_counting_points_secti ons_animal.py - scripts_analysis/
featureExtraction_cluste , Python, 70 linesring/ B/ b1_preparing_set_patches _for_gmm.py - scripts_analysis/
featureExtraction_cluste , Python, 107 linesring/ B/ b2_pass_patches_trough_A E.py - scripts_analysis/
featureExtraction_cluste , Python, 96 linesring/ B/ b2_pass_patches_trough_P CA.py - scripts_analysis/
featureExtraction_cluste , Python, 75 linesring/ C/ c0_clustering_ae_4animal s.py - scripts_analysis/
featureExtraction_cluste , Python, 75 linesring/ C/ c0_clustering_pca_4anima ls.py - scripts_analysis/
featureExtraction_cluste , Python, 52 linesring/ C/ c1_pass_4animals_gmmmode l_ae_to_sections.py - scripts_analysis/
featureExtraction_cluste , Python, 53 linesring/ C/ c1_pass_4animals_gmmmode l_pca_to_sections.py - scripts_analysis/
featureExtraction_cluste , Python, 79 linesring/ C/ c2_plot_gmm_bic_animals_ together_ae.py - scripts_analysis/
featureExtraction_cluste , Python, 117 linesring/ C/ c2_plot_gmm_bic_animals_ together_pca.py - scripts_analysis/
featureExtraction_cluste , Python, 22 linesring/ D/ 4animals_probmaps/ cmap_plot.py - scripts_analysis/
featureExtraction_cluste , Python, 44 linesring/ D/ 4animals_probmaps/ original_dwnsampled.py - scripts_analysis/
featureExtraction_cluste , Python, 108 linesring/ D/ 4animals_probmaps/ probmaps.py - scripts_analysis/
featureExtraction_cluste , Python, 104 linesring/ D/ ae_model128_clusterplots _4animalstogether.py - scripts_analysis/
featureExtraction_cluste , Python, 97 linesring/ D/ ae_model128_clusterplots _ISM31.py - scripts_analysis/
featureExtraction_cluste , Python, 104 linesring/ D/ ae_probplots_4animalstog ether.py - scripts_analysis/
featureExtraction_cluste , Python, 71 lines, 1 matchring/ D/ colorDictionary_4animals .py - scripts_analysis/
featureExtraction_cluste , Python, 71 lines, 1 matchring/ D/ color_dictionary_27_3_co v.py - scripts_analysis/
featureExtraction_cluste , Python, 56 linesring/ D/ figure_k3_9_21_3x3.py - scripts_analysis/
featureExtraction_cluste , Python, 180 linesring/ D/ plotting_prob_maps.py - scripts_analysis/
featureExtraction_cluste , Python, 127 linesring/ D/ plotting_real_centroids. py - scripts_analysis/
featureExtraction_cluste , Python, 129 linesring/ D/ plotting_real_centroids_ specificCluster.py - LICENSE, License, 21 lines
- README.md, Text, 2 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 51 scripts, each with its path and the digest of its content;
- 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data Availability Statement
Our source code is available on GitHub (https://
During the preparation of this work, the authors used Claude to help with refining language, clarity and organizing sections. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 8 keywords, 14 MeSH terms, 5 funders, 36 references.
Cite
This paper
Estela, M., Salo, R. A., San Martín Molina, I., Narvaez, O., Kolehmainen, V., Tohka, J., & Sierra, A. (2026). Autoencoders for unsupervised analysis of rat myeloarchitecture. Brain structure & function, 231(8), 141. https://
BibTeX
@article{estela2026autoe
author = {Estela, Melina and Salo, Raimo A and San Martín Molina, Isabel and Narvaez, Omar and Kolehmainen, Ville and Tohka, Jussi and Sierra, Alejandra},
title = {{Autoencoders for unsupervised analysis of rat myeloarchitecture}},
journal = {Brain structure \& function},
year = {2026},
month = sep,
volume = {231},
number = {8},
pages = {141},
publisher = {Springer Science+Business Media},
issn = {1863-2653},
doi = {10.1007/
url = {https://
pmid = {42799916},
pmcid = {PMC13616018}
}
RIS
TY - JOUR
AU - Estela, Melina
AU - Salo, Raimo A
AU - San Martín Molina, Isabel
AU - Narvaez, Omar
AU - Kolehmainen, Ville
AU - Tohka, Jussi
AU - Sierra, Alejandra
TI - Autoencoders for unsupervised analysis of rat myeloarchitecture
T2 - Brain structure & function
J2 - Brain Struct Funct
PY - 2026
DA - 2026/
VL - 231
IS - 8
SP - 141
SN - 1863-2653
PB - Springer Science+Business Media
DO - 10.1007/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1007/
"type": "article-journal",
"title": "Autoencoders for unsupervised analysis of rat myeloarchitecture",
"container-title": "Brain structure & function",
"author": [
{
"family": "Estela",
"given": "Melina"
},
{
"family": "Salo",
"given": "Raimo A"
},
{
"family": "San Martín Molina",
"given": "Isabel"
},
{
"family": "Narvaez",
"given": "Omar"
},
{
"family": "Kolehmainen",
"given": "Ville"
},
{
"family": "Tohka",
"given": "Jussi"
},
{
"family": "Sierra",
"given": "Alejandra"
}
],
"container-title-short":
"volume": "231",
"issue": "8",
"page": "141",
"DOI": "10.1007/
"PMID": "42799916",
"PMCID": "PMC13616018",
"ISSN": "1863-2653",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
26
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1093/jnen/nlaf152 [code]
- Clinical and pathologic correlations of machine learning quantification of Aβ deposits across 3 brain regions of decedents with Alzheimer disease.Journal: Journal of neuropathology and experimental neurologyIn common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
- [2] doi:10.1016/j.patter.2026.101538 [code]
- A multi-modal foundation model for brain disease diagnosis and medical imaging.Journal: Patterns (New York, N.Y.)In common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
- [3] doi:10.1038/s41598-026-57519-w [code]
- Automated segmentation of neurons and spinal cord structures in immunofluorescence images using SpineDL.Journal: Scientific reportsIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 1 reference
- [4] doi:10.1371/journal.pcbi.1013499 [code]
- VesiclePy: A machine learning vesicle analysis toolbox for volume electron microscopy.Journal: PLoS computational biologyIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 1 reference
- [5] doi:10.1016/j.isci.2026.116168 [code]
- See the small lesions: Frequency-guided spatial debiasing GAN for multimodal medical image fusion.Journal: iScienceIn common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
- [6] doi:10.1371/journal.pcbi.1014263 [code]
- MIRAGE: Robust multi-modal architectures translate fMRI-to-image models from vision to mental imagery.Journal: PLoS computational biologyIn common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
- [7] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
- [8] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, cellular / molecular
- [9] doi:10.1038/s41598-026-50475-5 [code]
- Segmentation and classification of hippocampal subregions using multi-task generative adversarial networks.Journal: Scientific reportsIn common: OpenCV, Pillow, PyTorch, 4 other tools, histology / microscopy, 1 reference
- [10] doi:10.1016/j.isci.2026.116206 [code]
- Gut distension evokes rapid neural dynamics in vagal and hindbrain populations of larval zebrafish.Journal: iScienceIn common: OpenCV, scikit-image, Pillow, 5 other tools, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 51 scripts, and 6 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:7f2cfec77435d3e6…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
