Autoencoders for unsupervised analysis of rat myeloarchitecture.
6 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 6 matches
- [1] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/architectures/AE_model128.py, lines 65 to 106 · score 0.59 · ReLU, sigmoid, kernel, stride, decoder, linear · block
oscr:b:28PNGYANB3DM8-6· Report a mismatch - [2] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/architectures/AE_model256.py, lines 67 to 110 · score 0.59 · ReLU, sigmoid, kernel, stride, decoder, linear · block
oscr:b:490196CBK3EMX-4· Report a mismatch - [3] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/scripts/train_AE_model128_part1.py, lines 171 to 186 · score 0.56 · MSE loss function, Adam, patience, optimizer, epoch, trained · block
oscr:b:CMKJGDX5GD2ZB-T· Report a mismatch - [4] § Materials and methods › Feature extraction › Autoencoders (AE) ↔ AE/scripts/train_AE_model256_part1.py, lines 172 to 187 · score 0.56 · MSE loss function, Adam, patience, optimizer, epoch, trained · block
oscr:b:J49EWGPQN484X-E· Report a mismatch - [5] § Materials and methods › Feature analysis › Unsupervised clustering ↔ scripts_analysis/featureExtraction_clustering/D/color_dictionary_27_3_cov.py, lines 10 to 71 · score 0.56 · symmetric KL divergence, assignment, covariance, spherical, match, clusters · block
oscr:b:16S09K4SK9ESX-A· Report a mismatch - [6] § Materials and methods › Feature analysis › Unsupervised clustering ↔ scripts_analysis/featureExtraction_clustering/D/colorDictionary_4animals.py, lines 10 to 71 · score 0.55 · symmetric KL divergence, assignment, covariance, spherical, match, clusters · block
oscr:b:A2TF5N6CTZWH1-T· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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/nlae120 [code]
- A machine learning approach to automate microinfarct and microhemorrhage screening in hematoxylin and eosin-stained human brain tissues.Journal: Journal of neuropathology and experimental neurologyIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 2 references
- [2] doi:10.1186/s40478-024-01827-7 [code]
- Machine learning quantification of Amyloid-β deposits in the temporal lobe of 131 brain bank cases.Journal: Acta neuropathologica communicationsIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 2 references
- [3] doi:10.1038/s41598-026-40620-5 [code]
- mViSE: A visual search engine for analyzing multiplex IHC brain tissue images (spatial proteomics).Journal: Scientific reportsIn common: scikit-image, Pillow, PyTorch, 4 other tools, histology / microscopy, 3 references
- [4] doi:10.1162/imag.a.1079 [code]
- From fibers to cells: Fourier-based registration enables virtual Cresyl violet staining from 3D polarized light imaging.Journal: Imaging neuroscience (Cambridge, Mass.)In common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, cellular / molecular, 2 references
- [5] doi:10.1109/access.2022.3171927 [code]
- BrainSec: Automated Brain Tissue Segmentation Pipeline for Scalable Neuropathological Analysis.Journal: IEEE access : practical innovations, open solutionsIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 2 references
- [6] doi:10.1111/nan.12770 [code]
- Image-based deep learning reveals the responses of human motor neurons to stress and VCP-related ALS.Journal: Neuropathology and applied neurobiologyIn common: scikit-image, Pillow, PyTorch, 4 other tools, histology / microscopy, cellular / molecular, 2 references
- [7] doi:10.1038/s41597-024-04225-9 [code]
- IPD-Brain: An Indian histopathology dataset for glioma subtype classification.Journal: Scientific dataIn common: OpenCV, Pillow, PyTorch, 4 other tools, histology / microscopy, 2 references
- [8] doi:10.1038/s41598-024-54993-y [code]
- Iterative pseudo balancing for stem cell microscopy image classification.Journal: Scientific reportsIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, cellular / molecular, 1 reference
- [9] doi:10.1016/j.crmeth.2022.100191 [code]
- AI-enabled <i>in silico</
i> immunohistochemical characterization for Alzheimer's disease. Journal: Cell reports methodsIn common: OpenCV, scikit-image, Pillow, 5 other tools, histology / microscopy, 1 reference - [10] doi:10.1111/bpa.70029 [code]
- Pediatric brain tumor classification using digital pathology and deep learning: Evaluation of SOTA methods on a multi-center Swedish cohort.Journal: Brain pathology (Zurich, Switzerland)In common: OpenCV, Pillow, PyTorch, 4 other tools, 2 references
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:e9025402b7e38aba…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w.svg
:target: https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w"><img src="https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
