OSCR

Autoencoders for unsupervised analysis of rat myeloarchitecture.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

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. [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. [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. [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. [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. [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. [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

  1. import torch.nn as nn
  2. KERNEL_SIZE = 3
  3. STRIDE = 2
  4. PADDING = 1
  5. A = 8
  6. B = 16
  7. C = 32
  8. D = 64
  9. E = 128
  10. F = 256
  11. G = 512
  12. LS = 256
  13. # Define the Autoencoder class
  14. class Encoder(nn.Module):
  15. # input shape in tensor form: (1, 128, 128), i.e., patches of size 128x128
  16. def __init__(self, output_dim=LS):
  17. super(Encoder, self).__init__()
  18. self.output_dim = output_dim
  19. # Encoder
  20. self.encoder = nn.Sequential(
  21. nn.Conv2d(1, A, KERNEL_SIZE, STRIDE, PADDING),
  22. nn.BatchNorm2d(A),
  23. nn.ReLU(),
  24. nn.Conv2d(A, B, KERNEL_SIZE, STRIDE, PADDING),
  25. nn.BatchNorm2d(B),
  26. nn.ReLU(),
  27. nn.Conv2d(B, C, KERNEL_SIZE, STRIDE, PADDING),
  28. nn.BatchNorm2d(C),
  29. nn.ReLU(),
  30. nn.Conv2d(C, D, KERNEL_SIZE, STRIDE, PADDING),
  31. nn.BatchNorm2d(D),
  32. nn.ReLU(),
  33. nn.Conv2d(D, E, KERNEL_SIZE, STRIDE, PADDING),
  34. nn.BatchNorm2d(E),
  35. nn.ReLU(),
  36. nn.Conv2d(E, F, KERNEL_SIZE, STRIDE, PADDING),
  37. nn.BatchNorm2d(F),
  38. nn.ReLU(),
  39. nn.Conv2d(F, G, KERNEL_SIZE, STRIDE, PADDING),
  40. nn.BatchNorm2d(G),
  41. nn.ReLU(),
  42. nn.Flatten(),
  43. nn.Linear(G, LS),
  44. # nn.ReLU(),
  45. # nn.Linear(F, LS)
  46. )
  47. def forward(self, x):
  48. x = x.float()
  49. x = self.encoder(x)
  50. return x
  51. # ---------------------------------------------------------------------------------------------------------------------
  52. # ---------------------------------------------------------------------------------------------------------------------
  53. class Decoder(nn.Module):
  54. def __init__(self, input_dim=LS):
  55. super(Decoder, self).__init__()
  56. self.input_dim = input_dim
  57. self.linear1 = nn.Linear(LS, G)
  58. self.relu = nn.ReLU()
  59. # self.linear2 = nn.Linear(F, G)
  60. # Decoder
  61. self.decoder = nn.Sequential(
  62. nn.ReLU(),
  63. nn.ConvTranspose2d(G, F, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  64. nn.ReLU(),
  65. nn.ConvTranspose2d(F, E, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  66. nn.ReLU(),
  67. nn.ConvTranspose2d(E, D, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  68. nn.ReLU(),
  69. nn.ConvTranspose2d(D, C, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  70. nn.ReLU(),
  71. nn.ConvTranspose2d(C, B, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  72. nn.ReLU(),
  73. nn.ConvTranspose2d(B, A, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  74. nn.ReLU(),
  75. nn.ConvTranspose2d(A, 1, KERNEL_SIZE, STRIDE, PADDING, output_padding=1),
  76. nn.Sigmoid() # ensures that the output values are in range (0,1)
  77. )
  78. # self.output = nn.Conv2d(1, 1, kernel_size=1, stride=1) # no tenc clar que fa aixo
  79. def forward(self, x):
  80. x = x.float()
  81. x = self.linear1(x)
  82. # x = self.relu(x)
  83. # x = self.linear2(x)
  84. # reshape 3d tensor to 4d tensor
  85. x = x.reshape(x.shape[0], G, 1, 1)
  86. x = self.decoder(x)
  87. # return self.output(x)
  88. return x
  89. # ---------------------------------------------------------------------------------------------------------------------
  90. # ---------------------------------------------------------------------------------------------------------------------
  91. # putting them together:
  92. class AutoEncoder(nn.Module):
  93. def __init__(self):
  94. super(AutoEncoder, self).__init__()
  95. self.encoder = Encoder(output_dim=LS)
  96. self.decoder = Decoder(input_dim=LS)
  97. def forward(self, x):
  98. return self.decoder(self.encoder(x))
  99. def instance():
  100. return AutoEncoder()

AE_model128.py at commit ac529b0, under MIT · at the source

Overview

Authors: Melina Estela1, Raimo A Salo1, Isabel San Martín Molina1, Omar Narvaez1, Ville Kolehmainen2, Jussi Tohka1, Alejandra Sierra1
  1. A.I. Virtanen Institute for Molecular Sciences, University of Eastern Finland, Kuopio, Finland
  2. Department of Applied Physics, University of Eastern Finland, Kuopio, Finland
Institutions: University of Eastern Finland (Finland)
Journal: Brain structure & function, volume 231, issue 8, article 141
Dates: received 2 April 2026; accepted 17 July 2026; published online 26 September 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1007/s00429-026-03166-w · PMID 42799916 · PMCID PMC13616018 · OpenAlex W7214462535
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: histology / microscopy (modality), rat (organism), traumatic brain injury (population), cellular / molecular (subfield)
Methods: Connectivity, Smoothing, state filtering, decompositions, Machine learning, Statistics
Keywords: Histological image analysis, Convolutional autoencoders, PCA, DINOv3, Tissue clustering, Myelin, Traumatic brain injury, Computational pathology
MeSH: Brain*, Image Processing, Computer-Assisted*, Myelin Sheath*, Unsupervised Machine Learning*, White Matter*, Animals, Autoencoder, Brain Injuries, Traumatic, Cluster Analysis, Clustering Algorithms, Gray Matter, Male, Principal Component Analysis, Rats (* major topic)
Topic: Advanced Neuroimaging Techniques and Applications (Radiology, Nuclear Medicine and Imaging, Medicine), according to OpenAlex
Citations: not cited yet (Europe PMC); 48 references in the paper

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://doi.org/10.1007/s00429-026-03166-w.

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

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: ac529b0afa16fa6971c09b207408305d5100f806, 10 February 2026
Languages: Python (50), Shell (1)
Size: 66 files, 51 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (40 files), Pillow (34 files), Matplotlib (21 files), PyTorch (13 files), OpenCV (10 files), scikit-image (8 files), scikit-learn (4 files), SciPy (4 files)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
53 files

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://github.com/UEF-Multiscale-Imaging/AE-and-GMM-myelin-stained-tissue). Data used in this paper will be shared by the lead contact, Alejandra Sierra upon request. Requests are typically answered within 2 weeks.

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://doi.org/10.1007/s00429-026-03166-w

BibTeX

@article{estela2026autoencoders,
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/s00429-026-03166-w},
url = {https://doi.org/10.1007/s00429-026-03166-w},
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/09/26
VL - 231
IS - 8
SP - 141
SN - 1863-2653
PB - Springer Science+Business Media
DO - 10.1007/s00429-026-03166-w
UR - https://doi.org/10.1007/s00429-026-03166-w
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s00429-026-03166-w",
"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": "Brain Struct Funct",
"volume": "231",
"issue": "8",
"page": "141",
"DOI": "10.1007/s00429-026-03166-w",
"PMID": "42799916",
"PMCID": "PMC13616018",
"ISSN": "1863-2653",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s00429-026-03166-w",
"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 neurology
In 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 communications
In 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 reports
In 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 solutions
In 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 neurobiology
In 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 data
In 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 reports
In 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 methods
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1007/s00429-026-03166-w.svg)](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:end
HTML
<!-- 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.