What could be causing the user interface to freeze?
Could be anything, unfortunately.  Is the mini in a well-ventilated area?  Could be overheating.  The hard drive could be dying.  Could just be a corrupted OS install.  You'll have to start trying things to eliminate possibilities.  (eg: install OS an external drive, boot from that drive, see if it still hangs.)