Answer
I say, and with God's success: The I'tikaf is not valid for the madman; because sanity is a condition for the validity of I'tikaf, as worship cannot be performed except with intention, and the madman is not capable of intention. See: Al-Hadiyah Al-Ala'iyah p.57, and Al-Bada'i 2: 108, and God knows best.