A method may include directing a radiation beam at a sample, the beam including two periods of radiation having different wavelengths, an analyte in a fluid within the sample having different absorption coefficients for the two different wavelengths, detecting the beam with a detector when the sample is in a first fluid state, the detector configured to generate an output signal proportional to an intensity of the beam at each of the two different wavelengths, detecting the beam with the detector when the sample is in a second fluid state, the sample transitioning from the first fluid state to the second fluid state by a pulsation of the sample, obtaining estimates of an amount of fluid at the first and second fluid states, and determining an analyte concentration estimate based on the output signal and the estimate of the amount of fluid at the first and second fluid states.