I do not think a sprinkler system is a good solution unless you have a large water supply, with at least 5,000- 6,700 gallons of water that can deliver about 225 gpm at 50 psi for 20-30 minutes. That is what a basic sprinkler system will take. This is based on 15 gpm per 15 sprinklers operating at the same time. NFPA 13 covers sprinkler design and goes into all kinds of detail. Fire detection system, heat detectors in the barn and smoke detection in the living areas, and a second means of escape would be the way to go. Along with a good 2 hour fire barrier, i.e. two 5/8 type X sheet rock on the ceiling between the living space and you.
Here is some other stuff to consider.
I hope you have smoke detectors in all of your bedrooms, laundry room, boiler/furnace room, etc. and on each level of your home. The type of smoke detector you have is very important too. Most people have ionization type, cheap and are plentiful. BUT they do not work with ALL types of fires.
There are two basic types of smoke alarms:
Ionization - Ionization alarms contain radioactive material that ionizes the air, making an electrical path. When smoke enters, the smoke molecules attach themselves to the ions. The change in electric current flow triggers the alarm. The radioactive material is called americium. It's a radioactive metallic element produced by bombardment of plutonium with high-energy neutrons. The amount is very small and not harmful.
Photo-electric - These type of alarms contain a light source (usually a bulb) and a photocell, which is activated by light. Light from the bulb reflects off the smoke particles and is directed towards the photocell. The photocell then is activated to trigger the alarm.
The ionization alarm responds faster to small smoke particles, while the photoelectric responds faster to larger smoke particles. As a rule of the thumb, fast flaming fires produce smaller smoke particles and smoldering fires produce large particles. Thus the response time of the two alarms will vary, depending on the mixture of small and large particles from the fire.
Installing several smoke detectors of each type will provide better coverage in the extreme case of long-term smoldering or fast flaming fires.
The BEST type is a combination of ionization and photo electric detector. They sell them at Home Depot, for about $25. Look on the back of the package and if you see uses ionization AND photo electric, this is the one to buy. The detector will give you the best possible protection.
I assume you have several fire extinguishers in your house?
The other thing, now I will put my insurance hat on, is to make sure you have 100% replacement cost for your house AND contents. A lot of people have AVC, (actual cash value), which means the TV you bought 2 years ago for $500 is now worth $150. With 100% replacement cost, you would be paid $500. Makes a big difference if you do have a loss and have to replace everything. And if you rent, make sure you have rental insurance, to cover your contents.