The Train of Thought is a train that appears in the Pixar film Inside Out. It is a train that travels all over the mind of Riley Andersen. It appears to be a freight train consisting of a flat train car and several covered "boxcar" styled freight cars pulled by what seems to be an electric locomotive.
It is a fantasy train with a locomotive looking like a cross between a tank engine and an electric locomotive that runs on tracks which form in front of it and disappear behind it. It goes all around Riley's mind in a more or less unpredictable way and delivers supplies like daydreams, facts and opinions, as well as memories. It is one of the only ways to get to Headquarters. The train only runs when Riley's awake. Its conductors go on break when Riley sleeps.
After Joy and Sadness get lost in Riley's mind, they meet Bing Bong, who advises them to take the Train of Thought to get back to Headquarters. From then on their journey concentrates on catching the train and then getting it to go, which turns out to be harder than they expected. However, just when they finally get onboard to Headquarters, the destruction of Honesty Island destroys the train's tracks, causing it to be lost in the Memory Dump.
The locomotive seems to be modeled after the LNER Class ES1 electric locomotive.