Logo Lanfrica

Mariechanne/African-Flag-Color-Analysis

Creator:
Mar
Host:
Unsupervised ML analysis of color patterns in all 54 African national flags. Extracts ~200 colors via adaptive K-Means, clusters countries into 7 groups, and shows that geographic proximity and Pan-African ideology are stronger predictors of flag color than colonial heritage. # Chromatic Connections: African Flag Color Analysis **A data-driven exploration of color patterns, cultural identity, and post-colonial symbolism across all 54 African nations** --- ## Table of Contents 1. Research Question 2. Key Findings 3. Methodology 4. Cluster Breakdown 5. Visualizations 6. Project Structure 7. Quick Start 8. Technologies 9. Key Statistics 10. Future Work 11. License 12. About --- ## Research Question > **"Beyond shared colonial history, do flags with similar colors reflect deeper cultural, geographic, or ideological connections?"** **Answer: YES.** Color similarity correlates with geographic proximity, ideological movements, and design era far more strongly than colonial heritage alone. Post-independence Africa chose its own colors. --- ## Key Findings ### 1. Geographic Proximity is the Strongest Predictor (90%) West African countries cluster together regardless of colonial power — French (50%), British (23%), and Portuguese (15%) colonies share the same color profile because they share a neighborhood and inter-connected independence movements. ### 2. Three Waves of Panafricanist Adoption The red-black-gold palette didn't spread uniformly. It came in three distinct waves: | Wave | Decade | Count | Representative Countries | |------|--------|-------|--------------------------| | Pioneers | 1950s | 4 flags | Ghana, Guinea | | Uptake | 1960s | 5 flags | Diverse choices during the independence rush | | Resurgence | 1990s | 8 flags | Democratic transitions, renewed solidarity | ### 3. Design Complexity Evolved Over Time - **1960s:** Simple horizontal or vertical tricolor stripes - **1990s:** Complex diagonals, Y-shapes, and radiating patterns (South Africa, Rwanda) ### 4. Colonial Power is a Moderate Factor, Not Determinant (50%) It matters — but geography, ideology, and timing override it. A country's neighbors and political alignment predict its flag colors better than its former colonizer. ### 5. Tunisia: The Exception T …