Implantable AI System Developed for Early Detection and Treatment of Illnesses