Technically, science didn’t exist in ancient times, though craftsmanship, metallurgy, engineering and “witchcraft” did. I don’t think Daedalus or Archimedes fit the “mad” description either, but there is certainly a story from ancient times that does, that of Hephaestus, who according to the stories, built robots and elaborate mechanical people-traps. Just what we’d expect of a mad scientist of that era:
“Hephaestus was literally a social outcast from birth-Hera, queen of the gods, cast him from Mount Olympus, offended by his hideous face-an admittedly unusual characteristic for a divine being. After he fell from heaven for a full day, nymphs rescued him from drowning at sea and gave him refuge on the island of Lemnos, where he built a mighty palace underneath a volcano.
It was within this palace where Hephaestus first began to embody the nerd archetype. He didn’t have Halo, Half-Life or Magic: The Gathering to play, but he did have armies of one-eyed Cyclopes to build whatever he wanted, equipped with iron and magma in place of the usual Lincoln Logs and Erector sets. The god lost his legs in the fall from Olympus, but instead of sulking about it, he took some initiative and forged robots out of gold and silver to help him walk. Yes, folks, Hephaestus invented robots. Robots!
Don’t let yourself be fooled into thinking this heavenly blacksmith was little more than a reclusive pushover, though. Sure, the cooler deities had a tendency to assume they could walk all over those uglier than they. But when Hephaestus was wronged, like Anthony Edwards and Robert Carradine two glorious decades ago, this divine nerd got his revenge.
Hephaestus’s trick of the trade was imprisonment. When Hera cast him out of Olympus and made him undergo a fall of “Bill & Ted’s Bogus Journey” proportions, he didn’t just cry into a puddle of lava. He retorted by crafting a magic throne for her that entrapped her the split second she sat in it. Hephaestus: 1, Olympians: 0.
Similarly, when his wife, goddess of love Aphrodite, cheated on him with emo-kid god of war Ares, he didn’t take the offense sitting down-not that he had a choice.
On the night of one of their particularly sordid love affairs, he built an impregnable cage around their bed, trapping the gods and putting their bare divine flesh in full view for the other gods to laugh at and ogle.”
http://www.dailycal.org/article/15838/hephaestus_he_s_got_robots_and_he_knows_how_to_use