I was driving on a road when the car suddenly accelerated for no apparent reason. I hit the brake and nothing happened. When the car accelerated, it was like when you hit resume when you have cruise control on. I did not have cruise control on. To avoid hitting a vehicle in front of me, I went off the road to the right, hit a chain link fence and stopped in a field. The car was declared a total loss by the insurance company. Earlier that day, the car was giving me a warning to brake, when I was not near another vehicle. On other occasions before this, the car would tell me to put my hands on the steering wheel when I was gripping the steering wheel.