The term “Liver disease” refers to a broad category of disorders affecting the liver. There are a variety of common liver ailments, such as hepatitis, cirrhosis, and liver cancer. Accurate and early diagnosis is an emergent demand for the prediction and diagnosis of liver disease. Conventional diagnostic techniques, such as radiological, CT scan, and liver function tests, are often time-consuming and prone to inaccuracies in several cases. An application of machine learning (ML) and deep learning (DL) techniques is an efficient approach to diagnosing diseases in a wide range of medical fields. This type of machine-related learning can handle various tasks, such as image recognition, analysis, and classification, because it helps train large datasets and learns to identify patterns that might not be perceived by humans. This paper is presented here with an evaluation of the performance of various DL models on the estimation and subtyping of liver ailment and prognosis. In this manuscript, we propose a novel approach, termed CNN+LSTM, which is an integration of convolutional neural network (CNN) and long short-term memory (LSTM) networks. The results of the study prove that ML and DL can be used to improve the diagnosis and prognosis of liver disease. The CNN+LSTM model achieves a better accuracy of 98.73% compared to other models such as CNN, Recurrent Neural Network (RNN), and LSTM. The incorporation of the proposed CNN+LSTM model has better results in terms of accuracy (98.73%), precision (99%), recall (98%), F1 score (98%), and AUC (Area Under the Curve)-ROC (Receiver Operating Characteristic) (99%), respectively. The use of the CNN+LSTM model shows robustness in predicting the liver ailment with an accurate diagnosis and prognosis.