TEXTAL is a successfully deployed system for automated model-building in protein X-ray crystallography. It represents a novel solution to an important, complex real-world, problem using various AI and pattern recognition algorithms. TEXTAL takes a model-building approach based on real-space density pattern recognition, similar to how a human crystallographer would work. TEXTAL first tries to predict the coordinates of the alpha-carbon (Cα) atoms in the protein's connected backbone using a neural network. It then analyzes the density patterns around each Cα atom and searches a database of previously solved structures for regions with similar patterns. TEXTAL determines the best match, retrieves the coordinates for that region, and fits them to the unknown density. TEXTAL concatenates these local models into a global model and subjects them to various subsequent refinements to produce a complete protein model automatically.