Downloads · 30 days
0
nvivanco/DuMM_bacteria_track
DuMM_bacteria_track is a image feature extraction model from nvivanco. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains the trained weights and documentation for the DuMM Bacteria Tracker Model, a Graph Neural Network (GNN) designed for cell lineage link prediction in time-lapse microscopy data.
Downloads · 30 days
0
Access
Public
Updated Oct 3, 2025
Repo size
1 MB
Likes
0
Public
Click a slice to open those files.
.pt1 MB · 99%
From the Hugging Face model README
This repository contains the trained weights and documentation for the DuMM Bacteria Tracker Model, a Graph Neural Network (GNN) designed for cell lineage link prediction in time-lapse microscopy data.
The model uses a custom implementation of a Parameter Decoupled Network (PDN) variant within an Edge-Propagation Message Passing Neural Network (EP-MPNN) architecture, inspired by recent advancements in dynamic graph representation learning.
LineageLinkPredictionGNN (custom nn.Module).EP_MPNN_Block which incorporates Distance & Similarity (DS) features and a Jumping Knowledge (JK) network for aggregating features across multiple layers.BCEWithLogitsLoss.StandardScalerTransform and dynamically used to compute edge attributes (Absolute Difference + Cosine Similarity) via the DS_block.The model uses a 10-dimensional feature vector for each node (cell) derived from image analysis. These features capture morphological and intensity properties of the bacterial cells across two channels (Phase Contrast and Fluorescence).
| Feature Name | Type | Description |
|---|---|---|
area | Morphological | Area of the cell segment. |
centroid_y | Positional | Y-coordinate of the cell's centroid (critical for 1D growth systems). |
axis_major_length | Morphological | Length of the cell's major axis. |
axis_minor_length | Morphological | Length of the cell's minor axis. |
intensity_mean/max/min_phase | Intensity | Mean, max, and min pixel intensity in the Phase Contrast channel. |
intensity_mean/max/min_fluor | Intensity | Mean, max, and min pixel intensity in the Fluorescence channel. |
The model was trained on microscopy images of the duplex mother machine developed by the Jun lab (https://jun.ucsd.edu/mother_machine.php)
To ensure the model generalizes to future, unseen data, a time-based temporal split was employed:
sorted_time_frames[:train_split_idx]).sorted_time_frames[train_split_idx:val_split_idx]).sorted_time_frames[val_split_idx:]).sklearn.preprocessing.StandardScaler).all_train_node_features_df).StandardScalerTransform. This avoids data leakage.Candidate edges (links between cells in adjacent time frames) were generated based on a custom set of geometric and morphological heuristics:
max_dist_link (default 50.0).min_area_ratio_continuation (0.8) to max_area_ratio_continuation (1.2).min_area_ratio_division (1.8) to max_area_ratio_division (2.2).| Hyperparameter | Value | Description |
|---|---|---|
GNN Layers (num_blocks) | 2 | Number of sequential EP-MPNN blocks. |
| Hidden Channels | 128 | Dimension for node and edge embeddings. |
| Optimizer | Adam | Standard optimization algorithm. |
| Learning Rate | 0.001 | Base learning rate. |
| Weight Decay | 0.0005 | L2 regularization applied to prevent overfitting. |
| Batch Size | 32 | Number of graphs processed per iteration. |
| Evaluation Metric | Validation Accuracy (val_acc) | Used for saving the best_link_prediction_model.pt. |
| Early Stopping | Yes | Monitors Validation Loss (val_loss) with a patience of 10 epochs. |
| Max Epochs | 500 | Maximum number of training epochs. |