Readmission to the hospital is an important and critical procedure for the quality of health care as it is very costly and helps in determining the quality level of the point of care provided by the hospital to the patient. This paper proposes a group model to predict readmission by choosing between Machine Learning and Deep Learning algorithms based on performance improvement. The algorithms used for Machine Learning are Logistic Regression, K-Nearest Neighbors, and Support Vector Machine, while the algorithms used for Deep Learning are a Convolutional Neural Network and Recurrent Neural Network. The reasons for the appearance of the efficiency of the model depend on the are preparation of correct parameters and the values that control the learning. This paper aims to enhance the performance of both machine learning and deep learning based readmission models using hyperparameter optimization in both Personal Computer environments and Mobile Cloud Computing systems. The proposed model is called improving detection diabetic using hyperparameter optimization , the proposed model aims to achieve the best rate of between prediction rate accuracy for hospital readmission at the same time minimizing resources such as time delay and energy consumption. Results achieved by proposed model for Logistic Regression, K-Nearest Neighbors, and Support Vector Machine are (accuracy=0.671, 0.883, 0.901, time delay=5, 7, 20, and energy consumed=25, 32, 48) respectively, for Recurrent Neural Network and Convolutional Neural Network are (accuracy=0.854, 0.963, time delay=25, 660 energy consumed=89, 895) respectively. However, this proposed model takes a lot of time and energy consumed especially in Convolutional Neural Network. So, the experiments were conducted again, but in the cloud environment, based on the existence of two types of storage to preserve the accuracy but decreasing time and energy, the proposed model in cloud environment achieve