IP Library Granted Patent US 12,657,885
Granted Patent B2
US 12,657,885 · App. 17/856,912 · Granted Jun 16, 2026

Image representation learning in digital pathology

Inventors: Trung Kien Nguyen (Chelsea, MI); Samaneh Abbasi-Sureshjani (Basel, CH); Jacob Gildenblat (Holon, IL); Paul MB Dhalluin (Riedisheim, FR); Zijun Gao (Ann Arbor, MI)
Assignees: Genentech, Inc.; Hoffmann-La Roche Inc.
G06V10/7747G06T7/0014G06V10/82G06T2207/10064
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,657,885
App. No.
17/856,912
Granted
Jun 16, 2026
Kind
B2
Abstract

Described herein are systems, methods, and programming for analyzing and classifying digital pathology images. Some embodiments include receiving whole slide images (WSIs) and dividing each of the WSIs into tiles. For each WSI, a random subset of the tiles may be selected and augmented views of each of the selected tiles may be generated. For each of the selected tiles, a first convolutional neural network (CNN) may be trained to: generate, using a first one of the augmented views corresponding to the selected tile, a first representation of the selected tile, and predict a second representation of the selected tile to be generated by a second CNN, wherein the second representation is generated based on a second one of the augmented views of the selected tile.

Claims (78)

1 . A computer-implemented method for training machine-learning models customized for digital pathology, the method comprising:

receiving a plurality of whole slide images;

dividing each of the whole slide images into a plurality of tiles;

for each of the whole slide images:

selecting a random subset of the tiles;

generating a plurality of augmented views of each of the selected tiles based on the selected random subset of the tiles by:

creating a plurality of random crops of each of the selected tiles, and

identifying a structural feature relevant in digital pathology that is present in the selected random subset of the tiles; and

selecting based on the identified structural feature relevant in digital pathology, from the plurality of random crops, at least two random crops such that the at least two random crops share the feature relevant in digital pathology, and

augmenting the at least two random crops, wherein each of the at least two random crops is augmented based on shifting pixel values of the respective random crop in accordance with a distance vector between a first center of mass of the respective random crop and a second center of mass of a randomly selected tile in a predetermined color space; and

for each of the selected tiles, training a first convolutional neural network (CNN) to learn the structural feature relevant in digital pathology by:

generating, using a first one of the augmented views corresponding to the selected tile, a first representation of the selected tile;

predicting a second representation of the selected tile to be generated by a second CNN, wherein the second representation is generated based on a second one of the augmented views of the selected tile; and

updating one or more weights of the first CNN based on the first representation and the second representation.

2 . The method of claim 1 , wherein the whole slide images are of a plurality of types of tissue stained with hematoxylin and eosin.

3 . The method of claim 1 , wherein augmenting the at least two random crops further comprises at least one of:

randomly cropping the random crop of the at least two random crop, randomly scaling the random crop of the at least two random crop, randomly flipping the random crop of the at least two random crop about a horizontal or vertical axis, randomly rotating and translating the random crop of the at least two random crop, generating random Gaussian blurring of the random crop of the at least two random crop, randomly changing color to grayscale in the random crop of the at least two random crop, or normalizing the random crop of the at least two random crop.

4 . The method of claim 1 , wherein the pixel values of the respective random crop are shifted within a certain range to preserve color information.

5 . The method of claim 1 , wherein a color of the at least two random crops is being translated and augmented to mimic an image with a color of one of the whole slide images, wherein the whole slide images comprise a training set of images.

6 . The method of claim 1 , further comprising:

projecting an image representation of each tile of the random selected subset of tiles to two-dimensional space.

7 . The method of claim 6 , wherein projecting the image representation comprises:

generating an embedding of each tile of the random selected subset of tiles in a feature embedding space, wherein the embedding is represented as an array of numbers each corresponding to a feature of the tile.

8 . The method of claim 1 , wherein at least some of the random subset of tiles selected overlap.

9 . The method of claim 1 , wherein training the first CNN comprises:

minimizing a loss function based on the generated first representation and the predicted second representation.

10 . The method of claim 1 , further comprising:

preparing a biological sample to be scanned by a scanner;

producing a set of sections of the prepared biological sample;

causing one or more sections of the produced sections to be stained via a staining agent;

providing the one or more stained sections to the scanner to obtain a digital image of each stained section; and

classifying, based on the digital image and the first CNN, the biological sample as depicting at least one of a plurality of candidate results, wherein the candidate results represent a plurality of tissue abnormalities.

11 . The method of claim 1 , further comprising:

