EXCLUSIVE

Kanye West Meds Are the Issue

Kanye West is out of the hospital but not out of the woods, and it all stems from the rapper's erratic pattern of taking his meds ... sources connected with the family tell TMZ.

Our sources say Kanye has long suffered from psychological issues controllable by medication. We're told Kanye is steady on his meds, but deviated from the prescribed dosage ... and that's what led to the downward spiral and eventual mental breakdown.

It's still unclear if Kanye flat-out stopped taking some of the pills or just decided to take different amounts -- but we're told he made the biggest changes in the wake of Kim's Paris robbery. Doctors were able to keep Kanye in the hospital for 8 days, and during that time were able to medicate him, and get him more stable.

We're told he's getting outpatient treatment and he's okay right now, but since he's not under 24/7 observation ... it's up to him to stay on the correct dosage.

Click here for info about our online advertising practices.