Back in 2018 I started a master's degree in CS focusing on ML with the goal of eventually obtaining a PhD. This did not work out for two reasons: 1) most of the ML faculty left for another university. 2) I was diagnosed with depression and could barely keep up with classwork let alone do meaningful research.
Since then I have graduated and worked in non-ML-related generic software engineering jobs, always holding on to dear life due to my mental health issues and being an average performer at best. Thankfully, this year I have been approved for a new form of therapy which has resulted in great improvements. I feel almost entirely normal again and my productivity has skyrocketed. I am able to read and implement ML papers in my free time again.
I now feel determined to go back to my original plan. But the obvious problem is that my CV post Bachelor looks entirely unimpressive and going back to do yet another MS in CS seems like it would raise red flags. At this point I am not sure if there is a realistic way forward into a PhD program. Getting ML industry experience? Trying to self-publish? Going for a non-CS MS degree (e.g. stats)? I am also unsure of whether I have to/should explain my situation in my CV or motivation letters.
Essentially I am unsure how admission committees evaluate non-traditional candidates with obvious gaps in their resumes and whether a comebeback is a) realistic (if so, what paths have you seen such students take?) and b) has to be explained.