Imperial Sugar has recorded a loss in the first nine months of the fiscal year, hurt by competition and the rising cost of raw sugar.