Vidatox

Unsupervised latent space clustering of osteosarcoma X ray spectra using PCA and deep autoencoders

Unsupervised latent space clustering of osteosarcoma X ray spectra using PCA and deep autoencoders

Scientific Reports (2026) Cite this article We’re sharing this article early to provide faster access to peer-reviewed, accepted research. It is citable and carries a permanent DOI. This version is subject to further edits and will be replaced automatically by the final Version of Record. All legal disclaimers apply. In this work, we investigate how latent space in unsupervised clustering can improve the analysis of osteosarcoma X-ray spectra.

We train deep learning autoencoders to learn low-dimensional latent representations and compare the effectiveness of clustering with Principal Component Analysis (PCA). We show that unsupervised clustering algorithms applied on these latent representations allow for an automatic detection of patterns having a biological meaning.

In addition our results show that autoencoder-derived latent spaces consistently yield higher-quality clusters in the case Density-Based Clustering Validation (DBCV) score is used for evaluation, particularly when combining raw and preprocessed spectral signals. This improvement is quantitatively supported in some cases also by the Silhouette score.

These findings demonstrate that latent representations of PCA and Deep Autoencoders capture relevant spectral structure and provide a powerful framework for the unsupervised analysis of osteosarcoma X-ray data. Computational biology and bioinformatics The authors wish to thank the anonymous Reviewers for their comment that helped to improve the clarity of this manuscript.

This research of Ferdinando Zanchetta and Rita Fioresi was supported by Gnsaga-Indam, by COST Action CaLISTA CA21109, HORIZON-MSCA-2022-SE CaLIGOLA, MSCA-DN CaLiForNIA – 101119552, PNRR MNESYS, PNRR National Center for HPC, Big Data and Quantum Computing, PNRR SimQuSec and INFN Sezione Bologna. The research of Francesca Rossi was supported by an AIRC fellowship for Italy.

University of Bologna, Bologna, ItalyDiletta Sandroni, Stefano Iotti, Emil Malucelli, Francesca Rossi, Ferdinando Zanchetta & Rita Fioresi University of Bologna, Bologna, Italy Diletta Sandroni, Stefano Iotti, Emil Malucelli, Francesca Rossi, Ferdinando Zanchetta & Rita Fioresi University of Ferrara, Ferrara, ItalyAneeqa Mehrab University of Ferrara, Ferrara, Italy Diletta SandroniView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Aneeqa MehrabView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Stefano IottiView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Emil MalucelliView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Francesca RossiView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Ferdinando ZanchettaView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Rita FioresiView author publicationsSearch author on:PubMed Google Scholar Search author on:PubMed Google Scholar Correspondence to Ferdinando Zanchetta.

The authors declare that they have no competing interests. During the final preparation of this manuscript, the authors used ChatGPT (OpenAI) for grammar and language checking and to assist in preparing and reviewing the public code repository. All AI-assisted suggestions were reviewed by the authors, who retain full responsibility for the manuscript and the released code. Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix A: Implementation details Appendix A: Implementation details To select the best autoencoder models, we performed an exhaustive grid search for both the 2-channel signal data and the preprocessed data. All autoencoders we tested follow the architecture described in Section “Materials and methods” (see Fig. 3). In particular, the encoder consists of a sequence of 1D convolutions, followed by flattening and a single-layer MLP that maps the signals to a 2-dimensional latent space.

The decoder mirrors this structure and consists of a symmetric sequence of a single-layer MLP and 1D deconvolutions, followed by a final 1D convolution with kernel size 1 to reduce the number of channels to match the input dimensionality. We used output padding to allow the model to produce sequences of the same length as the inputs, and we padded all signals with their mean using symmetric padding of length 20. The hyperparameters explored in the grid search are summarized in the following table (Table 3).

The meaning of the hyperparameters names is the following: n_layers is the number of convolutional layers in the encoder, equal to the number of deconvolutions in the decoder. n_layers is the number of convolutional layers in the encoder, equal to the number of deconvolutions in the decoder. h_dims is the number of channels of all but the last (de)encoder’s (de)convolutions. h_dims is the number of channels of all but the last (de)encoder’s (de)convolutions.

final_conv_dim is the numer of channels of the final encoder’s convolution (equal to the input channel dimension). final_conv_dim is the numer of channels of the final encoder’s convolution (equal to the input channel dimension). kernel_size is the kernel size of the (de)convolutions of the model, except the final one. kernel_size is the kernel size of the (de)convolutions of the model, except the final one. stride is the stride of all the (de)convolutions except the last one.

stride is the stride of all the (de)convolutions except the last one. For the autoencoder reconstructing the 2-channel signals, we selected the hyperparameters yielding the lowest L1 loss on the validation set. The resulting model has n_layers=4, h_dims=128, final_conv_dim=8, kernel_size=8, and stride=2.

For the autoencoder reconstructing the preprocessed signals, we selected the model achieving the lowest L1 loss on the validation set among those with n_layers=1 and final_conv_dim All clustering algorithms are applied to the joint train+validation set, using the two-dimensional representations obtained either from PCA or from the selected autoencoders. Computational requirements were evaluated on a single NVIDIA GeForce RTX 5090 GPU.

The preprocessed-signal autoencoder required approximately 0.051 s per training epoch, with a peak allocated GPU memory of 0.028 GB. The two-channel autoencoder required approximately 0.076 s per training epoch, with a peak allocated GPU memory of 0.113 GB. These values refer to wall-clock training time per epoch and peak memory allocated to PyTorch tensors under the final training configuration.

Spectral reconstruction loss For the final models, the reconstruction loss combined a standard L1 term with additional peak- and gradient-sensitive contributions: The three components were defined as where y and (hat{y}) denote the target and reconstructed spectra, respectively, (odot ) denotes element-wise multiplication, and (Delta ) is the first finite-difference operator.

The binary mask M identifies regions around strict local maxima of the target spectra, with each detected maximum extended by two spectral points on either side. The peak term therefore gives additional weight to spectral maxima, while the gradient term promotes preservation of local spectral shape. For the two-channel model, the reconstruction loss was evaluated separately for each channel and the two contributions were summed.

The complete training objective of the final models considered was then MMD regularization was computed between the latent embeddings ({z_i}_{i=1}^{n}) and samples ({tilde{z}_i}_{i=1}^{n}) drawn from a standard Gaussian prior: The target MMD weight was (lambda _{textrm{MMD}}=0.001) for the preprocessed-signal model and (lambda _{textrm{MMD}}=0.01) for the two-channel model. In both cases, the MMD weight was linearly increased from zero to its target value during the first 20 training epochs.

For the two-channel model, the reconstruction loss was evaluated separately for each channel and the two contributions were summed.

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material.

You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material.

If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. Sandroni, D., Mehrab, A., Iotti, S. et al. Unsupervised latent space clustering of osteosarcoma X ray spectra using PCA and deep autoencoders. Sci Rep (2026).

https://doi.org/10.1038/s41598-026-81640-5 DOI: https://doi.org/10.1038/s41598-026-81640-5 DOI: https://doi.org/10.1038/s41598-026-81640-5 Anyone you share the following link with will be able to read this content: Sorry, a shareable link is not currently available for this article. Provided by the Springer Nature SharedIt content-sharing initiative

Полезные ссылки

Покупка и условия заказа Vidatox

Если после новости вы хотите перейти к покупке, цене или доставке Vidatox 30CH, используйте нужный раздел ниже.

купить Vidatox 30CHцена Vidatoxдоставка Vidatoxоплата и заказ

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts