Hayek, highly influenced by Mach as a young man, began reading him immediately following his return from service in World War I. He remarked about four decades later that he was stimulated by Mach's work to study psychology and the physiology of the senses, though his interest in these areas derived as much from disagreement as agreement with Mach's work.
Hayek's Journey: The Mind of Friedrich Hayek (2003) - Ch. 2 : German and Viennese Intellectual Thought