Segmentation-Based Repair of Unstable Procedurally Generated Game Levels in Angry Birds

dc.contributor.advisorZhao, Richard
dc.contributor.authorFarrokhimaleki, Mahdi
dc.contributor.committeememberMaleki, Farhad
dc.contributor.committeememberMaurer, Frank
dc.date2026-06
dc.date.accessioned2026-04-07T19:16:50Z
dc.date.issued2026-04-02
dc.description.abstractThe video game industry has been expanding rapidly, and this huge market means there is always a need for new content. However, the process of creating a game is very time consuming and can take several years. Procedural Content Generation (PCG) is considered one of the solutions to this problem and can increase replay value, reduce production costs, and minimize effort. While PCG methods can generate vast amounts of content efficiently, ensuring structural stability remains a critical challenge, particularly in physics-based games such as Angry Birds. In these games, levels consist of interconnected structures, where even minor instability can lead to unintended collapses. This thesis presents a segmentation-driven repair framework designed to enhance the stability and structural quality of AI-generated game levels for industry use. The proposed framework operates in two main stages: (1) detection of structural gaps using semantic segmentation, and (2) automated reinforcement through targeted block placement. Three segmentation architectures (U-Net, SegFormer, and YOLOv8m-Seg) were trained and evaluated on a dataset of unstable Angry Birds-style levels. Performance was measured using Precision, Recall, F1-score, and Intersection over Union (IoU) for segmentation accuracy, as well as Block Velocity (BV), Block Damage (BD), and Block Destruction (BDes) metrics for stability improvement. Manual evaluation conducted by the author indicated that YOLOv8m-Seg repairs produced the most stable and structurally consistent results to assess perceived stability and structural coherence. Experimental results show that all three models contributed to substantial stability gains, with YOLOv8m-Seg achieving the highest overall performance. Specifically, YOLOv8m- Seg repairs increased the proportion of stable levels up to 45% according to level stability metrics, while maintaining structural consistency. Manual evaluation conducted by the author indicated that YOLOv8m-Seg repairs produced the most stable and structurally consistent results, followed by SegFormer and U-Net. The contributions of this thesis include the development of a modular repair framework for AI-generated levels, a comparative study of segmentation architectures for structural gap detection, and the demonstration of repair strategies that prioritize stability improvements while preserving the original structural design of levels. The proposed framework can be integrated into industry pipelines as a post-processing, designer-assist, or automated QA tool, paving the way for broader adoption of AI-driven content generation in professional game development.re
dc.identifier.citationFarrokhimaleki, M. (2026). Segmentation-based repair of unstable procedurally generated game levels in angry birds (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca.
dc.identifier.doihttps://dx.doi.org/10.11575/PRISM/51228
dc.identifier.urihttps://hdl.handle.net/1880/124440
dc.language.isoenen
dc.publisher.facultyScience
dc.rightsUnless otherwise indicated, this material is protected by copyright and has been made available with authorization from the copyright owner. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.en
dc.subjectGames
dc.subjectPCG
dc.subjectProcedural Content Generation
dc.subjectRepair
dc.subjectGame Level
dc.subject.classificationComputer Science
dc.subject.classificationArtificial Intelligence
dc.titleSegmentation-Based Repair of Unstable Procedurally Generated Game Levels in Angry Birds
dc.typemaster thesis
thesis.degree.disciplineComputer Science
thesis.degree.grantorUniversity of Calgary
thesis.degree.nameMaster of Science (MSc)
ucalgary.thesis.accesssetbystudentI do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible.

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
ucalgary_2026_farrokhimaleki_mahdi.pdf
Size:
3.22 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.62 KB
Format:
Item-specific license agreed upon to submission
Description: