Location services and applications, based on network data or global positioning systems, are greatly influencing and changing the way people use mobile phone networks by improving not only user-applications but also the network management part. These applications and services can be further developed by introducing location prediction. We design a system that logs cell id and timestamp data from the users' mobile device, detects the significance of the location to the user, such as home and workplace, and predicts future locations over a chosen time period using artificial neural networks. A novel method is designed for location detection that automatically determines the significance of the location to the user, by spatial and temporal analysis. In our approach, the neural network is automatically adapted, with the help of the location detection algorithm, to the period of the week for which a prediction is desired, achieving accurate weekday and weekend location prediction.