|

Phase Contrast Microscopy Image Correction for Neutrophil Transmigration Studies

Introduction

Selective leukocyte interactions with endothelial barriers are a characteristic component of the inflammatory response process. These spatio-temporal interactions can mechanically remodel local tissue, as well as damage healthy tissue with robust inflammation stemming from an over-reactive immune response. This is evident in many pathologies and can complicate severe conditions such as sepsis. Thus, it is paramount to understand how leukocytes interface with endothelium in the escalation of immune responses. To this end our lab continues to develop more physiological vascular barrier models, using phase-contrast microscopy as a means of analyzing leukocyte movement and transmigration on these systems.

Live phase-contrast microscopy can be subject to vignette effects  (as well as variable brightness over time), however (Figure 1).

Figure 1: In this example, a vignette effect manifests as a darker edge on the left side of the video, and a lighter edge on the right side. Vignette effects can vary but typically present as harsh gradients moving from darker grays to lighter ones.

For casual observation this is a non issue but for automated analysis protocols these variabilities add a layer of uncertainty to the analysis. More specifically, contrast abnormalities make it difficult to utilize semantic segmentation techniques through machine learning and computer vision techniques, noting that a vignette effect solicits erroneous detections with machine learning models (described in another post).

Methods and Discussion

Correcting for overemphasized phase dark class predictions typically results in a loss of phase dark detections, necessitating a frame specific brightness equalization process before classifying a video (Figure 2). This was done with a built in function in Wolfram Mathematica.

Figure 2: Flowchart detailing a brief overview of the brightness equalization process. Written in Mathematica using built in functions.

Brightness equalization fixes vignetting in a frame (Figure 3), allowing for proper assessment of cells that would have been misclassified otherwise (Figure 4).

Figure 3: Brightness equalization removes the vignette effect seen in the original video.
Figure 4: This image is taken from the “dark” edge from the experiment video. Correcting brightness allows for the gray cell to be seen as a proper “phase bright” cell, rather than “probing”.

Variable brightness over time in a video can be corrected as well. Wolfram Mathematica has a built in histogram matching function that can be used to mitigate brightness shifts in a video, and this was used in order to account for this factor (Figure 5). Note: the first frame of each video was used as the brightness reference point.

Figure 5: An interpolating function was created using the first frame of a video as a reference. This function allows for mapping pixel values from one histogram (reference frame) to another (frame to be modified). This was then applied to all other frames in the video, ensuring that average brightness intensity is maintained across each frame in a video.

The final result can be viewed here for the “Positive Control” condition: mod_PositiveControl_2

For reference, the original video can be viewed here: PositiveControl_2

Note: compression is used to make these videos fit on WordPress. At full resolution, the differences are more obvious.

Conclusion

Here we demonstrate a simple technique for video brightness correction on a per frame and per video basis. These corrections were necessary for increasing the accuracy of machine learning models applied to the video for semantic segmentation. There are some contrast aberrations created in the video that occur as a result of this process, however. These are rare, and may be corrected in the near future by usage of a new microscope.

Similar Posts

Leave a Reply