We developed a method based on hierarchical self-organizing maps (SOMs) to recognize patterns in protein sequences. The method is fully automatic, does not require prealigned sequences, is insensitive to redundancy in the training set, and works surprisingly well even with small learning sets. As it uses unsupervised neural networks, it is able to extract patterns that are not present in all of the unaligned sequences of the learning set. The identification of these patterns in sequence databases is sensitive and efficient. The procedure has been successfully applied to a number of notoriously difficult cases with distinct recognition problems: helix-turn-helix motif in DNA-binding protein, the CUB domain of developmentally regulated protei...