A Michigan State University professor was taken into protective custody today after taking off his clothes in front of his class and shouting in the school hallway.

In a statement posted on the university website, the university said that a call came in to the local police dispatch center just after 1 p.m. "about a man in the Michigan State University Engineering Building shouting in the hallway."

"MSU police responded and took the man, a university professor, into protective custody and transported him to a local hospital," the school said. "No one was injured and the professor is not being charged with a crime."

Students posting on social media named the professor, but the university spokesman would not confirm the man's identity.

This afternoon a student posted a photo on the social media website Reddit with the comment, "My math teacher just stripped naked during class and was arrested! Go MSU!"

Another student described what happened in greater detail.

"I was in Calc 1 at Michigan State University, and my teacher was always pretty eccentric, but today he went overboard. Half way through class he started screaming at us, swearing left and right," the student said. "He then started slamming his hands on the window and pressing his face against it, still screaming. Eventually he walked out and down the hallway to the end, all while screaming. He then came back into the classroom and took off his clothes, except for his socks. You know someone's crazy when they leave their socks on lmao. At this point everyone in class ran out. We were literally scared for our lives. The police took about 15 minutes to get here and during this time he continued walking around screaming."

Another student posted, "As someone who is also in this class, I can confirm his eccentricity. He wore the same set of clothes every single day up until today and his mind never seemed to be stable. Everyone in the class could probably have seen this coming from day one, it was just a matter of time until it happened. He made the weirdest analogies, the most notable being about beating his wife."

The university said the school's counseling center "has reached out to students who may have witnessed the incident to offer any support they need."