Skip to content

Latest commit

 

History

History

Ch05_UNet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Deep Learning Crash Course

by Giovanni Volpe, Benjamin Midtvedt, Jesús Pineda, Henrik Klein Moberg, Harshith Bachimanchi, Joana B. Pereira, Carlo Manzo
No Starch Press, San Francisco (CA), 2026
ISBN-13: 9781718503922
https://nostarch.com/deep-learning-crash-course


  1. Building and Training Your First Neural Network

  2. Capturing Trends and Recognizing Patterns with Dense Neural Networks

  3. Processing Images with Convolutional Neural Networks

  4. Enhancing, Generating, and Analyzing Data with Autoencoders

  5. Segmenting and Analyzing Images with U-Nets
    Discusses U-Net architectures for image segmentation, cell counting, and various biomedical imaging applications.

  • Code 5-1: Segmenting Biological Tissue Images with a U-Net Open In Colab
    Demonstrates how to build and train a U-Net to segment internal cell structures (for example, mitochondria) in electron micrographs. It covers creating pipelines for raw images and labeled masks, using skip connections for detail retention, applying early stopping to avoid overfitting, and evaluating performance via the Jaccard Index (IoU). The notebook also demonstrates data augmentation to improve segmentation robustness.

  • Code 5-A: Detecting Quantum Dots in Fluorescence Images with a U-Net Open In Colab
    Uses a U-Net to localize fluorescent quantum dots in noisy microscopy images. It simulates realistic training data with random positions, intensities, and added noise, and pairs them with masks indicating quantum dot locations. After training on these simulations, the U-Net is tested on real experimental images. You’ll see how accurately it can mark quantum dots by generating centroid-based masks.

  • Code 5-B: Counting Cells with a U-Net Open In Colab
    Applies a U-Net to create binary masks of cell nuclei, then uses connected-component labeling to count how many nuclei the mask contains. After simulating or loading real images of stained nuclei, the notebook trains a single-channel output U-Net using a binary cross-entropy loss. Accuracy is measured by comparing predicted cell counts with ground truth, reporting mean absolute and percentage errors. This pipeline automates cell counting and quantifies how close the predictions are to actual counts.

  1. Training Neural Networks with Self-Supervised Learning

  2. Processing Time Series and Language with Recurrent Neural Networks

  3. Processing Language and Classifying Images with Attention and Transformers

  4. Creating and Transforming Images with Generative Adversarial Networks

  5. Implementing Generative AI with Diffusion Models

  6. Modeling Molecules and Complex Systems with Graph Neural Networks

  7. Continuously Improving Performance with Active Learning

  8. Mastering Decision-Making with Deep Reinforcement Learning

  9. Predicting Chaos with Reservoir Computing

CC. Companion Examples