This will have some overlap with the previous posters, but I would see 3 possible reasons:
1) Tech trading is on and the AI is actively exchanging technologies. If tech trading is on, you DO need to use it or you will fall behind. Let us know if you want some specific pointers on tech trading (what to do and what not to do). Make sure you have a few research alliances with AI's.
2) Your building strategy doesn't focus enough on research. As Kontana already hinted at, specializing some planets is almost always a good idea. For example dedicate one of your higher quality planets completely to research (though start by building 1-2 factories so your labs can be built quickly; later you can still replace those factories by labs if you wish). The main reason for specializing planets is that capitals (econ, manufacturing, tech) give a bonus to the planet they are built on, so to get the most value out of your capital, build it on a planet that is mostly dedicated to that specific purpose. The only exception is the econ capital: it's often best to build it on your homeworld since that one has the highest population early in the game, so it will yield the most taxes.
3) Your research priorities are not optimal. I would suggest going for some of the cheaper technologies first.
- If you have tech trading on, don't ignore the diplomacy techs: higher diplomacy will get you better deals when buying, selling or exchanging technologies with AI's. In addition, diplomacy improves your relations with the AI's, which helps to reduce the chances of being attacked.
- Get to the tech capital fast: the sooner you get a boost to your research, the better you can keep up.
- This also applies to relatively cheap technologies that give a social / military production or economy bonus: getting these fast works exponentially: faster production allows you to build faster, which in turn gets you any bonus buildings faster, etc.
- Be quick to research one of the military branches (beam, mass driver, missiles), get bigger hull sizes and some miniaturization. In the beginning I often made the mistake of having a flourishing economy but not enough military techs to build a decent fleet quickly.
Also, keep an eye on your relations with the AI: choose which ones you want to be friends with (typically it's easy to choose races with a similar ethic as yours: evil/good), set up 2 trade routes with some of these AI's as this helps to improve your relations; after 1 year establish economic and research alliances with them (preferably with as many races as possible). Try to pick some strong races as allies: first of all this reduces the chances of these strong ones attacking you, secondly you'll get the most benefit out of economic and research alliances if they are doing well.
Building on Bentley241's point: as soon as you see an AI that has a military rating above zero, build a few ships to keep up (or preferably stay ahead in military rating). AI's are far less eager to attack if your military rating is higher than theirs. It will also reduce the chances of being extorted by the AI for technology or money.
Feel free to bribe some of your future allies into attacking other AI's. If there is already a war going on, chances are less that anyone declares war on you + it weakens most of the parties that are at war.
As always, feel free to ask more questions...