1. A method comprising: constructing observation vectors based on a plurality of power samples indicating past power consumption of a device and a plurality of temperature samples indicating past and present values of temperatures of the device; determining an estimated temperature of the device based on fuzzy reasoning models comprising the observation vectors and a fan control parameter vector; measuring a temperature of the device; determining an error based on the estimated temperature and the measured temperature; and adapting the fan control parameter vector using a recursive least squares algorithm based on the error.