The following is the link to a report on 'Deep Learing Based Food Recognition' by students from Stanford University. The authors have used some preprocessing methods before feeding the data for training. http://cs229.stanford.edu/proj2016/report/YuMaoWang-Deep%20Learning%20Based%20Food%20Recognition-report.pdf
The code here deals with the preprocessing steps only; Grey World and Histogram Equalization.