Modern photon science performed at high repetition rate free-electron laser (FEL) facilities and beyond relies on 2D pixel detectors operating at increasing frequencies (towards 100 kHz at LCLS-II) and producing rapidly increasing amounts of data (towards TB/s). This data must be rapidly stored for offline analysis and summarized in real time for online feedback to the scientists. While at LCLS all raw data has been stored, at LCLS-II this would lead to a prohibitive cost; instead, enabling real time processing of pixel detector data (dark, gain, common mode, background, charge summing, subpixel position, photon counting, data summarization) allows reducing the size and cost of online processing, offline processing and storage by orders of magnitude while preserving full photon information. This could be achieved by taking advantage of the compressibility of sparse data typical for LCLS-II applications. Faced with a similar big data challenge a decade ago, computer vision stimulated revolutionary advances in machine learning hardware and software. We investigated if these developments are useful in the field of data processing for high speed pixel detectors and found that typical deep learning models and autoencoder architectures failed to yield useful noise reduction while preserving full photon information, presumably because of the very different statistics and feature sets in computer vision and radiation imaging. However, the raw performance of modern frameworks like Tensorflow inspired us to redesign in Tensorflow mathematically equivalent versions of the state-of-the-art, “classical” algorithms used at LCLS. The novel Tensorflow models resulted in elegant, compact and hardware agnostic code, gaining 1 to 2 orders of magnitude faster processing on an inexpensive consumer GPU, reducing by 3 orders of magnitude the projected cost of online analysis and compression without photon loss at LCLS-II. The novel Tensorflow models also enabled ongoing development of a pipelined hardware system expected to yield an additional 3 to 4 orders of magnitude speedup, necessary for meeting the data acquisition and storage requirements at LCLS-II, potentially enabling acquiring every single FEL pulse at full speed. Computer vision a decade ago was dominated by hand-crafted filters; their structure inspired the deep learning revolution resulting in modern deep convolutional networks; similarly, our novel Tensorflow filters provide inspiration for designing future deep learning models for ultrafast and efficient processing and classification of pixel detector images at FEL facilities.
Skip Nav Destination
Article navigation
15 January 2019
PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON SYNCHROTRON RADIATION INSTRUMENTATION – SRI2018
11–15 June 2018
Taipei, Taiwan
Research Article|
January 15 2019
Ultrafast processing of pixel detector data with machine learning frameworks
G. Blaj;
G. Blaj
a)
1
SLAC National Accelerator Laboratory
, 2575 Sand Hill Road, Menlo Park, CA 94025, U.S.A.
a)Corresponding author: blaj@slac.stanford.edu
Search for other works by this author on:
C.-E. Chang;
C.-E. Chang
1
SLAC National Accelerator Laboratory
, 2575 Sand Hill Road, Menlo Park, CA 94025, U.S.A.
Search for other works by this author on:
C. J. Kenney
C. J. Kenney
1
SLAC National Accelerator Laboratory
, 2575 Sand Hill Road, Menlo Park, CA 94025, U.S.A.
Search for other works by this author on:
a)Corresponding author: blaj@slac.stanford.edu
AIP Conf. Proc. 2054, 060077 (2019)
Citation
G. Blaj, C.-E. Chang, C. J. Kenney; Ultrafast processing of pixel detector data with machine learning frameworks. AIP Conf. Proc. 15 January 2019; 2054 (1): 060077. https://doi.org/10.1063/1.5084708
Download citation file:
Citing articles via
Related Content
Comparison of tensorflow and tensorflow lite for object detection on Raspberry Pi 4
AIP Conference Proceedings (May 2023)
Object detection for visually impaired using tensorflow lite
AIP Conference Proceedings (May 2023)
Real-time building instance detection using tensorflow based on facade images for urban management
AIP Conference Proceedings (May 2023)
Tensorflow-Keras base masked face detection for access control gate using Raspberry Pi 4 in align with COVID-19 health protocol
AIP Conference Proceedings (August 2023)
Machine learning for solar trackers
AIP Conference Proceedings (July 2019)