I am from India, and I would like to pursue further education (maybe even a Ph.D.). I've messed up my BE degree (in Computer Science and Engineering) by getting consistently low marks from the second to fifth semester. My 6th semester marks are a little bit better (8.12), but that still does not improve my overall CGPA (at 6.69). This means that I have only two semesters to improve my marks, but it seems unlikely that my cumulative GPA will be higher than 7.25 or so.
I've tried my best to ask my head of department about research opportunities, but it looks like there weren't any, to begin with. So, apart from reading some journal papers, I have no experience with research whatsoever.
I would like to get into MSc in Machine Learning/Deep Learning or Cognitive Computing, but with my poor performance, I will probably be rejected. What should I be doing in order to increase my chances of getting into a prestigious research university?