SUZU, Japan—It has been a decade since the train stopped running in a sleepy town at the tip of Japan’s Noto Peninsula, and bus routes have dwindled. The trend limits mobility options for the city’s dwindling rural population of 15,000, nearly half older than 65.

However, Suzu city officials and researchers may have a solution: vehicles that drive themselves.

For...