Accurate detection and quantification of hepatic fibrosis remain essential for assessing the severity of non-alcoholic fatty liver disease (NAFLD) and its response to therapy in clinical practice and research studies. Our aim was to develop an integrated artificial intelligence-based automated tool to detect and quantify hepatic fibrosis and assess its architectural pattern in NAFLD liver biopsies. Digital images of the trichrome-stained slides of liver biopsies from patients with NAFLD and different severity of fibrosis were used. Two expert liver pathologists semi-quantitatively assessed the severity of fibrosis in these biopsies and using a web applet provided a total of 987 annotations of different fibrosis types for developing, training and testing supervised machine learning models to detect fibrosis. The collagen proportionate area (CPA) was measured and correlated with each of the pathologists semi-quantitative fibrosis scores. Models were created and tested to detect each of six potential fibrosis patterns. There was good to excellent correlation between CPA and the pathologist score of fibrosis stage. The coefficient of determination (R 2 ) of automated CPA with the pathologist stages ranged from 0.60 to 0.86. There was considerable overlap in the calculated CPA across different fibrosis stages. For identification of fibrosis patterns, the models areas under the receiver operator curve were 78.6% for detection of periportal fibrosis, 83.3% for pericellular fibrosis, 86.4% for portal fibrosis and > 90% for detection of normal fibrosis, bridging fibrosis, and presence of nodule/cirrhosis. In conclusion, an integrated automated tool could accurately quantify hepatic fibrosis and determine its architectural patterns in NAFLD liver biopsies.