Rather than having to give prisoners 'their day in court', after the fact, how about hiring a prisoners' ombudsman who handles their complaints, issues or advocates for them to ensure 'solitary' isn't abused by prison officials?  In our society any impingement of personal rights and freedoms isn't exercised solely by someone in a position of authority, even a jail guard or governor.  There should also be an option for prisoners themselves to sequester themselves from the general population temporarily and for good reason. 

There should be a hearing and tribunal (possibly containing elected prisoners representatives) before imposing prison penalties.