All published articles of this journal are available on ScienceDirect.
Perceptions of Urban Traffic Congestion in Post-war Mogadishu
Abstract
Background
Post-war urban living spaces present significant traffic problems. For example, decades of conflict, poor city planning, inadequate road infrastructure, and rapid, unplanned urban growth have intensified traffic congestion in Mogadishu, Somalia. However, the factors influencing traffic congestion in cities in conflict zones have not been comprehensively examined in the literature. This study investigates road users' perceptions of traffic congestion to identify underlying causes and evaluate solutions.
Methods
The research was conducted through a questionnaire administered to 500 participants, including university staff and students. The questionnaire included participants' sociodemographic characteristics, transportation behaviors, and perceptions of the causes and potential solutions to traffic congestion. Chi-Square test, Exploratory Factor Analysis (EFA), and Random Forest algorithms were applied, respectively.
Results
According to the Random Forest model results, the most important factors cited as causing traffic congestion were identified as weather, road infrastructure, and driver behavior. Participants indicated that reducing the number of Bajaj vehicles, providing traffic education, and removing checkpoints could be effective solutions to traffic congestion. Accuracy values of the Random Forest method were determined both before and after dimension reduction in both models. It was determined that dimension reduction increased accuracy.
Discussion
Unlike most existing traffic congestion studies, this study contributes to the literature by integrating EFA with Random Forest modeling. This collaborative approach increases prediction accuracy and interpretability while reducing data dimensionality. Furthermore, this study offers unique insights by focusing on Mogadishu, a post-war city, in comparison to stable regions.
Conclusion
The methodology developed in this study provides replicable and field-applicable solutions to urban traffic problems that may arise in conflict-affected, particularly underdeveloped cities.
1. INTRODUCTION
Traffic congestion occurs when traffic demand exceeds road capacity [1]. Many interrelated factors influence traffic congestion, including road geometry, user behavior, weather conditions, inadequate alternative transportation modes, deficiencies in traffic management infrastructure, rapid urbanization, and increased private vehicle ownership. Traffic congestion leads to longer travel times, increased fuel consumption and emissions, and reduced satisfaction and comfort levels for road users [2]. While cities in developing countries face similar traffic problems, the causes and solutions to these problems can differ. Urban traffic management, in particular, presents unique challenges for each city. In many African cities, factors such as inadequate transportation infrastructure, deficiencies in traffic management, and the rapid increase in motorcycle/three-wheeled vehicle use contribute to traffic congestion and environmental pollution [3, 4].
Factors affecting traffic congestion in developing cities are assessed through surveys that incorporate road users' perceptions and interpretations. Therefore, in recent years, survey-based studies focusing on road users' perceptions have become increasingly common to determine the causes and solutions to traffic congestion. For example, the determinants of traffic congestion in urban areas in Nigeria and possible solutions were examined using survey data from 196 participants [5]. In the study, the analyses were based on simple descriptive statistics such as percentage distributions. The results revealed that driver behavior, inadequate road infrastructure, low road capacity, and insufficient parking are the main causes of traffic congestion. In addition, it was suggested that improving road connections, promoting public transportation, and improving traffic planning should be done. Yap and Ismail [6] analyzed data from 384 surveys using descriptive statistics to examine the effects of different land-use types on traffic congestion in Kuala Lumpur. In the study, it was determined that commercial land use had the highest relationship with traffic congestion; it was stated that mixed land use and more effective urban planning could reduce traffic congestion. However, the researchers identified the limited sample size and the subjective nature of the survey responses as the study's main limitations. Survey data from 208 participants in Gaborone, Botswana, were evaluated using Likert scale mean analyses and various statistical tests with SPSS software. The results showed that excessive reliance on private vehicle use, inadequate road infrastructure, and unplanned urbanization are the main causes of traffic congestion [7]. In another study, a mixed-methods approach consisting of 315 surveys and in-depth interviews was applied in Harare, Zimbabwe. Quantitative data were analyzed with SPSS, while qualitative data were coded manually. The findings revealed that irregular street trade, inadequate transportation policies, and high pedestrian mobility are the main causes of traffic congestion; the application of smart urban transportation technologies was suggested as a solution [8]. User perceptions regarding the effect of public transportation pricing on traffic congestion were examined in Ankara, Turkey [9]. Survey data obtained from 400 participants were analyzed, and it was determined that public transportation pricing planning could reduce private vehicle use. It was shown that the public transportation pricing approach could provide benefits both economically and environmentally.
According to the existing literature, inadequate infrastructure, unplanned urbanization, and deficiencies in transportation management are highlighted as the primary causes of traffic congestion in developing cities. Moreover, this situation becomes much more complex in cities that have been exposed to war. The destruction of infrastructure due to war and changes in economic, demographic, and cultural conditions make the existing traffic problem even more chaotic. For example, researchers [10] evaluated the challenges of reconstructing the post-conflict urban transportation system in Mogadishu by examining existing transportation statistics, planning reports, and policy documents. The study revealed that rapid urbanization, long-neglected transportation infrastructure, inadequate road networks, poor traffic management, and the lack of reliable transportation data significantly limit sustainable urban mobility. The researchers emphasized that evidence-based transportation planning is hampered by insufficient empirical data and called for systematic data-collection studies to support future transportation planning and policy development in Mogadishu.
A study using spatial analysis and secondary data [11] examined public transportation problems in Kabul, Afghanistan. The results showed that deficiencies in transportation infrastructure lead to traffic congestion and security risks. It was emphasized that post-conflict cities need not only infrastructure investments but also integrated transportation planning. In addition to these results, another study conducted in Baghdad and examining road users' perceptions [12] revealed that data-driven strategic urban management is the most important approach for traffic management in post-conflict cities. A study [13] that addressed the reconstruction of Syria’s transportation system, which was largely destroyed after the war, from a sustainability perspective, stated that post-destruction replanning can actually be used as an advantage. For example, it stated that dependence on private motor vehicle use in a completely or partially destroyed city can be achieved with a sustainable and public transportation integrated system. However, this study did not examine individual transportation behaviors or perceptions; it only assessed them within the scope of urban planning.
Conflict transportation systems have been the subject of research not only in the Middle East but also in Europe. Kopytkov et al. [14] investigated how wartime conditions changed the transportation preferences of individuals living in Kharkiv, Ukraine. The findings showed that during the war, safety, reliability, and comfort became more decisive factors than travel time and cost. Although the study revealed that extraordinary circumstances significantly altered transportation behaviors, it did not include the perceived causes of traffic congestion. Another study from Ukraine [15] analyzed urban mobility behaviors during armed conflict. The study examined changes in the use of modes of transport and in public transport fare preferences. The findings showed significant reductions in public transport use and the importance of flexible transportation policies during times of crisis. However, the study did not assess user perceptions about the causes of traffic congestion and possible solution strategies.
When these studies are considered together, it is evident that transportation research in post-conflict cities primarily focuses on the reconstruction of transportation infrastructure, sustainable mobility planning, public transportation systems, and transportation behaviors in crisis conditions. While these studies make significant contributions to understanding transportation problems in fragile urban areas, they have mostly addressed strategic planning, mode of transport selection, or policy development issues. In contrast, studies that quantitatively examine road users' perceptions of the causes of traffic congestion and solution strategies using integrated statistical and machine learning methods are quite limited. This deficiency is particularly evident in Mogadishu, where empirical data to support transportation planning are insufficient despite rapid urbanization and increasing traffic congestion. Accordingly, there is a significant research gap in post-conflict urban areas for the integrated examination of perceived causes of traffic congestion and possible solution strategies using empirical data and advanced analytical methods. Specifically, in Mogadishu, there are no studies that support evidence-based transportation planning by combining statistical correlation analyses, latent factor identification, and machine learning-based prediction models within a single analytical framework. Addressing this gap is crucial for identifying local priorities and developing context-specific transportation policies for rapidly growing post-conflict cities.
Years of political instability and civil war have severely damaged Mogadishu's transportation infrastructure; service levels have decreased, parking capacity has become insufficient, and traffic control systems have become erratic. Furthermore, the widespread use of Bajaj (three-wheeled) vehicles and the rapid increase in private vehicle ownership have exacerbated traffic congestion, negatively impacting the city's economy and daily life. This study examines the determinants of traffic congestion in Mogadishu during the post-war reconstruction process from the perspective of road users. First, the relationships and latent dimensions between variables were determined using the Chi-Square test and Exploratory Factor Analysis (EFA), and then predictive models were developed using the Random Forest machine learning algorithm. The combined use of EFA and Random Forest methods is uncommon in the transportation literature. This study aims to address this methodological gap and contribute to the traffic management and transportation literature by analyzing Mogadishu, a post-conflict city, and comparing findings from more stable cities.
This study aims to investigate road users' perceptions of the causes of traffic congestion and potential mitigation strategies in Mogadishu, a city that has experienced war. To achieve this goal, statistical correlation analysis, exploratory factor analysis, and machine learning are integrated into the study. Through this integrated analytical framework, the study aims to provide empirical evidence that can support context-specific and evidence-based transportation planning in Mogadishu. The main research contributions are as follows:
- There are very few studies conducted in war-torn cities regarding urban transportation problems and user perceptions. It is not easy to detect changes in user perception and preference in such situations. Incorporating user perceptions and priorities can complement conventional transportation data and provide additional insights for context-sensitive urban transportation planning. This study provides empirical evidence on road users' perceptions of both the causes of traffic congestion and potential mitigation strategies in Mogadishu.
- The study develops an integrated analytical framework combining Chi-square analysis, Exploratory Factor Analysis (EFA), and Random Forest classification to examine perceptions of congestion from complementary statistical and predictive perspectives.
- Many studies use survey data directly in their analyses. However, many parameters can serve as proxies for one another. This can affect the accuracy of predictive models and the results of parameter additive analysis. This study developed models by deriving factor variables both directly from survey data and reduced via EFA.
- The results obtained in the Mogadishu city example provide the necessary evidence to generate policies that will contribute to emergency and then sustainable transportation planning in war-affected or ongoing conflict zones.
2. MATERIALS AND METHODS
Mogadishu, thecountry's political and economic center, has a population of 2.18 million [16]. In recent years, migration from rural areas to the city center due to internal conflicts has caused the city's population to increase rapidly and unplanned, and this trend continues [17]. The region has experienced prolonged political instability and civil unrest. In addition, the city suffers from various infrastructure problems. The inadequacy of traffic signaling systems and road signs, and low road maintenance standards negatively impact urban traffic conditions.
The main mode of urban transportation is privately operated minibuses, and other public transport systems are insufficient. The inconsistencies in service frequency, route coverage, and operational reliability of minibuses are inadequate to meet transportation demand. For short-distance journeys, three-wheeled vehicles known as Bajaj are used, but their usage fees are higher. Private cars are only a mode of transportation for the high-income group. Taxi services exist within the city, but they are not widely used due to high fares and limited fleet availability [18].
A survey-based research design was adopted for data collection in this study. The initial intention was to obtain a representative sample encompassing diverse sociodemographic, socioeconomic, and cultural segments of Mogadishu’s population. However, the implementation of such a comprehensive sampling framework was constrained by security-related challenges, post-conflict apprehension toward participation in surveys, and limited access to certain population groups, particularly women and elderly individuals. In light of these constraints, the questionnaire was administered to university students and academic staff. This target group was considered appropriate due to their regular exposure to urban traffic conditions, familiarity with multiple transportation modes, and relative accessibility under restrictive field circumstances. Accordingly, this sampling approach ensured data feasibility and analytical relevance, while also exemplifying a pragmatic methodological strategy applicable in post-conflict environments.
The questionnaire was organized into six sections covering (i) sociodemographic characteristics, (ii) socioeconomic characteristics, (iii) daily travel behavior, (iv) traffic congestion experience, (v) perceived causes of traffic congestion, and (vi) perceived traffic congestion mitigation strategies. The complete questionnaire is provided in Appendix A. To assess internal consistency and reliability, Cronbach’s alpha coefficient was calculated as a standard measure of scale reliability [19]. The computed value (α = 0.80) indicates a satisfactory level of internal consistency [20]. Subsequently, the minimum required sample size was estimated using the formula developed by Krejcie and Morgan as shown in Eq. (1) [21]. Based on an estimated population of approximately 2.18 million, the minimum recommended sample size was determined to be 384 respondents. To account for potential non-responses or incomplete questionnaires, data were collected from 500 voluntary participants. After data screening, 459 respondents were identified as university students and 41 as university staff members. A random sampling procedure was employed during survey distribution to enhance the representativeness of the selected study population.

