Vidyaranya, the 14th-century scholar and sage, is credited with first classifying ragas under the melakarta system in his work 'Sangeeta Sara'. His work laid the foundation for the systematic organization of Carnatic ragas that was later refined by others.