The present techniques are directed to a pipeline transporting a production fluid including hydrocarbon. An optical fiber is disposed along a length of the pipeline. A control system determines a predicted operating temperature based on pressure and flow rate of the production fluid in the pipeline. The control system determines a measured temperature along the pipeline using the optical fiber. The control system detects and locates a temperature anomaly by comparing the measured temperature of the pipeline to the predicted operating temperature.