Liquid sample delivery systems are used extensively for serial femtosecond crystallography at X-ray free-electron lasers (XFELs). However, misalignment of the liquid jet and the XFEL beam leads to the X-rays either partially or completely missing the sample, resulting in sample wastage and a loss of experiment time. Implemented here is an algorithm to analyse optical images using machine vision to determine whether there is overlap of the X-ray beam and liquid jet. The long-term goal is to use the output from this algorithm to implement an automated feedback mechanism to maintain constant alignment of the X-ray beam and liquid jet. The key elements of this jet alignment algorithm are discussed and its performance is characterized by comparing the results with a manual analysis of the optical image data. The success rate of the algorithm for correctly identifying hits is quantified via a similarity metric, the Dice coefficient. In total four different nozzle designs were used in this study, yielding an overall Dice coefficient of 0.98.
Keywords: automation; image processing; liquid jet alignment; machine vision.
© Jaydeep Patel et al. 2022.