A San Francisco man who apparently overdosed on medical-marijuana cookies has been sentenced to five years’ probation for pulling down his pants on an airline flight and otherwise interfering with the crew, authorities say.

Kinman Chan, 32, whose lawyers described him as a “talented conceptual artist,” was convicted in federal court in Pittsburgh of interfering with the U.S. Airways crew on a flight from Philadelphia to San Francisco.

Chan tried to elbow a female flight attendant while being escorted to his seat after causing a disturbance in the lavatory during the flight Jan. 31, 2010. During the incident, Chan waved, smiled, made odd gestures, had his pants down and, at one point, placed his hands together as if he was praying, FBI Special Agent Joel Compeggie wrote in an affidavit.

Flight attendants put him in plastic cuffs and secured him in a seat. The incident forced the pilot to divert the flight to Pittsburgh.

Chan told FBI agents who met the plane that he had eaten two medical-marijuana cookies — twice his prescribed amount — before boarding the flight. He said he had been coming home from the Dominican Republic, where he said he had attended a global information networking conference.

Chan said he had been prescribed marijuana in California for carpal tunnel syndrome.

In court papers, Chan’s attorneys said he had a “peaceful temperament and a gentle demeanor.”

During a sentencing hearing Tuesday, Senior U.S. District Judge Gustave Diamond said Chan’s crime appeared to be an aberration caused by ingesting too much pot. The judge ordered Chan to pay $6,804 in restitution to U.S. Airways.