Low-Cost Device Prototype for Automatic Medical Diagnosis Using Deep Learning Methods