In one embodiment, a method includes accessing first time-series data based on electromagnetic radiation in a first spectrum and second time-series data based on electromagnetic radiation in a second spectrum. The method also includes comparing the first time-series data with the second time-series data and determining, based on the comparison, (1) whether a stopping condition associated with a device has occurred or (2) whether a discarding condition associated with the first time-series data or the second time-series data has occurred.