From Sanskrit मध्य (madhya), from Proto-Indo-European *médʰyos.
मदी • (madī) (Latin script madi, Kannada script ಮದೀ)