The problem
Finding every nucleus is the first step of most biological image-analysis pipelines and is still often done by hand. Nuclei are small, numerous and touching, so the model must keep fine spatial detail while understanding context.
Approach
- Architecture: a U-Net encoder–decoder. The contracting path captures context, the expanding path restores resolution, and skip connections carry high-resolution features across.
- Hyperparameter optimisation: Keras Tuner Hyperband over depth, filters, dropout and learning rate. Many configurations get a few epochs, and only the promising ones are promoted.
- Evaluation: pixel accuracy, binary cross-entropy and train/validation curves, plus qualitative checks of the masks on unseen samples.
Result
About 96% validation pixel accuracy and about 0.09 validation loss after 15 epochs, with closely tracking curves and no sign of over-fitting. Residual errors sit at the boundaries of touching nuclei, the natural next step for instance-aware post-processing such as watershed.
