Patent attributes
Disclosed are systems and methods for detecting the beginning of a flush volume. A blended fluid is output by a fluid blending apparatus and pumped into a wellbore. The blended fluid transitions from a first composition to a second composition. A blending signal comprising time-varying data relating to characteristics of the blending apparatus or measured from sensors associated with the blending apparatus is received. Based on a first portion of the blending signal corresponding to the first composition, a calibration profile is generated. Based on the calibration profile and a second portion of the blending signal corresponding to the second composition, a transition indicator corresponding to a change in the blended fluid from the first composition to the second composition is determined. Based on the transition indicator, a flush signal indicating the beginning of a flush volume being output by the blending apparatus and pumped into the wellbore is generated.