Analysis Of Sleep-Wake Transition Dynamics By Stochastic Mean Field Model And Metastable State