I live in a 1 room apartment and it definitely does feel like a jail cell, there is so much to do out there but when you're by yourself its hard to go out and have fun.
First of all, tell your roommate to grow up and lock the door. That's not even safe and that's stupid to have to feel insecure all the time.
Get friends... people you study with, friends at home, etc. Try dating a bit.. Do things when you aren't studying-rent a movie now and then, eat different things, talk to different people, and get time some alone time.
Try to make your relationship with your parents stronger..
Keep studying and keep your grades up, it'll definitely be worth it!