Encephalopathy is a term used by doctors to describe the drowsiness and confusion that can occur in patients with liver failure, it is also quite common for a few days after major liver surgery. It is caused by a build up of waste products in the blood stream in particular ammonia.