A method of processing sensor data output by a continuous analyte sensor implanted within a body in a system comprising sensor electronics configured to receive and process sensor data output by the sensor, the sensor electronic is including a processor configured to carry out the method, the method comprising: performing a first calibration operation of the sensor; performing a second calibration operation of the sensor, wherein the first and second calibration operations are time-separated by a first time interval; performing a third calibration operation of the sensor, wherein the second and third calibration operations are time-separated by a second time interval; measuring a change in sensitivity or baseline of the sensor (100, 102) over the first time interval separating the first and second calibration operations; determining a first drift compensation function based on the measured change in sensitivity or baseline of the sensor (100, 102) over the first time interval; applying the first drift compensation function to raw sensor data or analyte data during the second time interval separating the second calibration operation and the third calibration operation; measuring a change in sensitivity or baseline of the sensor (100, 102) over the second time interval separating the second and third calibration operations; determining a second drift compensation function based on the measured change in sensitivity or baseline of the sensor (100, 102) over the second time interval; and applying the second drift compensation function to raw sensor data or analyte data after the third calibration operation; wherein the measuring a change in sensitivity or baseline of the sensor over the first and respectively over the second time interval comprises calculating a drift rate of the sensor over that time interval, and wherein the first drift compensation function is determined based on data or parameters used in the first and second time-separated calibration operations for determining respective conversion functions for converting the raw sensor data to the analyte data, and the second drift compensation function is determined based on data or parameters used in the third calibration operation subsequent to the second calibration operation and at least one of the first and second calibration operations. performing a first calibration operation of the sensor; performing a second calibration operation of the sensor, wherein the first and second calibration operations are time-separated by a first time interval; performing a third calibration operation of the sensor, wherein the second and third calibration operations are time-separated by a second time interval; measuring a change in sensitivity or baseline of the sensor (100, 102) over the first time interval separating the first and second calibration operations; determining a first drift compensation function based on the measured change in sensitivity or baseline of the sensor (100, 102) over the first time interval; applying the first drift compensation function to raw sensor data or analyte data during the second time interval separating the second calibration operation and the third calibration operation; measuring a change in sensitivity or baseline of the sensor (100, 102) over the second time interval separating the second and third calibration operations; determining a second drift compensation function based on the measured change in sensitivity or baseline of the sensor (100, 102) over the second time interval; and applying the second drift compensation function to raw sensor data or analyte data after the third calibration operation; wherein the measuring a change in sensitivity or baseline of the sensor over the first and respectively over the second time interval comprises calculating a drift rate of the sensor over that time interval, and wherein the first drift compensation function is determined based on data or parameters used in the first and second time-separated calibration operations for determining respective conversion functions for converting the raw sensor data to the analyte data, and the second drift compensation function is determined based on data or parameters used in the third calibration operation subsequent to the second calibration operation and at least one of the first and second calibration operations.