Background: Cognitive impairments are fundamental characteristics of schizophrenia, significantly impacting the overall functioning of individuals with the disorder. However, the trajectory of cognitive deficits and the factors influencing their changes over the course of treatment remain poorly understood. Objectives: The present study aimed to investigate the changes in cognitive status of patients with schizophrenia and the factors that influence these changes following hospitalization and treatment. Methods: The study utilized a longitudinal design, enrolling thirty hospitalized patients (15 males and 15 females) from the psychiatric inpatient unit of a general educational hospital. Cognitive assessments were conducted upon admission and discharge. A Generalized Estimating Equation (GEE) model was used to analyze the data, accounting for demographic and clinical variables such as age, gender, Body Mass Index (BMI), family history, and smoking status. Results: The findings revealed a reduction in cognitive deficits following hospitalization and treatment. Significant improvements were observed in verbal memory, working memory, and executive function. However, older patients showed poorer performance in motor speed, verbal fluency, and symbol coding compared to younger patients. Male patients and smokers demonstrated lower cognitive functioning, particularly in verbal fluency, symbol coding, and executive function. Conclusions: This study highlighted the positive effect of comprehensive inpatient treatment on reducing cognitive impairments in individuals with schizophrenia. While improvements were noted in several cognitive domains, the persistence of certain deficits, particularly in relation to demographic factors (age, gender, and smoking status), underscores the need for further research and tailored cognitive rehabilitation interventions. A personalized, multidimensional approach to managing cognitive deficits in schizophrenia could lead to better functional outcomes and enhance the quality of life for affected individuals.