I haven't heard this one yet but I suspect it's based on the famous story "The Problem of Cell 13" by Jacques Futrelle. There was a whole series of stories about the eccentric scientist who was nicknamed The Thinking Machine.