All models

MicroKPNN-MT

Knowledge-masked network that predicts disease, age, gender, BMI and body site from microbiome species abundances.

Molecules, proteins and genomics · 27 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (39 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
39.7M
Operations
27
Framework
PyTorch
Recurrent
No
Published
2024, Bioinformatics Advances
Cited by
4 (as of 28 October 2026)
Authors
Mahsa Monshizadeh, Yuhui Hong, Yuzhen Ye
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18446
Graph hash
bdc3aa1556b09f2f2aaf7d6244e87dc794095321905d1ce6d5d25ffba5047a01
Skeleton hash
0b29d3558697f30a09ee58b9b3d8212e34d493b6150cd58712b87a2421856ffd
Architecture hash
0de15251c20ff63ca76afb092587143edb7d939747616cea47e0c1734ee29069
Diagram SHA-256
636a903d6a61e7cc44dd8a1cb60a5d0fee857926085c98d2192a1ce4fb424f3a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

MicroKPNN-MT is a unified model that predicts human phenotype from microbiome data, along with metadata such as age and gender. It builds on the authors' earlier MicroKPNN framework, which incorporates prior knowledge of microbial species into neural networks.

Each input node represents the relative abundance of one microbial species in a sample. The first hidden layer is a customized linear layer called MaskedLinear, which masks the connections between the input and hidden layers according to prior knowledge about three groups: metabolites, taxa and communities. A dedicated decoder is included for each of age, gender, BMI and body site, and a disease decoder takes its input from the outputs of the metadata decoders and the customized layer. If true metadata values are available they are used directly; otherwise the predicted metadata are used for disease prediction.

The authors trained and tested on mBodyMap data: 34,233 samples from 56 projects, involving 25 diseases, with 6,052 species identified. In 5-fold cross-validation on that benchmark, the paper reports that the model outperforms its baseline models in accuracy and F1 score. On the same benchmark RF achieves the highest AUPRC.

Key idea. MicroKPNN-MT adds metadata decoders to a knowledge-primed network, so that real or predicted age, gender, BMI and body site feed its disease prediction.

  • MicroKPNN-MT
  • multitask knowledge-primed neural network
  • human microbiome
  • microbiome disease prediction
  • host phenotype prediction
  • missing metadata prediction
  • species abundance
  • mBodyMap
  • masked linear layer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Monshizadeh_2024, title={Multitask knowledge-primed neural network for predicting missing metadata and host phenotype based on human microbiome}, volume={5}, ISSN={2635-0041}, url={http://dx.doi.org/10.1093/bioadv/vbae203}, DOI={10.1093/bioadv/vbae203}, number={1}, journal={Bioinformatics Advances}, publisher={Oxford University Press (OUP)}, author={Monshizadeh, Mahsa and Hong, Yuhui and Ye, Yuzhen}, editor={Lengauer, Thomas}, year={2024}, month=Dec }