Wireless localization systems have significant impact in the field of human-driven edge computing (HEC). It became very attractive among the researchers and used in applications of numerous areas such as medical, industrial, public safety, logistics, and so on. Ultra-wideband (UWB) technology used in localization systems owing to achieving high accuracy in real-time. In this paper, we exhibit a UWB based localization system based on the edge computing (EC) paradigm to analyze the wandering behavior of the patients who are suffering from dementia disease in the large-scale form. Physical changes in the brain are responsible for dementia disease. The appearance of wandering behavior is a common manner of the patients, which also a threat and interference for caregivers. We used the UWB standard appliance to symbolize various sorts of wandering patterns, including pacing, lapping, and two random movements in the large 2D map. The flow of all the movements illustrated in the X and Y-axis. Support vector machine (SVM) and k-nearest neighbor (k-NN) algorithms used to classify all the patterns and accuracy result is above 99%. The result shows that the proposed system can achieve high accuracy in classification and satisfactory for applications in the medical area.