Chris Brown appeared in a Los Angeles court on Friday for a progress hearing regarding his assault case against Rihanna, and it was revealed that one of the reasons for the singer's violent behavior is that he's been diagnosed with bipolar disorder.

According to court documents, "Mr. Brown became aggressive and acted out physically due to his untreated mental health disorder, severe sleep deprivation, inappropriate self-medicating and untreated PTSD." Though the cause of the PTSD is never explained, we're guessing it stems from Brown's childhood, as the R&B singer previously revealed that he grew up in a violent household.

Brown is now on regular doses of medication, and the rehab facility states that he has learned relaxation exercises and he's tested negative for drugs, including marijuana. And not only that, but the facility says he has been getting up early and putting in a lot of time with community service, adding, "Mr. Brown's attitude has been beyond exemplary in regard to his community service responsibilities."

Brown was ordered to stay in rehab for two more months, but it sounds like he has made lots of progress -- good for him!