The Lane Keeping Assist System (LKAS) can read the road ahead and apply changes to the power steering to keep the car between white lines.
Developed by Honda, it will be launched on top-of-the-range 2.4-litre versions of the updated Accord, which will be unveiled in September.
The intuitive system will not operate unless the driver is holding the steering wheel and switches off when the indicators are used.
If the driver tries to change lanes without signaling, an alarm sounds, although the driver is not stopped from intentionally moving between lanes.
But during normal driving, the system makes imperceptible changes to keep the vehicle in the middle of the lane.
Honda claims the benefits of the system are reduced fatigue for drivers on long journeys and much safer driving. The system will be offered with adaptive cruise control, which keeps the car a set distance from the vehicle in front, braking and accelerating automatically as necessary.
The potential for LKAS is much wider than in cars alone, as it could also be used in the HGV sector.