George Boole's life story matches that description.
George Boole (/buːl/; 2 November 1815 – 8 December 1864) was a largely self-taught English mathematician, philosopher, and logician, most of whose short career was spent as the first professor of mathematics at Queen's College, Cork in Ireland. He worked in the fields of differential equations and algebraic logic, and is best known as the author of The Laws of Thought (1854) which contains Boolean algebra. Boolean logic is credited with laying the foundations for the Information Age.
In late November 1864, Boole walked, in heavy rain, from his home at Lichfield Cottage in Ballintemple to the university, a distance of three miles, and lectured wearing his wet clothes. He soon became ill, developing pneumonia. As his wife believed that remedies should resemble their cause, she wrapped him in wet blankets – the wet having brought on his illness. Boole's condition worsened and on 8 December 1864, he died of fever-induced pleural effusion.
Sauce: https://en.m.wikipedia.org/wiki/George_Boole