liveBook · Manning

Chapter 11: Using PyTorch to fight cancer

What you will learn in chapter 11 of Deep Learning with PyTorch, Second Edition

This introduction previews the lung cancer project’s overall plan and the data and domain context to be covered in the chapter.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction previews the lung cancer project’s overall plan and the data and domain context to be covered in the chapter.

11.1 Introduction to the use case

Introduces lung tumor detection from CT scans as a realistic PyTorch project, explaining its motivation, engineering challenges, and limits.

Key terms: CT scans, suspected malignant tumors, early stages, highly trained specialists, unsolved, structured approach, open source projects

11.2 Preparing for a large-scale project

This section explains why the lung-cancer project needs substantial data preparation, a staged approach, domain understanding, and significant computing resources.

Key terms: 3D data, 2D-specific tools, off-the-shelf dataset, training samples, end-to-end result, series of simpler problems, finite computational resources, radiation oncology, problem space, disciplined experimentation

11.3 What is a CT scan, exactly?

The section explains CT scans as three-dimensional data, including what their voxels represent, how scans differ from X-rays, and why acquisition details matter when working with them.

Key terms: CT scan, 3D array, single-channel data, X-ray, projection, voxel, 3D grid, numeric value, radiodensity, rectangular prism

11.4 The project: An end-to-end detector for lung cancer

The section lays out a modular path from a chest CT scan to a patient-level lung cancer assessment and explains why the project is divided and informed by clinical knowledge and prior work.

Key terms: CT scan, segmentation, voxels, nodule candidates, classification, tumor, nodule, benign, malignant, human-annotated

11.4.1 Why can’t we just throw data at a neural network until it works?

This section explains why lung-cancer detection in CT scans is difficult and why the project uses separate, focused models rather than training one network on whole scans.

Key terms: CT scan, voxels, end-to-end, segmentation model, classification model, end-to-end gradient backpropagation, zoomed-in view, nodule, benign, malignant tumor

11.4.2 Our data source: The LUNA Grand Challenge

This section explains why the LUNA Grand Challenge is a useful CT-scan data source, how its tracks relate to the project, and why other CT data needs careful checking.

Key terms: LUNA Grand Challenge, open dataset, high-quality labels, public ranking, CT scans, voxels, LUNA data, LUNA 2016, Nodule detection (NDET), False positive reduction (FPRED)

11.4.3 Downloading the LUNA data

Explains how to obtain and organize the LUNA data and CSV files, and how disk-space limits affect running the project examples.

Key terms: LUNA, subset0 through subset9, candidates.csv, annotations.csv, subsets, cache space, training set

11.5 Conclusion

The conclusion emphasizes that researching the problem and designing the project are meaningful progress even before any code is written.

Key terms: research and preparation, understanding the space, design work

11.6 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 10: Diffusion models for images Chapter 12: Combining data sources into a unified dataset →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.