A neural network-based approach for reducing the effect of background temperature fluctuations in thermal monitoring systems