A little insight into Chris Brown's aggressive behavior has been revealed. According to legal documents obtained by E! News and TMZ, the "Love More" singer was reportedly diagnosed with bipolar disorder, extreme insomnia and post-traumatic stress disorder.

Brown was in court on Friday, Feb. 28 for a progress hearing stemming from the domestic violence incident involving ex-girlfriend Rihanna. The facility where he recently completed a 95-day rehab program filed a document which stated that Brown was dual-diagnosed while seeking treatment.

The letter from the rehab facility reads: "Mr. Brown will also require close supervision by his treating physician in order to ensure his bipolar mental health condition remains stable. It is not uncommon for patients with Post Traumatic Stress Disorder and Bipolar II to use substances to self-medicate their biomedical mood swings and trauma triggers."

"Mr. Brown became aggressive and acted out physically due to his untreated mental health disorder, severe sleep deprivation, inappropriate self-medicating and untreated PTSD," the letter continued.

Reportedly the singer is on medication for the bipolar diagnosis and other conditions, TMZ reports. The legal document also said that Brown has learned to channel his frustration and anger into "various relaxation exercises."

The documents did not explain the reason behind PTSD. While in court, the facility had nothing but nice words to say about Brown telling the judge that he has been working hard and doing very well following the diagnosis.

"Mr. Brown's attitude has been beyond exemplary in regard to his community service responsibilities," TMZ writes.

He has already completed 250 hours of his community service and has 750 hours remaining. He's expected to finish the remaining hours by Oct. 10. According to E! the 24-year-old addressed the court room saying that "he appreciates what he has learned in the rehabilitation facility, as it has allowed him to change his life for the better."