Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Oct 5:19:5688-5700.
doi: 10.1016/j.csbj.2021.10.001. eCollection 2021.

Deep-learning in situ classification of HIV-1 virion morphology

Affiliations

Deep-learning in situ classification of HIV-1 virion morphology

Juan S Rey et al. Comput Struct Biotechnol J. .

Abstract

Transmission electron microscopy (TEM) has a multitude of uses in biomedical imaging due to its ability to discern ultrastructure morphology at the nanometer scale. Through its ability to directly visualize virus particles, TEM has for several decades been an invaluable tool in the virologist's toolbox. As applied to HIV-1 research, TEM is critical to evaluate activities of inhibitors that block the maturation and morphogenesis steps of the virus lifecycle. However, both the preparation and analysis of TEM micrographs requires time consuming manual labor. Through the dedicated use of computer vision frameworks and machine learning techniques, we have developed a convolutional neural network backbone of a two-stage Region Based Convolutional Neural Network (RCNN) capable of identifying, segmenting and classifying HIV-1 virions at different stages of maturation and morphogenesis. Our results outperformed common RCNN backbones, achieving 80.0% mean Average Precision on a diverse set of micrographs comprising different experimental samples and magnifications. We expect that this tool will be of interest to a broad range of researchers.

Keywords: Artificial intelligence; Computer vision; Deep learning; Electron microscopy; HIV-1; Quantitative biology; Virology.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

None
Graphical abstract
Fig. 1
Fig. 1
HIV-1 virion morphologies pertinent to this study. A Schematic representation showing the configuration of an immature virion and samples from TEM micrographs. The color scheme cartoons the following components from exteror to interior: blue, envelope glycoproteins; green, lipid bilayer; yellow, matrix protein; black, capsid protein; red, RNA. B Schematic representation showing the configuration of a mature virion and samples from TEM micrographs. C Schematic representation showing the configuration of an eccentric virion and samples from TEM micrographs.
Fig. 2
Fig. 2
Network architecture of the deep-learning classifier developed in the present work. The methodology is built upon a two component classifier system that is able to segment the particles (RPN) and classify the segmented regions (CNN). A Schematic of a two-stage Faster RCNN architecture for multiple object detection and classification (instance segmentation). Faster RCNN uses a Region Proposal Network (RPN) to generate Regions of Interest (RoI) for classification. Both RPN and classifier heads share the same backbone CNN. B Our backbone CNN, TEMNet, is composed of several ConvBlocks (Convolution, GroupNormalization and ReLU activation) and MaxPooling layers. We used a Feature Pyramid Network (FPN) to generate multi-scale feature maps on which to generate predictions. Network activations were funneled to three output channels, via two fully-connected layers and soft max output. Each output channel denotes one classification of viral particle.
Fig. 3
Fig. 3
Learning error analysis of our particle classifier. A Training and validation error for the ResNet101 backbone versus training epoch, one full cycle of our Faster RCNN implementation. B Training and validation error for the TEMNet backbone versus training epoch. Early stopping and learning rate reduction were used to select the best weights avoiding overfitting. C Ground Truth labeled micrograph. All micrographs used for training our network were evaluated by eye and manually labeled. Instance classification of 200 HIV-1 particles required approximately 30 min to complete. D Automated predictions obtained using the TEMNet backbone for the micrograph in C. The network generated predictions on 130 micrographs in 5 min on one GPU. Scale bars in panels C and D are shown in the lower left portions of the images. Bounding box colors in panels C and D identify viral classifications: mature (yellow), immature (blue), eccentric (green).
Fig. 4
Fig. 4
Feature map activations corresponding to each convolutional block of the TEMNet backbone (C1, C2, C3, C4) and each level of the Feature Pyramid Network (P2, P3, P4). The first convolutional block identifies borders and electron density in virion lumina and isolates it from the background, the second block learns image processing techniques such as watershedding. Additional layers become more abstract and escape comprehensive description.
Fig. 5
Fig. 5
Micrograph segmentation via a sliding window: A A windowed region was translated across the image and predictions were generated on the segmented regions. B The predictions were gathered on the full scale micrograph and C Non-max suppression (NMS) was applied to determine classifications with highest confidence from overlapping Regions of Interest (RoIs), to glean final predictions. Numbers above each bounding box correspond to prediction “confidence” or certainty, which may ultimately be used to filter predictions (see Fig. 7). Scale bars are shown in the lower left portions of panels B and C.
Fig. 6
Fig. 6
Virion classification on multi-magnification micrograph sets. Predictions across different raw TEM micrographs with A The same magnification used for training (30,000×). B A magnification lower than is discernible by a trained expert (20,000×). Our RCNN network calculates the appropriate sliding window size to segment a micrograph according to its magnification. Scale bars are shown beneath the micrographs.
Fig. 7
Fig. 7
In situ classifications of virions from different HIV-1 IN (D116N, N184L, delIN) and PR mutant (D25A) viruses. A Ground truth distribution from manually ascribed micrograph sets. B Resulting distributions from TEMNet’s predictions on the same micrographs. Predictions with a confidence score c above 0.5 were counted while those under this confidence threshold were rejected. Numbers over each distribution indicate the number of virus particles counted and the number of independent micrographs analyzed (*). Error bars represent standard deviation from experimental replicates.
Fig. 8
Fig. 8
In situ classifications of virions from WT HIV-1NL4-3, IN deletion mutant delIN, and primary HIV-1 isolates YU2, and JR-CSF. A Ground truth distribution from manually ascribed micrograph sets. B Resulting distributions from TEMNet’s predictions on the same micrographs. Predictions with a confidence score c above 0.5 were counted while those under this confidence threshold were rejected. Other indicators are the same as Fig. 7.

References

    1. Nagler F.P.O., Rake G. The use of the electron microscope in diagnosis of variola, vaccinia, and varicella. J Bacteriol. 1948;55(1):45–51. - PMC - PubMed
    1. Brenner S., Horne R. A negative staining method for high resolution electron microscopy of viruses. Biochim Biophys Acta. 1959;34:103–110. doi: 10.1016/0006-3002(59)90237-9. - DOI - PubMed
    1. Barre-Sinoussi F., Chermann J., Rey F., Nugeyre M., Chamaret S., Gruest J., Dauguet C., Axler-Blin C., Vezinet-Brun F., Rouzioux C., Rozenbaum W., Montagnier L. Isolation of a T-lymphotropic retrovirus from a patient at risk for acquired immune deficiency syndrome (aids) Science. 1983;220(4599):868–871. doi: 10.1126/science.6189183. - DOI - PubMed
    1. von Stillfried S., Boor P. Detection methods for SARS-CoV-2 in tissue. Der Pathologe. 2021:1432–1963. doi: 10.1007/s00292-021-00920-1. - DOI - PMC - PubMed
    1. Sundquist W., Kräusslich H.-G. HIV-1 assembly, budding, and maturation. Cold Spring Harbor Perspectives Medicine. 2012;2 doi: 10.1101/cshperspect.a006924. - DOI - PMC - PubMed