You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Encephalitis and explain in detail?
Encephalitis is inflammation of the brain. The severity can be variable with symptoms including reduction or alteration in consciousness, headache, fever, confusion, a stiff neck, and vomiting. Complications may include seizures, hallucinations, trouble speaking, memory problems, and problems with hearing.Causes of encephalitis include viruses such as herpes simplex virus and rabies virus as well as bacteria, fungi, or parasites. Other causes include autoimmune diseases and certain medications. In many cases the cause remains unknown. Risk factors include a weak immune system. Diagnosis is typically based on symptoms and supported by blood tests, medical imaging, and analysis of cerebrospinal fluid.Certain types are preventable with vaccines. Treatment may include antiviral medications (such as acyclovir), anticonvulsants, and corticosteroids. Treatment generally takes place in hospital. Some people require artificial respiration. Once the immediate problem is under control, rehabilitation may be required. In 2015, encephalitis was estimated to have affected 4.3 million people and resulted in 150,000 deaths worldwide.

Signs and symptoms
Adults with encephalitis present with acute onset of fever, headache, confusion, and sometimes seizures. Younger children or infants may present with irritability, poor appetite and fever. Neurological examinations usually reveal a drowsy or confused person. Stiff neck, due to the irritation of the meninges covering the brain, indicates that the patient has either meningitis or meningoencephalitis.

Cause
Viral
Viral encephalitis can occur either as a direct effect of an acute infection, or as one of the sequelae of a latent infection. The majority of viral cases of encephalitis have an unknown cause, however the most common identifiable cause of viral encephalitis is from herpes simplex infection. Other causes of acute viral encephalitis are rabies virus, poliovirus, and measles virus.Additional possible viral causes are arboviral flavivirus (St. Louis encephalitis, West Nile virus), bunyavirus (La Crosse strain), arenavirus (lymphocytic choriomeningitis virus), reovirus (Colorado tick virus), and henipavirus infections. The Powassan virus is a rare cause of encephalitis.

Bacterial and other
It can be caused by a bacterial infection, such as bacterial meningitis, or may be a complication of a current infectious disease syphilis (secondary encephalitis).Certain parasitic or protozoal infestations, such as toxoplasmosis, malaria, or primary amoebic meningoencephalitis, can also cause encephalitis in people with compromised immune systems. Lyme disease or Bartonella henselae may also cause encephalitis.Other bacterial pathogens, like Mycoplasma and those causing rickettsial disease, cause inflammation of the meninges and consequently encephalitis. A non-infectious cause includes acute disseminated encephalitis which is demyelinated.

Limbic encephalitis
Limbic encephalitis refers to inflammatory disease confined to the limbic system of the brain.  The clinical presentation often includes disorientation, disinhibition, memory loss, seizures, and behavioral anomalies. MRI imaging reveals T2 hyperintensity in the structures of the medial temporal lobes, and in some cases, other limbic structures.  Some cases of limbic encephalitis are of autoimmune origin.

Autoimmune encephalitis
Autoimmune encephalitis signs can include catatonia, psychosis, abnormal movements, and autonomic dysregulation. Antibody-mediated anti-N-methyl-D-aspartate-receptor encephalitis and Rasmussen encephalitis are examples of autoimmune encephalitis. Anti-NMDA receptor encephalitis is the most common autoimmune form, and is accompanied by ovarian teratoma in 58 percent of affected women 18–45 years of age.

Encephalitis lethargica
Encephalitis lethargica is identified by high fever, headache, delayed physical response, and lethargy. Individuals can exhibit upper body weakness, muscular pains, and tremors, though the cause of encephalitis lethargica is not currently known. From 1917 to 1928, an epidemic of encephalitis lethargica occurred worldwide.

Diagnosis
People should only be diagnosed with encephalitis if they have a decreased or altered level of consciousness, lethargy, or personality change for at least twenty-four hours without any other explainable cause. Diagnosing encephalitis is done via a variety of tests:
Brain scan, done by MRI, can determine inflammation and differentiate from other possible causes.
EEG, in monitoring brain activity, encephalitis will produce abnormal signal.
Lumbar puncture (spinal tap), this helps determine via a test using the cerebral-spinal fluid, obtained from the lumbar region.
Blood test
Urine analysis
Polymerase chain reaction (PCR) testing of the cerebrospinal fluid, to detect the presence of viral DNA which is a sign of viral encephalitis.

Prevention
Vaccination is available against tick-borne  and Japanese encephalitis  and should be considered for at-risk individuals. Post-infectious encephalomyelitis complicating smallpox vaccination is avoidable, for all intents and purposes, as smallpox is nearly eradicated. Contraindication to Pertussis immunization should be observed in patients with encephalitis.

Treatment
An ideal drug to treat brain infection should be small, moderately lipophilic at pH of 7.4, low level of plasma protein binding, volume of distribution of litre per kg, does not have strong affinity towards binding with P-glycoprotein, or other efflux pumps on the surface of blood–brain barrier. Some drugs such as isoniazid, pyrazinamide, linezolid, metronidazole, fluconazole, and some fluoroquinolones have good penetration to blood brain barrier.Treatment (which is based on supportive care) is as follows:

Pyrimethamine-based maintenance therapy is often used to treat Toxoplasmic Encephalitis (TE), which is caused by Toxoplasma gondii and can be life-threatening for people with weak immune systems. The use of highly active antiretroviral therapy (HAART), in conjunction with the established pyrimethamine-based maintenance therapy, decreases the chance of relapse in patients with HIV and TE from approximately 18% to 11%