Where, n = Sample Size, N = Population Size, e = Error Rate, χ2 = Chi-square with degree of freedom 1 and confidence 95% = 3.841, p = Copulation proportion (0.5, if known)
The collected data were analyzed in R using descriptive statistics, chi-square, factor analysis, and random forest methods, respectively. Descriptive statistics provided basic information about the variables by measuring values such as frequency distributions, mean, and standard deviation. Then, the chi-square independence test was applied to determine the correlation between variables [22]. This test was chosen because it offers a more flexible computational method for categorical data and data that do not have a normal distribution. The results of the chi-square test were carefully examined because high statistical correlation between variables can affect the performance of the random forest model, a machine learning technique used in classification tasks [23]. Therefore, dimension reduction was applied in the following step to reduce the number of correlated variables in the model. Factor analysis is a statistical method used to reveal hidden structures (factors) in a set of related variables. It reduces complex data to less significant factors and clarifies variable relationships. In this study, EFA was used, as expressed in Eq. (2) [24]:
Where X is the observed variables, Λ is the factor loadings, F is the latent variables, and ϵ is the error.
Before applying EFA, the suitability of the dataset for this analysis was examined using the Kaiser-Meyer-Olkin (KMO) adequacy test and the Bartlett sphericity test. A KMO value of 0.84 was obtained. This indicates that the correlation between variables is very high and that the data structure is suitable for EFA. A p-value of 0.00 in the Bartlett test also shows a significant relationship between the variables. Based on these findings, the EFA test was applied. During the testing phase, considering that the parameters in traffic conditions cannot be independent of each other, it was necessary to apply a rotation method that allows for inter-factor relationships. To obtain a more accurate and interpretable factor structure, Promax, an oblique rotation method, was applied. This rotation mechanism allowed for a clearer interpretation of the latent dimensions of the variable representations. The resulting factor structure is both consistent with theoretical expectations and provides a meaningful and reliable basis for analytical input into machine learning models used in subsequent stages.
Machine learning is a type of AI that enables computers to learn from experience. Large datasets are effectively analyzed, and complex patterns are detected using this approach [25]. The Random Forest model is categorized as a machine learning ensemble method. Forecast accuracy and reliability are improved by constructing and combining multiple decision trees [26, 27]. This approach results in a series of decision trees used for classification and regression during training [28]. In each tree, a random subset of the dataset is used, and a random subset of features is selected for estimation at each segment [26].
In the data preprocessing phase, the dataset was cleaned by removing missing values, correctly coding categorical variables, and eliminating outliers to ensure data quality. The target variable in the analysis was Latency (How much of your daily commute time is delayed due to traffic congestion?). A 70/30 ratio is commonly used in machine learning to evaluate the classification ability and accuracy of a model [23]. This ratio allows the model to effectively learn patterns with sufficient data, while enabling testing on unseen data and ensuring the reliability of the model's performance for real-world applications [29]. In this model, 70% of the data was used for training and 30% for testing.
In this study, prediction variance was reduced by increasing the number of trees to a sufficiently large value to ensure model stability and convergence. Model tuning was performed by evaluating different parameter configurations and selecting the most suitable model according to classification performance metrics. To address potential class imbalance (i.e., the distribution of delay percentages) in the target variable, balanced model evaluation between classes was ensured by using performance metrics (e.g., sensitivity, recall, and F1 score) in addition to overall accuracy. Sensitivity checks were performed by comparing model performance before and after dimensionality reduction via Exploratory Factor Analysis, and the robustness of the Random Forest results and the consistency of the identified effective variables were verified.
To obtain a balanced and reliable model, the algorithm's performance was evaluated using accuracy, recall, precision, and F1 score metrics. Accuracy is used to indicate how well the algorithm classified the data; recall is used to determine how often the correct prediction was made for the target class; precision is used to assess the reliability of positive predictions; and the F1 score is considered a comprehensive performance measure in which the potential effects of class imbalance are taken into account, particularly through the balancing of precision and recall [30-32].
By using these indicators together, a more precise assessment of the model's performance was obtained. An additional validation procedure was applied to evaluate the robustness and generalization ability of Random Forest models. Dataset analysis (70% training, 30% testing) and hyperparameter optimization were performed using repeated five-fold cross-validation. Furthermore, an out-of-the-bag (OOB) validation mechanism specific to the Random Forest algorithm was used to assess model stability and identify potential overfitting.
Although this study focuses on Mogadishu, many developing countries, especially those at war, face similar traffic problems in their central cities. Data analysis combining EFA with the Random Forest algorithm shows that flexible and perception-based survey results can be evaluated more accurately. The survey and analysis method used in this study can be replicated in studies of similar regions to obtain more accurate results.
3. RESULTS
Descriptive statistics were used as the first step in data analysis. According to Table 1, the sociodemographic and socioeconomic statistics show that most participants in the study are between 18 and 35 years old and have a high level of education. Additionally, it is observed that some participants are employed either full-time or part-time and earn a specific level of income. Fewer women are represented in the sample due to prevailing social conditions in the area. This was considered expected because the survey was administered to university students and staff.
| Variable | Unit and Percentage |
|---|---|
| Gender | Male = 80% Female = 20% |
| Age | 18-25 = 40.08%, 26-35 = 52%, 36-45 = 5.6%, 46-55 = 1.6% |
| Education | Primary or less = 2.4%, Secondary = 2.8%, Elementary = 3%, Bachelor = 71.8%, Master/PhD = 20% |
| Status | Single = 77.2%, Married = 22.8% |
| Profession | Working = 61.4%, Not Working = 38.6% |
| Monthly Income | 0-200 USD = 40.4%, 201-350 USD = 27.4%, 351-500 USD = 9.8%, 501 and Above USD = 22.4% |
With regard to traffic congestion (Table 2), most respondents reported experiencing is daily, and Soobe crossroads was identified as the location where it is most severe. Travel behavior is altered by many individuals due to traffic congestion. The data also indicate that daily life is significantly affected by traffic congestion. It was reported by 60.6% of participants that business meetings or appointments are frequently missed due to traffic delays. In terms of daily mobility habits (Table 3), public transportation is predominantly used by most participants, who are students, for commuting to and from school. The second most commonly used mode of transportation is the private car. It was stated by 38.4% of participants that their daily commuting time ranges between 31 and 60 minutes. The most important variable, the target parameter in this study, is delay. 390 participants stated that traffic congestion increased their daily commute times by up to 50%.
| Variable | Unit and Frequency |
|---|---|
| How often do you experience traffic congestion in Mogadishu? | Once in a month = 1%, Daily = 51.6%, Once in a week = 4.2%, Several in a week = 40.8%, Rare= 2.4% |
| How likely are you to change your means of transport during a traffic congestion? | I can change in certain circumstances = 44.4%, I change it often = 30.4%, I usually change = 7.4%, I definitely change = 17.8% |
| How many times have you missed an appointment or business meeting because of traffic congestion? | None = 27%, Several times = 60.6%, Frequently = 4.4%, Continuously = 8% |
| Variable | Unit and Frequency |
|---|---|
| Which mode of transport do you use daily? | Private =24%, Public transport= 62.8%, Walking = 10.4%, Bajaj (a three-wheeled passenger vehicle) = 1.2%, Fekon (a small three-wheeled vehicle used primarily for transporting goods) = 0.8%, Private and Public taxi =0.8% |
| What is your average daily commute time? | 0-30 = 39%, 31-60 = 38.4%, 61-90 = 13%, 91-120 = 2%, More than 120 = 7.6% |
| How much of your daily commute time is delayed due to traffic congestion? | %1-25 = 47.6%, %26-50 = 30.4%, %51-75 = 11.2%, %76-100 = 1.8%, None = 9% |
Figure 1 presents the examination of the causes of traffic congestion. It is shown that various significant problems are identified. The lack of traffic lights and signaling systems is regarded as a major cause, with 71.8% of respondents indicating that they are effective or very effective. Other important issues include the increasing number of Bajaj vehicles (65.6% agreement) and the malfunctioning of traffic lights and signaling systems (71.8% agreement). Regarding the effectiveness of the proposed solutions in Fig. (2), it was indicated by 75.6%, 65%, 63.2%, and 62.6% of respondents that the establishment and implementation of smart traffic management systems, the development of traffic education programs, the removal of mass security checkpoints, and the expansion and improvement of road infrastructure are considered the most effective options.

