This talk presents an automatic approach to generating semantic annotations for mobile app UIs, building a labelled lexicon of UI components, text buttons and icon classes. It uses code-based patterns and a convolutional neural network, and applies the method to the Rico dataset of mobile UIs. It is aimed at HCI researchers and practitioners interested in large-scale UI data.