The phrase
"mad scientist" refers to a fictional character who is a scientist or inventor with crazy or unconventional ideas and methods. They often experiment with dangerous or strange things, which can sometimes lead to chaos or unpredictable results.
Full definition