Distribution of 500 responses for perception of main factors causing traffic congestion (Likert scale: 1 = Strongly Disagree, 5 = Strongly Agree).

Distribution of 500 responses for perception of possible traffic congestion solutions (Likert scale: 1 = Strongly Disagree, 5 = Strongly Agree).
The analysis aimed to investigate the impact of participants’ perceptions of the causes and potential solutions to traffic delays. Delay was the target variable, and perception-related parameters were the predictors. Therefore, in the following step of the analysis, a chi-square test of independence was conducted to examine the relationship between the target variable and the predictors. All tested variables showed statistically significant associations with delay percentages (p < 0.05), confirming the relevance of these factors in shaping the traffic experience in Mogadishu (Tables 4 and 5). The chi-square test of independence only indicates whether a relationship is statistically significant, but it does not provide information about the strength of that relationship. The results should be evaluated carefully by considering Cramer’s V values. Cramer's V is a statistic that measures the strength (effect size) of the relationship between variability in two categories. It complements the chi-square test and answers the question “How strong is this relationship?” in addition to “Is there a relationship?” Cramer's V ranges from 0 to 1; values greater than 0.5 indicate a strong relationship. A value below 0.1 indicates no relationship. The results showed a high correlation between lag and the predictor variables, but the effect size was moderate. The moderate effect size may be due to the study's user-perception focus.
The Chi-square analysis revealed statistically significant associations between traffic delay and all investigated congestion factors (p < 0.05). Among these, inadequate traffic lights or signalization exhibited the strongest association with traffic delay (Cramer's V = 0.271), followed by the increase in Bajaj vehicles (V = 0.238) and drivers' non-compliance with traffic rules (V = 0.218), whereas inadequate public transportation services showed the weakest, albeit still significant, association (V = 0.121).
To make the data easier to understand and to uncover patterns among the survey variables, EFA was applied to two categories of items: (1) reasons for traffic congestion and (2) suggestions for how to reduce traffic delays. Through this strategy, latent factors that were highly similar to one another were combined. As a result, interpretation was facilitated, and implementation within machine learning models was simplified.
As shown in Table 6, three main factors were identified as contributors to traffic congestion. PA1: Traffic Flow, which includes “disruptors” that exacerbate congestion, such as failure to comply with traffic rules, inadequate parking, malfunctioning traffic lights, excessive numbers of Bajaj vehicles, insufficient drainage systems, and traffic accidents. PA2: Natural Conditions, which primarily consist of weather-related factors. PA3: Infrastructure Deficiency, which is mainly associated with poor road conditions. Table 7 presents the EFA results for various strategies aimed at mitigating traffic congestion. Three categories of measures were identified. The first, PA1: Traffic Regulators, includes traffic education programs, the implementation of smart traffic management systems, and the development of urban business regulations. PA2 consists of measures that improve traffic flow, such as the removal of security checkpoints and the reduction in the number of Bajaj vehicles.
| Variable | P-value* | Cramer’s V |
|---|---|---|
| Insufficient road infrastructure | 0.00 | 0.19 |
| Drivers’ non-compliance with traffic rules | 0.00 | 0.22 |
| Inadequate public transportation services | 0.02 | 0.12 |
| Insufficient parking areas and management | 0.00 | 0.19 |
| Natural factors affecting traffic (e.g., weather) | 0.00 | 0.19 |
| Inadequate traffic lights or signalization | 0.00 | 0.27 |
| Increase in the number of bajajs | 0.00 | 0.24 |
| Poor drainage facilities | 0.00 | 0.17 |
| Traffic accidents are blocking the road | 0.00 | 0.17 |
| Variable | P-value* | Cramer’s V |
|---|---|---|
| Expanding and improving road infrastructure | 0.00 | 0.21 |
| Increasing public transportation services | 0.00 | 0.17 |
| Developing traffic education programs | 0.00 | 0.26 |
| Regulating and directing intra-city commerce | 0.00 | 0.21 |
| Removing public security checkpoints | 0.00 | 0.28 |
| Reducing the number of bajajs | 0.00 | 0.21 |
| Establishing smart traffic management systems | 0.00 | 0.26 |
| Variable | PA1 | PA2 | PA3 |
|---|---|---|---|
| Insufficient road infrastructure | - | - | 0.80 |
| Drivers’ non-compliance with traffic rules | 0.52 | - | - |
| Inadequate public transportation services | 0.27 | - | - |
| Insufficient parking areas and management | 0.60 | - | - |
| Natural factors affecting traffic | - | 0.68 | - |
| Inadequate traffic lights and signalization systems | 0.81 | - | - |
| Increase in the number of bajajs | 0.65 | - | - |
| Poor drainage facilities | 0.45 | - | - |
| Traffic accidents are blocking the road | 0.70 | - | - |
| Variable | PA1 | PA2 | PA3 |
|---|---|---|---|
| Expanding and improving road infrastructure | - | - | 0.51 |
| Increasing public transportation services | - | - | 0.89 |
| Developing and implementing traffic education programs | 0.73 | - | - |
| Regulating and directing intra-city commerce | 0.45 | - | - |
| Removing public security checkpoints in the city | - | 0.81 | - |
| Reducing the number of bajajs | - | 0.48 | - |
| Establishing and using smart traffic management systems | 0.75 | - | - |
Four Random Forest models were developed to examine the causes of and possible solutions to traffic congestion in Mogadishu. The models were divided into two groups based on the study's objectives: in Models 1 and 2, the causes of congestion were examined, while in Models 3 and 4, possible solutions were evaluated. Within each category, one model was constructed using raw survey variables, whereas the other was built using factor scores derived from factor analysis. Through this approach, predictors were examined directly, and it was assessed whether prediction accuracy was improved by reducing the number of dimensions.
Model 1 included all survey questions on the causes of traffic congestion, such as poor road infrastructure, inadequate traffic signalization, failure to follow traffic rules, weak drainage systems, insufficient parking spaces, traffic accidents, natural conditions, and the increasing number of Bajaj vehicles. An accuracy rate of 93% was achieved by this model, and the most influential factors were identified as poor infrastructure, non-compliance with traffic rules, and weather conditions (Table 8). Additional validation analyses were conducted to assess the robustness and generalization performance of Model 1. The model achieved an independent test accuracy of 94.07%, while the out-of-bag accuracy was 94.44%, demonstrating a high level of consistency between external and internal validation results. Repeated five-fold cross-validation yielded an average accuracy of 91.25% with a Kappa coefficient of 0.869. Although the training accuracy reached 99.07%, the training–test accuracy difference was limited to 5 percentage points. Collectively, these findings indicate stable predictive performance across different validation procedures and no substantial evidence of overfitting.
In Model 2, factor scores were employed to group these variables into broader categories, including infrastructure challenges, traffic management issues, and natural or behavioral factors. By using factor scores, the accuracy was increased to 96%. As presented in Table 9, the main predictors were determined to be infrastructure-related problems and natural conditions. Repeated five-fold cross-validation was employed for hyperparameter optimization, and the out-of-bag (OOB) validation mechanism inherent to the Random Forest algorithm was also assessed. The optimized model achieved an independent test accuracy of 97.04% with a Cohen's Kappa coefficient of 0.956. The OOB accuracy reached 92.90%, while repeated five-fold cross-validation produced an average accuracy of 91.05% (Kappa = 0.867). In addition, the difference between the training and independent test accuracies was only 2.35 percentage points, indicating good generalization performance and no substantial evidence of overfitting.
Model 3 examined the proposed strategies for addressing traffic bottlenecks and utilized survey questions to measure support for road development, improved public transportation, traffic education programs, the elimination of checkpoints, the reduction of Bajaj vehicles, commercial regulation, and the implementation of smart traffic management systems. An accuracy rate of 87% was achieved by this model, and traffic education programs, the removal of unnecessary checkpoints, and the construction of new roads were identified as the most influential factors (Table 10). Additional validation analyses were performed to evaluate the robustness and generalization capability of Model 3. Using a stratified 70% training and 30% independent testing split, the Random Forest model achieved an independent test accuracy of 88.89% with a Cohen's Kappa coefficient of 0.831. The out-of-bag (OOB) accuracy was 89.20%, while repeated five-fold cross-validation produced an average accuracy of 85.93% (Kappa = 0.791). Although the training accuracy reached 95.06%, the difference between the training and independent test accuracies was limited to 6.17 percentage points. These validation results indicate consistent predictive performance across different validation procedures and provide no substantial evidence of overfitting.
In Model 4, these solution-based variables were transformed into factor scores, through which latent dimensions such as capacity expansion, policy and regulation, and behavioral interventions were captured. With this factor-based approach, the accuracy rate was slightly increased to 89%. Education programs and improved infrastructure were identified as the two primary predictors in this model (Table 11). The model achieved an independent test accuracy of 91.11% with a Cohen’s Kappa coefficient of 0.864. The out-of-bag accuracy was 87.96%, while repeated five-fold cross-validation yielded an average accuracy of 85.99% with a Kappa value of 0.791. The difference between the training and independent test accuracies was limited to 3.95 percentage points. Overall, the consistency among the independent test, OOB, and cross-validation results indicates stable predictive performance and no substantial evidence of overfitting.
Factor-based models (Models 2 and 4) outperformed their raw-variable counterparts systematically, validating that factor analysis increased predictive power by eliminating redundancy and emphasizing underlying dimensions. The results demonstrate the robustness of Random Forest models in identifying both the determinants of traffic congestion and the effectiveness of potential solutions, while also revealing the benefits of incorporating factor analysis to improve predictive power. The results obtained are summarized in Table 12. The data used, accuracy levels, and the most important parameters of the models are presented together in this table, with the differences between them clearly shown.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| None | 0.9231 | 1.0000 | 0.9600 |
| 1-25% | 0.9661 | 0.8906 | 0.9268 |
| 26-50% | 0.9583 | 1.0000 | 0.9787 |
| 51-75% | 0.7500 | 0.8571 | 0.8000 |
| 76-100% | 1.0000 | 1.0000 | 1.0000 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| None | 0.9231 | 1.0000 | 0.9600 |
| 1-25% | 1.0000 | 0.9672 | 0.9833 |
| 26-50% | 0.9792 | 0.9216 | 0.9495 |
| 51-75% | 0.7500 | 1.0000 | 0.8571 |
| 76-100% | 1.0000 | 1.0000 | 1.0000 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| None | 0.8462 | 1.0000 | 0.9167 |
| 1-25% | 0.8814 | 0.8387 | 0.8595 |
| 26-50% | 0.8333 | 0.8333 | 0.8333 |
| 51-75% | 0.9375 | 1.0000 | 0.9677 |
| 76-100% | 1.0000 | 1.0000 | 1.0000 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| None | 0.846 | 1.000 | 0.917 |
| 1-25% | 0.881 | 0.881 | 0.881 |
| 26-50% | 0.875 | 0.875 | 0.875 |
| 51-75% | 1.000 | 0.889 | 0.941 |
| 76-100% | 1.000 | 1.000 | 1.000 |
| Model | Data Used | Accuracy | Significant Parameters |
|---|---|---|---|
| 1. | Causes of congestion | 93% | Weather, Infrastructure, Driver behavior. |
| 2. | Factor analysis of causes of congestion | 96% | Weather conditions, Inadequate infrastructure, Traffic flow. |
| 3 | Solutions to congestion | 87% | Improving traffic education, removing checkpoints, reducing the number of bajaj. |
| 4 | Factor analysis solutions to congestion | 89% | Traffic congestion levels, Traffic regulatory factors, improving traffic flow. |
4. DISCUSSION
This research aims to examine the causes of traffic congestion in Mogadishu based on the perspective of road users. The results align with the research carried out in developing nations that are grappling with the same infrastructure, traffic control, and rapid urbanization issues.
The survey was designed to assess the perceptions of Mogadishu residents regarding traffic congestion and their priorities for potential solutions. Therefore, the findings obtained from the analysis should be considered as perceived priorities. Although many variables were statistically significant according to the analysis, the effect sizes were mostly weak or moderate. It should be noted that statistical significance alone is not sufficient to evaluate the results.
The research established that poor traffic signal systems are a major cause of traffic congestion in Mogadishu. The result conforms with studies conducted in Nigerian cities, which concluded that broken traffic lights cause disorder and delays, particularly during rush hours [5]. Furthermore, results from research done in Harare, Zimbabwe, and Gaborone, Botswana, point out that poor resources, driver misconduct, and undeveloped infrastructure are causes of poor traffic flow management, which is in conformity with the results of this research [7, 8].
The surge of Bajajs, or three-wheeled vehicles, was also identified by the research as a specific factor exacerbating traffic congestion in Mogadishu. Although this issue is not directly addressed in the literature, it is aligned with broader concerns regarding the increasing number of vehicles in rapidly growing metropolitan areas, as demonstrated in research conducted in Muscat, Oman [33].
Driver noncompliance with traffic rules was also identified as a significant contributor to congestion in Mogadishu. Similar driver-related and traffic-management problems have been reported in studies conducted in Nigerian cities [5], Gaborone [7], and Harare [8].
Various strategies were proposed by the research to alleviate traffic congestion in Mogadishu, including the implementation of intelligent traffic management systems, the regulation of Bajajs, the strengthening of traffic law enforcement, and investment in new roads and bridges. Similar recommendations have been proposed by other researchers, including the deployment of advanced traffic management technologies, the provision of traffic education, the enforcement of strict regulations, the establishment of designated drop-off and pick-up points for vendors, the implementation of clear parking rules, and the adoption of smart urban transport systems.
Insufficient infrastructure and traffic signaling systems, identified as critical factors in this study, are recognized as prevalent causes of congestion in numerous cities worldwide. It was also determined that specific factors contribute to traffic congestion in Mogadishu. Following the war, checkpoints were established for security reasons, disrupting travel and leading to traffic congestion. As the dismantling of checkpoints in post-conflict cities is generally a prolonged process, this bottleneck is expected to continue slowing transportation and may even become a persistent issue. Substantial local contextual factors in the designated region must be considered in future research. For instance, the widespread use of Bajaj scooters as an informal mode of transportation is regarded as a distinctive characteristic of the city’s transport system. Although three-wheeled vehicles similar to those in Mogadishu are observed in other cities, congestion effects are intensified in Mogadishu due to regulatory conditions and operational practices. In this context, it is demonstrated that cities such as Mogadishu experience both common urban congestion challenges and context-specific problems. This situation should be appropriately addressed by policymakers.
Crucial information for policymakers was provided by the results obtained from the four models used. For instance, inadequate infrastructure and traffic signaling systems, non-compliance with traffic rules, irregular and widespread use of roadside assistance vehicles, traffic disruptions caused by sudden and heavy rainfall, and infrastructure damage were identified as statistically significant factors. Therefore, investment in both physical and human-centered infrastructure is required by planners and decision-makers. Examples include efforts aimed at increasing road capacity, implementing smart signaling systems, providing traffic education, and establishing effective planning and control systems for different modes of transportation.
One of the most important contributions of this study is the application of machine learning to the analysis of urban traffic. Random Forest was selected due to its stability, its ability to capture nonlinear relationships, and its robustness against overfitting. Traditional statistical approaches are generally characterized by rigid assumptions regarding the interpretation of results. In contrast, Random Forest can be applied to large and complex datasets and can provide measures of feature importance. Through this capability, not only can periods of severe congestion be predicted, but also the variables exerting the greatest influence on outcomes can be identified. For this reason, it is regarded as a useful tool for urban traffic planning.
Factor analysis facilitated predictive modeling by reducing the dimensionality of the survey data and representing correlated variables through a smaller set of interpretable latent factors. Through a lower-dimensional representation of the data, it simplified complicated representations of several interrelated causes and solutions into reasonable latent factors. It not only enhanced interpretability but also enhanced model precision, as evidenced by the increased performance of factor score-based models compared to raw variable-based models. Results confirm that dimension-reduction techniques can significantly enhance the utility of machine learning algorithms for real-world use in urban traffic analysis.
This study has several limitations that should be considered when interpreting the findings. First, the cross-sectional design captures participants’ perceptions at a single point in time. It therefore does not allow causal relationships between the identified factors and traffic congestion to be established. Second, the study relies on self-reported survey data and may consequently be subject to recall and perception biases. Third, security-related constraints during data collection restricted the sampling frame primarily to university students and staff and limited the representation of other population groups, including informal sector workers, commercial vehicle operators, women, and elderly individuals. These groups may experience traffic congestion differently; therefore, the findings should be interpreted with caution and should not be considered fully representative of the broader population of Mogadishu. Fourth, the analysis is based on perceived traffic conditions and does not incorporate objective traffic measurements, such as traffic counts, travel speeds, GPS trajectories, or sensor-based data. Future studies combining such objective measurements with perception-based data could provide a more comprehensive assessment of urban congestion. Finally, because the study focuses exclusively on Mogadishu, the findings may reflect city-specific transportation, security, and socioeconomic conditions and cannot be directly generalized to other post-conflict cities. The gender imbalance in the sample (80% male and 20% female) may have influenced the reported perceptions of traffic congestion. Therefore, this imbalance should be considered when generalizing the findings to the broader population of Mogadishu. Comparative studies across multiple conflict-affected and post-conflict cities are therefore recommended to assess the transferability of the proposed analytical framework.
CONCLUSION
The research is further advanced by situating the findings within a war-affected city such as Mogadishu. While previous studies have primarily focused on well-governed urban regions, it is demonstrated in this study that instability and governance inefficiencies exacerbate congestion problems. These results can contribute to the development of effective and socially accepted solutions in Mogadishu and similar cities. Furthermore, the data collection and analysis methods described in this study can serve as a model for similar research. The main findings of the research are summarized as follows:
- Weak infrastructure, improper signalization, driver non-compliance, and natural factors are the main causes of traffic congestion in Mogadishu.
- The most effective ways of reducing congestion are road expansion, traffic education, and dismantling checkpoints.
- Machine learning approaches such as Random Forest provide more robust prediction capability and interpretability than regular methods.
- Factor analysis increased model explainability and accuracy by reducing redundancy within the variables.
- The study provides a practical model for addressing traffic congestion in post-conflict and rapidly urbanizing cities.
Future research could integrate objective traffic data, such as sensor, GPS, or traffic count data, with survey-based perceptions to provide a more comprehensive assessment of urban congestion. Furthermore, the proposed analytical framework could be tested with more diverse population groups in Mogadishu and applied to other post-conflict or conflict-affected cities to evaluate its generalizability across different urban contexts.
AUTHORS’ CONTRIBUTIONS
The authors confirm their contributions to the paper as follows: S.A.M., N.A.: Study conception and design; S.A.M.: Data collection; S.A.M., N.A.: Analysis and interpretation of results; S.A.M., N.A., F.Y.: Draft manuscript. All authors reviewed the results and approved the final version of the manuscript.
LIST OF ABBREVIATIONS
| EFA | = Exploratory Factor Analysis |
| KMO | = Kaiser-Meyer-Olkin |
| OOB | = out-of-the-bag |
HUMAN AND ANIMAL RIGHTS
All procedures involving human participants were conducted in accordance with the ethical standards of the committee responsible for human experimentation (institutional and national), and with the Helsinki Declaration of 1975, as revised in 2013.
CONSENT FOR PUBLICATION
Participation in the study was entirely voluntary. All participants were informed about the purpose of the study prior to completing the questionnaire, and informed consent was obtained from all participants before their participation.
AVAILABILITY OF DATA AND MATERIALS
The data supporting the findings of this study are available from the corresponding author upon reasonable request.
CONFLICT OF INTEREST
Dr. Nurten Akgün is an Associate Editorial Board Member of The Open Transportation Journal.
ACKNOWLEDGEMENTS
The authors would like to express their sincere gratitude to all volunteer participants who took part in the survey and shared their experiences regarding traffic congestion in Mogadishu.
APPENDIX A. SURVEY QUESTIONNAIRE
The questionnaire was developed based on commonly used items reported in previous transportation perception studies and was adapted to reflect the local transportation conditions of Mogadishu. The survey consisted of six sections covering socio-demographic characteristics, socio-economic characteristics, travel behavior, experience with traffic congestion, perceived causes of traffic congestion, and perceived congestion mitigation strategies.
Section A. Socio-demographic Characteristics
- Q1. What is your gender?
- ☐ Male
- ☐ Female
- Q2. What is your highest level of education?
- ☐ Primary school or below
- ☐ Middle school
- ☐ High school
- ☐ Bachelor's degree
- ☐ Master's/Doctoral degree
- Q3. What is your marital status?
- ☐ Single
- ☐ Married
- Q4. What is your age?
- ☐ 18–25 years
- ☐ 26–35 years
- ☐ 36–45 years
- ☐ 46–55 years
- ☐ 56–65 years
Section B. Socio-economic Characteristics
- Q5. What is your current employment status?
- ☐ Employed
- ☐ Unemployed
-
Q6. What is your monthly income? - ☐ 0–200 USD
- ☐ 201–350 USD
- ☐ 351–500 USD
- ☐ Above 500 USD
Section C. Daily Travel Characteristics
- Q7. What is your most frequently used travel mode?
- ☐ Public transportation
- ☐ Private car
- ☐ Bajaj
- ☐ Motorcycle
- ☐ Walking
- Q8. What is your average daily travel time?
- ☐ 0–30 minutes
- ☐ 31–60 minutes
- ☐ 61–90 minutes
- ☐ 91–120 minutes
- ☐ More than 120 minutes
- Q9. Approximately what proportion of your daily travel time is lost due to traffic congestion?
- ☐ None
- ☐ 1–25%
- ☐ 26–50%
- ☐ 51–75%
- ☐ 76–100%
- Q10. During which period do you usually travel?
- ☐ Morning
- ☐ Noon
- ☐ Evening
- ☐ Night
Section D. Traffic Congestion Experience
- Q11. How often are you exposed to traffic congestion in Mogadishu?
- ☐ Daily
- ☐ Several times a week
- ☐ Once a week
- ☐ Once a month
- ☐ Rarely
- Q12. Which intersection is most affected by traffic congestion?
- ☐ Soobe Intersection
- ☐ Hawlwadaag Intersection
- ☐ KM4 Intersection
- ☐ Other
- Q13. How likely are you to change your travel mode because of traffic congestion?
- ☐ Never
- ☐ In certain situations
- ☐ Frequently
- ☐ Always
- Q14. How often have you missed an appointment due to traffic congestion?
- ☐ Never
- ☐ A few times
- ☐ Frequently
Section E. Perceived Causes of Traffic Congestion
Scale:
1 = Strongly Disagree
2 = Disagree
3 = Neutral
4 = Agree
5 = Strongly Agree
-
Q15. Please indicate your level of agreement with each of the following statements regarding the causes of traffic congestion in Mogadishu.
- Insufficient road.
- Drivers' non-compliance with traffic rules.
- Inadequate public transportation services.
- Insufficient parking areas and management.
- Natural factors affecting traffic (e.g., weather conditions).
- Inadequate traffic lights and signalization systems.
- Increase in the number of Bajaj vehicles
- Poor drainage facilities
- Traffic accidents blocking the road
Section F. Perceived Traffic Congestion Mitigation Strategies
Scale:
1 = Not Effective at All
2 = Slightly Effective
3 = Moderately Effective
4 = Effective
5 = Very Effective
-
Q16. In your opinion, how effective would the following measures be in reducing traffic congestion in Mogadishu?
- Expanding and improving road infrastructure.
- Improving public transportation services.
- Developing and implementing traffic education programs.
- Regulating and managing urban commercial activities.
- Removing public security checkpoints.
- Reducing the number of Bajaj vehicles.
- Implementing intelligent traffic management systems.

