In recent years, the shared mobility service has increased in many countries across the world because its low cost and several shared-use mobility applications on mobile devices [1]. Commonly, if a ride is shared between people with similar preferences, users likely feel both more comfortable and safe. In this context, the main goal of this article is to classify users with similar preferences, in automatic manner, to improve user's quality of experience in ridesharing service. To obtain initial data, subjective tests are carried out using questionnaires and their results are used to determine ridesharing profiles. Then, some basic user profile information is extracted from Online Social Networks (OSN) to determine an user profile based on preferences in ridesharing service. The user profile classification is performed through different machine learning algorithms, which use as input the data extracted from OSN. Two case studies of shared-mobility are treated, (i) sharing a ride with a passenger with a similar hobby [2], and (ii) sharing a ride with people that support an opposite football teams. The novelty of this work consists in the application of the Hybrid Discriminative Restricted Boltzmann Machines (HDRBM) algorithm for classification whose performance overperforms widely used algorithms such as Random Forest, SVM and DRBM. The experimental results presented a correctly classified instance of 96.9% and 97.3% for the cases of sharing a ride with people with similar hobby and support different football team, respectively. Finally, a Recommendation System (RS) is proposed, which efficiency is compared with a basic RS, obtaining a Pearson correlation coefficient of 0.97 and 0.71, respectively. Index Terms-Recommendation system; ridesharing; mobile applications, online social networks, machine learning, HDRBM, social web analysis tool. I. INTRODUCTION T HE mobile devices and applications have facilitated the manner of people request services. The urban mobility is a kind of service that became very popular, in it is common that people share the rides among others. The advantages of this service are related to benefits for urban traffic, such as reduction of environment pollution, and low cost.