receiving a liquid biological sample slide;

providing the liquid biological sample slide to a scanner to capture an image of the liquid biological sample slide; and

classifying, based on the digital image and the trained first CNN, the liquid biological sample as depicting at least one of a plurality of candidate results.

12 . The method of claim 1 , further comprising:

obtaining an image of a biological sample from a scanner via a user device, wherein the trained first CNN is configured to classify the image of the biological sample based on additional information provided by a user of the user device.

13 . The method of claim 1 , further comprising:

classifying a digital image depicting a biological sample using the trained first CNN.

14 . The method of claim 1 , further comprising:

obtaining a digital image depicting a biological sample;

dividing the digital image into a set of tiles;

generating, using the first CNN, an embedding of each tile of the set of tiles in a feature embedding space; and

generating, based on each embedding, an output corresponding to a result tile, the result tile being one of the set of tiles.

15 . The method of claim 14 , wherein the embedding is further generated based on contextual information associated with at least one of: (i) each tile or (ii) content depicted by each tile, and the embedding includes at least one of: (i) a feature indicating a size of an object depicted within the digital image or (ii) a feature indicating a density of an objected depicted within the digital image.

16 . The method of claim 14 , further comprising:

receiving a request to identify a whole slide image based on a tile, an identifier of a tile, or an identifier of the whole slide image, wherein the digital image comprises the whole slide image, and the digital image is obtained based on the request.

17 . A non-transitory computer-readable medium storing computer program instructions for training machine-learning models customized for digital pathology, the program instructions that, when executed by one or more processors, effectuate operations comprising:

receiving a plurality of whole slide images;

dividing each of the whole slide images into a plurality of tiles;

for each of the whole slide images:

selecting a random subset of the tiles;

generating a plurality of augmented views of each of the selected tiles based on the selected random subset of the tiles by:

creating a plurality of random crops of each of the selected tiles, and

identifying a structural feature relevant in digital pathology that is present in the selected random subset of the tiles; and

selecting based on the identified structural feature relevant in digital pathology, from the plurality of random crops, at least two random crops such that the at least two random crops share the feature relevant in digital pathology, and

augmenting the at least two random crops, wherein each of the at least two random crops is augmented based on shifting pixel values of the respective random crop in accordance with a distance vector between a first center of mass of the respective random crop and a second center of mass of a randomly selected tile in a predetermined color space; and

for each of the selected tiles, training a first convolutional neural network (CNN) to learn the structural feature relevant in digital pathology by:

generating, using a first one of the augmented views corresponding to the selected tile, a first representation of the selected tile;

predicting a second representation of the selected tile to be generated by a second CNN, wherein the second representation is generated based on a second one of the augmented views of the selected tile; and

updating one or more weights of the first CNN based on the first representation and the second representation.

18 . A system for training machine-learning models customized for digital pathology, comprising:

memory storing computer program instructions;

one or more processors configured to execute the computer program instructions to:

receive a plurality of whole slide images;

divide each of the whole slide images into a plurality of tiles;

for each of the whole slide images:

select a random subset of the tiles;

generate a plurality of augmented views of each of the selected tiles based on the selected random subset of the tiles by:

creating a plurality of random crops of each of the selected tiles, and

identifying a structural feature relevant in digital pathology that is present in the selected random subset of the tiles; and

selecting based on the identified structural feature relevant in digital pathology, from the plurality of random crops, at least two random crops such that the at least two random crops share the feature relevant in digital pathology, and

augmenting the at least two random crops, wherein each of the at least two random crops is augmented based on shifting pixel values of the respective random crop in accordance with a distance vector between a first center of mass of the respective random crop and a second center of mass of a randomly selected tile in a predetermined color space; and

for each of the selected tiles, train a first convolutional neural network (CNN) to learn the structural feature relevant in digital pathology by:

generating, using a first one of the augmented views corresponding to the selected tile, a first representation of the selected tile;

predicting a second representation of the selected tile to be generated by a second CNN, wherein the second representation is generated based on a second one of the augmented views of the selected tile; and

