A Food Recognition System for Diabetic Patients Based on an Optimized Bag-of-Features Model | Synapse