The Machinist is a 2004 psychological thriller film directed by Brad Anderson and written by Scott Kosar. It stars Christian Bale as the title character, a machinist struggling with paranoia and delusion after being unable to sleep for an entire year. Jennifer Jason Leigh, Aitana S谩nchez-Gij贸n, John Sharian, and Michael Ironside appear in supporting roles. The film drew attention due to Bale's commitment, having lost 62 pounds (28 kg) in preparation for his role.