How and when should I identify my specific research interests? I am a Computer Science graduate, who is passionate about Computer Science and various topics and want to explore them in and out.

I am interested in research but I cannot refine my interests to a particular topic. It is possibly because I did not get a chance to play with various stuffs and do various projects. So how should I refine my interests to a particular topic?Is it too early to think about it,that is should I wait for getting a Masters or am I right to think about it currently?
You are an undergrad now, so that means you have neither experience nor plenty of free time. But this doesn't mean you can't give it a shot: read up about research, and find interesting projects to do. Aim for something small, that you can, for example, accomplish in one year. The next year, try something different. I'd probably focus on topics that are not exactly covered in your curriculum, as those you are going to learn anyway.

I studied Physics, but on the side I experimented with computer simulations, to later go to image and video processing, analysis of experimental spectra, and complex networks (graph theory). All this taught me tools and ideas that I am now using, in a completely different field (Bioinformatics).

The truth is, before I started looking for a PhD, I didn't even considered Bioinformatics as an option, but I saw one offer, looked appealing, and decided it was exactly what I wanted to do. How is everything I did helping me? For example:


I have to compare some pieces of data. Comparing them pairwise is simple, so I remembered networks, and designed a robust way of combining the comparison into a global measurement. As a plus, I knew already of a good library, and how to use it so I could start coding my ideas right away.
Now I have a matrix, and I have to dig out some patterns (with lots of gaps). From my time doing image processing I remember reading about the Hough transform, and it turns out it looks a promising start point. But I also remembered when I was analysing spectra that the output is quite complex, so I will keep in mind the caveats.


The bottom line is that you don't have to start now in what you want to do. In fact, you will be a more efficient researcher if you know many different things, as you never know where you are going to end up. All this, of course, keeping an eye on your official studies.