updating one or more weights of the first CNN based on the first representation and the second representation.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2025
From: DHALLUIN, PAUL MICHEL BERNARD
To: F. HOFFMANN-LA ROCHE AG
Reel/Frame 071224/0310 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2025
From: F. HOFFMANN-LA ROCHE AG
To: HOFFMANN-LA ROCHE INC.
Reel/Frame 071224/0428 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 15, 2025
From: NGUYEN, TRUNG KIEN
To: GENENTECH, INC.
Reel/Frame 070838/0183 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 15, 2025
From: GAO, ZIJUN
To: GENENTECH, INC.
Reel/Frame 070838/0219 →
Continuity (2)
Provisional Application 63218165 · Jul 2, 2021
Related Publication 20230016472A1 · Jan 19, 2023
References Cited (26)
US 11276172B2 · Hosseini · 2022 [cited by examiner]
US 11455753B1 · Alemi · 2022 [cited by examiner]
US 11954596B2 · Song · 2024 [cited by examiner]
US 12346410B2 · Bhargava · 2025 [cited by examiner]
US 20200250398A1 · Courtiol · 2020 [cited by examiner]
US 20200279126A1 · Nie · 2020 [cited by examiner]
US 20210019342A1 · Peng · 2021 [cited by examiner]
US 20220180518A1 · Agus · 2022 [cited by examiner]
US 20220319000A1 · Teichmann · 2022 [cited by examiner]
US 20240020958A1 · Dehaene · 2024 [cited by examiner]
US 20240233416A1 · Zhang · 2024 [cited by examiner]
T. Li, M. Feng, Y. Wang and K. Xu, “Whole Slide Images Based Cervical Cancer Classification Using Self-supervised Learning and Multiple Instance Learning,” IEEE, Mar. 26-28, 2021 (Year: 2021). [cited by examiner]
J. C. Caicedo, C. McQuin, A. Goodman, S. Singh and A. E. Carpenter, “Weakly Supervised Learning of Single-Cell Feature Embeddings,” IEEE, Jun. 18-23, 2018 (Year: 2018). [cited by examiner]
Sornapudi S, Brown GT, Xue Z, Long R, Allen L, Antani S. Comparing Deep Learning Models for Multi-cell Classification in Liquid-based Cervical Cytology Image. AMIA Annu Symp Proc. Mar. 4, 2020 (Year: 2020). [cited by examiner]
Ting Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey Hinton, “A Simple Framework for Contrastive Learning of Visual Representations”, Jul. 2001 (Year: 2020). [cited by examiner]
Gildenblat, J., & Klaiman, E. (2019). Self-supervised similarity learning for digital pathology. arXiv preprint arXiv:1905.08139. (Year: 2019). [cited by examiner]
Chuang, C. Y., Robinson, J., Lin, Y. C., Torralba, A., & Jegelka, S. (2020). Debiased contrastive learning. Advances in neural information processing systems, 33, 8765-8775. (Year: 2020). [cited by examiner]
Lu, M. Y., Chen, R. J., Wang, J., Dillon, D., & Mahmood, F. (2019). Semi-supervised histology classification using deep multiple instance learning and contrastive predictive coding. arXiv preprint arXiv:1910.10825. (Yea… [cited by examiner]
Ciga, O., Xu, T., & Martel, A. L. (2022). Self supervised contrastive learning for digital histopathology. Machine learning with applications, 7, 100198. (Year: 2022). [cited by examiner]
Tellez, D., van der Laak, J., & Ciompi, F. (2018). Gigapixel whole-slide image classification using unsupervised image compression and contrastive training. (Year: 2018). [cited by examiner]
Robles, W. R. Q., Noree, S., Ko, Y. S., Wong, B., Kim, J., & Yi, M. Y. (2025). Spatial Context-Driven Positive Pair Sampling for Enhanced Histopathology Image Classification. arXiv preprint arXiv:2503.05170. (Year: 2025… [cited by examiner]
Tian, Y., Sun, C., Poole, B., Krishnan, D., Schmid, C., & Isola, P. (2020). What makes for good views for contrastive learning ?. Advances in neural information processing systems, 33, 6827-6839. (Year: 2020). [cited by examiner]
Zhang, H., et al. (2023). Self-supervised deep learning for highly efficient spatial immunophenotyping. EBio Medicine, 95. retrieved from https://discovery.ucl.ac.uk/id/eprint/10194375/2/Ledermann_SANDI_v5.pdf (Year: 20… [cited by examiner]
Michael P. Notter, “Color Engineering for Special Images” (Dec. 2021), retrieved online Nov. 3, 2025, available at <https://miykael.github.io/blog/2021/color_engineering_medmnist/> (Year: 2021). [cited by examiner]
Addie Ira Borja Parico, “What is PCA Color Augmentation?”, (2018), retrieved online Nov. 3, 2025, available at <https://aparico.github.io/> (Year: 2018). [cited by examiner]
Grill, J.-B. et al. (2020). “Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning,” 34th Conference on Neural Information Processing Systems, 14 pages. [cited by applicant]