Optimizing the Utilization of Generative Artificial Intelligence (AI) in the AEC Industry: ChatGPT Prompt Engineering and Design
Abstract
:1. Introduction
2. Literature Review
2.1. Natural Language Processing (NLP)
OpenAI’s Generative Pre-Trained Transformer (GPT): ChatGPT
2.2. Potential Applications of Generative AI in AEC
2.2.1. Information Retrieval from BIM
2.2.2. Robotic Sequence Planning
2.2.3. Scheduling
2.2.4. Hazard Recognition
2.2.5. Master Schedules
2.2.6. Material Selection and Optimization
2.2.7. Other Potential Applications
- Predesign: In the predesign stage, ChatGPT can assist with several aspects such as costing, project scope, timeline, and value engineering. A few studies [5,14,15,16] explored these capabilities. ChatGPT can provide preliminary cost estimates, define project scopes, and optimize timelines to ensure projects are completed on time and within budget.
- Design: During the design phase, ChatGPT can aid in generating design concepts, developing design specifications, ensuring regulatory compliance, performing quantity takeoffs and costing, optimizing material selection, and conducting energy efficiency analyses [17]. For tasks like design concepts and specifications, zero-shot and few-shot approaches have been adopted by [5]. ChatGPT can help navigate the complexities of frequently updated building codes and safety standards, reducing the risk of errors that could affect project schedules and costs. It can also support the preparation of bills of quantities and reference standards and techniques to improve building energy efficiency, such as passive solar design and renewable energy integration.
- Operation and maintenance: ChatGPT can be leveraged to predefine the lifetime and schedule timely maintenance of machinery and construction equipment, thereby avoiding hazards on job sites [19]. In the event of an incident, ChatGPT can provide instant solutions to manage the situation effectively [5].
- Value-Added Services: Although not directly tied to a specific phase of the construction project lifecycle, ChatGPT can enhance various value-added services. These include customer service and support, knowledge management and training, chatbot/conversational systems, stakeholder management, and market analysis [5].
2.3. Challenges and Limitations of Generative AI
- Hallucination: Models can provide incorrect information that sounds convincing but is entirely false, reducing performance.
- Data and Interoperability: The lack of structured data and the slow transition to digital technology in the industry make it difficult to fine-tune models. Data in various formats (PDF, HTML, CAD, IFC) must be standardized, which can dilute the information.
- Domain-Specific Knowledge and Regulatory Compliance: Models have limited understanding of domain-specific knowledge. The construction industry’s extensive and varying regulations require comprehensive knowledge and logical reasoning, which models may lack.
- Confidentiality and Intellectual Property: Projects contain sensitive data (designs, costs, contracts). There are concerns about maintaining confidentiality and avoiding intellectual property infringements when using AI.
- Trust and Acceptability: Resistance to change and skepticism about AI’s reliability are prevalent. Industry professionals fear AI may replace jobs and are hesitant to trust AI for significant decisions.
- Liability and Ethics: Bias, incomplete information, and inaccuracies can lead to harmful outputs. AI models may struggle to fully understand legal requirements, necessitating clear guidelines and human oversight.
- Skills and Training: Effective use of AI requires new skills and training, particularly in prompt engineering. This requirement may slow progress.
- Infrastructure Requirements and Costs: Smaller businesses may lack the resources for the necessary computing power, network connectivity, and data storage.
- Scalability and Performance Optimization: Fine-tuning models for diverse tasks remains a challenge. Models may underperform outside their trained tasks.
- Cybersecurity: Increased digital interconnectedness raises the risk of unauthorized access, data breaches, and cyber-attacks. Proper training and awareness are essential.
- Interdisciplinary Collaboration: Effective collaboration across architecture, engineering, and construction management is crucial. New technologies may face skepticism, affecting collaboration.
- Cultural and Social Considerations: Fear of job displacement and data privacy concerns can hinder AI acceptance. Social and cultural factors significantly influence trust and adoption.
- Latency Issues: Time-sensitive projects may suffer from delays due to data processing and training lag.
- Maintenance and Upkeep: AI models require continuous maintenance and updates to prevent degradation and ensure accuracy.
- Multilingual Language Processing: There is a growing need for multilingual capabilities. ChatGPT has shown underperformance in languages other than English.
- Standards and Variability: Diverse and evolving industry standards across regions and projects complicate AI implementation. Models need adaptive databases updated with the latest standards and codes.
2.4. Prompt Engineering and Design
- User Intention: Users anticipated the final output. This helps to meet the end-user requirements by understanding the purpose of interaction with ChatGPT.
- Model Understanding: By understanding the strengths and limitations of ChatGPT, this will assist in the design of prompts to provide relevant responses to most of the model’s capacities. It should also be noted that it may also produce incorrect responses at times.
- Domain Specificity: when the end user is dealing with a specific domain of research like the AEC industry, the end-user should provide relevant prompts to guide the model to generate relevant responses.
- Clarity: The end user must ensure that the given prompts are clear enough to avoid any uncertainty that may lead to less ideal responses. This uncertainty may arise from a lack of clarity in the prompts.
- Constraints: To achieve the desired output, it is also necessary to determine constraints like the length of response and the required format, etc. Mentioning those constraints will help the model to fine-tune the response and can also meet the expectations of the end user.
- Understanding Fundamental Concepts: Gaining a basic understanding of how artificial intelligence and machine learning models operate can serve as a foundation for developing prompt engineering skills. This comprehension can be achieved without prior technical or coding skills.
- Familiarizing with Large Language Models (LLMs): Understanding the unique strengths and limitations of different LLMs can help generate more effective prompts.
- Practicing Regularly: Frequent interaction with LLMs and recording the prompts that yield the most precise and informative responses can be beneficial. As practice makes perfect, this helps in refining prompt engineering skills.
- Additionally, evaluating prompts in real-world situations is essential to assess their efficiency and effectiveness.
2.5. Existing Gaps
3. Materials and Methods
3.1. Literature Review and Selection of Prompt Engineering Techniques
3.1.1. Zero-Shot vs. Few-Shot Prompts
3.1.2. Prompt Optimization Techniques
- Instructional Prompts: Incorporating instructions on format, style, etc. to the prompt to guide ChatGPT towards the desired output.Example: “Write a 500-word essay on the importance of effective scheduling in construction projects, focusing on its impact on budget management and deadline adherence. Use a formal tone and include at least two real-world examples to illustrate your points”.
- Constraint-based Prompts: Defining explicit constraints such as word count limits, required keywords, etc. to control ChatGPT’s response and generate output that satisfies specified requirements.Example: “Provide a brief overview of construction scheduling in exactly 100 words, ensuring you include the keywords ‘Gantt chart’, ‘critical path method’, and ‘resource allocation’. Make it suitable for an audience with no prior knowledge of construction management”.
- Exemplar-based Prompts: Creating examples for the model, with specific instances of the desired output, to encourage the model towards generating output that is aligned with the given example, in terms of style, content, structure, etc.Example: “Here’s an example of a concise explanation: ‘Construction scheduling is the process of mapping out the start and completion dates of various tasks in a construction project to ensure timely completion. Tools like Gantt charts help visualize this timeline’. Now, write a similar brief explanation focusing on the role of technology in enhancing construction scheduling, maintaining the concise and informative style”.
- Contextual Prompts: Including relevant information in the prompt to generate coherent output in the context provided.Example: “Considering a scenario where a construction project is set in a high-traffic urban area with limited working hours due to noise regulations, describe how scheduling adjustments can be made to minimize disruptions and still meet the project deadline”.
- Priming Prompts: Seeding the model with the primary portion of the desired output, to generate more contextually appropriate outcomes.Example: “Effective construction scheduling involves meticulous planning and flexibility. Given this statement, expand on how incorporating buffer times for unforeseen delays and regular progress reviews can contribute to maintaining schedules despite unexpected challenges”.
- Reformulating and Rewriting Prompts: Modifying the structure of a prompt to guide the model in the desired direction and create more accurate output.Example: Change the Original Prompt: “Tell me about construction scheduling” to Revised Prompt: “Explain the process and significance of scheduling in construction projects, highlighting how it influences project efficiency, cost control, and stakeholder satisfaction”.
- Setting Prompt Variations: Different variations such as role, tone, and temperature can be defined to improve the quality of the generated output.Example: “Write a summary of construction scheduling techniques from the perspective of a seasoned project manager emphasizing practicality and problem-solving. Then, rewrite the summary from the perspective of a new construction management graduate, focusing on theoretical understanding and learning enthusiasm”.
3.1.3. Bad Prompts
- Vague and Misleading Prompts: ChatGPT is not able to generate a meaningful output for vague prompts. It also lacks the ability to generate fully unbiased responses, when a question is leading towards a specific outcome.Example: Change “Do something about scheduling” to “Explain the steps involved in creating a construction project schedule, including key considerations for task sequencing and resource allocation”.
- Mathematical and Logical Prompts: It is recommended to ask ChatGPT to “think step by step” when dealing with mathematical or logical questions.Example: Change “How quickly can a building be constructed?” to “Considering a 10-story office building with a total floor area of 100,000 square feet, estimate the construction schedule assuming standard working hours, a crew of 50 workers, and typical urban construction conditions. Break down the process step by step, including key phases like design, permitting, foundation work, structural framing, and finishing”.
- Academic References: It is not recommended to ask ChatGPT for references, especially academic citations, as the model is prone to generate fake output.Example: “Provide a detailed analysis of the most effective scheduling techniques according to Jones & Smith (2023)”.
3.1.4. OpenAI Prompt Engineering Strategies
- Strategy 1—Precise Instruction Writing: Crafting prompts with explicit detail regarding desired response length, complexity, and style ensures responses are closely aligned with expectations.
- Tactic 1.1: Enrich your query with specifics to elicit more relevant responses.Example: “How do I efficiently allocate resources while scheduling overlapping phases in a Gantt chart?”
- Tactic 1.2: Encourage the model to assume a specific role.Example: “Compose a message as a project manager, expressing gratitude to a subcontractor for precise schedule adherence, essential for timeline preservation”.
- Tactic 1.3: Employ clear markers to distinguish different segments of your input.Example: “Examine the project schedule in the supplied CSV. Pinpoint and propose adjustments for any subcontractor schedule overlaps”.
- Tactic 1.4: Clearly outline the task steps.Example: “Create a detailed instruction manual for developing a Gantt chart in Excel for a compact renovation, including task dependencies and resource assignment”.
- Tactic 1.5: Illustrate with examples.Example: “Detail instances of how unexpected delays were navigated in construction projects, outlining stakeholder communication and schedule adjustment strategies”.
- Tactic 1.6: Define the output’s desired extent.Example: “Condense the essential actions for crafting a construction project timeline into three bullet points, emphasizing planning, resource distribution, and oversight”.
- Strategy 2—Utilizing Reference Materials: Supplementing queries with reference texts minimizes inaccuracies, enabling models to produce responses with greater accuracy and context.
- Tactic 2.1: Direct the model to base answers on provided texts.Example: “Determine best practices for handling supply chain issues from the construction guide in the PDF”.
- Tactic 2.2: Apply embeddings for effective information retrieval.Example: “Search the integrated construction regulation database for high-rise safety standards”.
- Tactic 2.3: Request answers that reference the supplied text.Example: “Using the urban development code document, describe the process for securing a permit for a new commercial structure, citing each phase”.
- Strategy 3—Breaking Down Complex Tasks: Segmenting complicated tasks into simpler, more manageable components increases precision and effectiveness through stepwise engagement.
- Tactic 3.1: Classify queries to apply the most pertinent instructions.Example: “Identify the construction inquiry as concerning ‘material logistics’, ‘crew scheduling’, or ‘compliance with safety’, providing targeted advice accordingly”.
- Tactic 3.2: Summarize or distill extended dialogues.Example: “Condense the main points from a detailed discussion on project oversight, focusing on consensus action points concerning schedule management”.
- Tactic 3.3: Sequentially summarize extensive documents.Example: “Abstract each section of the project management guide, then synthesize a comprehensive summary capturing essential management insights”.
- Strategy 4—Allowing Time for Thought: Encouraging a process of stepwise contemplation aids in generating more precise and considerate responses.
- Tactic 4.1: Prompt the model to devise its solution before conclusion.Example: “Forecast the completion timeline for the construction phases, taking into account variables like team size and material supply, and then assess against the original schedule”.
- Tactic 4.2: Mask the reasoning process with targeted inquiries or internal dialogue.Example: “Ascertain the optimal deployment of construction machinery for the week ahead, factoring in immediate task requirements, while keeping the decision-making rationale private”.
- Strategy 5—Implementing External Instruments: Augmenting tasks with external resources for complex computations or data acquisition enhances the quality of outputs.
- Tactic 5.1: Leverage knowledge search through embeddings.Example: “Embed up-to-the-minute meteorological data into the planning tool to adaptively modify task schedules according to weather predictions”.
- Tactic 5.2: Conduct precise calculations or interface with APIs through code execution.Example: “Run a Python program to deduce the best concrete blend, using live data on weather conditions accessed via an external API”.
- Strategy 6—Systematic Modification Testing: A methodical evaluation of prompt adjustments ensures consistent enhancement across various scenarios.
- Tactic 6.1: Assess outputs against definitive answers.Example: “Evaluate the devised construction timetable with established benchmarks for comparable ventures, pinpointing discrepancies and potential for refinement”.
3.2. Experimental Design for Testing Prompts
- Construction Scheduling: The absolute difference between the estimated project duration and the actual project duration, divided by the actual project duration. used for scheduling cases.
- Construction Hazard Recognition: The number of identified hazards by ChatGPT is compared to the actual hazards identified by OSHA and the relative error is calculated as:
3.3. Analysis and Refinement of Effective Prompts
4. Application 1: Construction Scheduling
- Case Study 1: Residential Building [27].
- Case Study 2: Multipurpose Building [28].
- Case Study 3: Office Building Reconfiguration [29].
- Case Study 4: Business Park Development [30].
- Case Study 5: Luxury Villa [31].
- Prompt PS1:
- Instructional Prompts: The prompt clearly instructs ChatGPT on the format and content required (table details, specific columns, and calculations).
- Constraint-based Prompts: It specifies constraints such as excluding a particular phase and starting on a specific day.
- Contextual Prompts: Provides context about the project and what is excluded to generate coherent output.
- Prompt PS2:
- Instructional Prompts: Provides detailed instructions on how to format and present the Gantt chart.
- Constraint-based Prompts: Specifies constraints like removing every other date and using a specific title and document format.
- Reformulating and Rewriting Prompts: Adjusts the original request to include detailed steps and formatting instructions.
- Prompt PS3:
- Instructional Prompts: Provides a detailed set of instructions for the Monte Carlo simulation process.
- Constraint-based Prompts: Defines specific constraints such as using triangular distributions and a 10% variability.
- Priming Prompts: Seeds the model with initial context about the complexity and uncertainty in construction projects.
- Breaking Down Complex Tasks: Segments the task into manageable steps, improving precision and effectiveness.
- Visualization Prompts: Requests a visual representation of the simulation outcomes.
4.1. Case Study 1: Residential Building
4.1.1. Duration Estimation
4.1.2. Gantt Chart
4.1.3. Monte Carlo Simulation
4.2. Case Study 2: Multipurpose Building
4.2.1. Duration Estimation
4.2.2. Gantt Chart
4.2.3. Monte Carlo Simulation
4.3. Case Study 3: Office Building Reconfiguration
4.3.1. Duration Estimation
4.3.2. Gantt Chart
4.3.3. Monte Carlo Simulation
4.4. Case Study 4: Business Park Development
4.4.1. Duration Estimation
4.4.2. Gantt Chart
4.4.3. Monte Carlo Simulation
4.5. Case Study 5: Luxury Villa
4.5.1. Duration Estimation
4.5.2. Gantt Chart
4.5.3. Monte Carlo Simulation
4.6. Discussion on Scheduling Case Studies
5. Application 2: Construction Hazard Recognition
- Case Study 1: Floor Opening.
- Case Study 2: Bridge Decking.
- Case Study 3: Swinging Crane.
- Case Study 4: Trenching.
- Case Study 5: Working Safely with Ladders Near Power Lines.
- Similar to the Scheduling Prompts, the prompt engineering techniques explained in the methodology section are utilized to create the hazard recognition prompt as:
- Instructional Prompts: The prompt clearly provides step-by-step instructions for each task, guiding ChatGPT towards the desired output. It specifies the actions to be performed, such as identifying hazards, detailing OSHA procedures, creating an image, and generating a checklist.
- Constraint-based Prompts: The prompt sets explicit constraints by specifying the format (e.g., table format for the checklist, .doc document format for the final output) and the elements to be included in the image (guardrails, warning signs, personal protective equipment).
- Contextual Prompts: The prompt includes relevant information about the construction activity and the context of the tasks, helping ChatGPT generate coherent and contextually appropriate responses. For example, it mentions the specific activity and safety measures relevant to that activity.
- Reformulating and Rewriting Prompts: This prompt involves breaking down a complex task into smaller, more manageable tasks, guiding the model through each step to achieve accurate and comprehensive results.
- Priming Prompts: The prompt primes ChatGPT with specific instructions and expectations for each task, setting the stage for the model to build upon this information and generate detailed and relevant outputs.
5.1. Case Study 1: Fall in Construction—Floor Opening Example
5.1.1. Potential Hazards Identification
- Unprotected Edges: The floor opening does not seem to have any guardrails or covers, posing a fall hazard.
- No Warning Signs: There are no visible warning signs indicating the presence of a floor opening.
- Lack of Personal Protective Equipment (PPE): The individual in the image does not appear to be wearing any fall protection gear.
- Tools Near Edge: There are tools near the edge of the opening, which may present a tripping hazard or could fall through the opening.
5.1.2. OSHA Safety Procedures
- Unprotected Edges:
- OSHA requires that all floor holes into which a person can accidentally walk be guarded by either a standard railing with toeboard or a floor hole cover of standard strength and construction (Refer to OSHA 1910.28(b)(3)(i) [33]).
- No Warning Signs:
- OSHA standard requires that the area should be marked with a warning sign or other indicators such as safety cones to warn of the open floor (Refer to OSHA 1926.502(f)(2) [33]).
- Lack of Personal Protective Equipment (PPE):
- When work is performed at six feet or more above lower levels, the workers should use guardrails, safety nets, or personal fall arrest systems (Refer to OSHA 1926.501(b)(1) [33]).
- Tools Near Edge:
- All materials and equipment should be kept far enough from the edge of the floor opening to prevent them from being knocked into the hole (Refer to OSHA 1926.501(b)(4) [33]).
5.1.3. Safety Implementation Image
5.1.4. Safety Checklist
5.2. Case Study 2: Fall in Construction—Bridge Decking Example
5.2.1. Potential Hazards
- Fall Hazard: There is a significant drop visible next to the bridge decking, which presents a fall hazard.
- Tripping Hazard: Rebar protrusions can be tripping hazards.
- Lack of Guardrails: There are no guardrails on the open sides of the bridge decking, increasing the risk of falls.
- Personal Protective Equipment (PPE): The individual closest to the edge does not appear to be wearing a harness or any fall protection gear.
5.2.2. OSHA Safety Procedures:
- Fall Protection:
- Where there is a risk of falling six feet or more, OSHA requires employers to provide fall protection systems, such as guardrails, safety nets, or personal fall arrest systems (Refer to 29 CFR 1926.501 [33]).
- Guardrail Systems:
- When work is being performed on a surface with unprotected sides and edges six feet above lower levels, guardrail systems should be installed (Refer to 29 CFR 1926.502(b) [33]).
- Control of Hazardous Energy (Lockout/Tagout):
- Proper procedures should be implemented to ensure that equipment is de-energized and cannot be started up unexpectedly, which is relevant if any machinery is being used on the bridge decking (Refer to 29 CFR 1910.147 [33]).
- Safety Training and Education:
- Employers must instruct each employee in the recognition and avoidance of unsafe conditions and the regulations applicable to their work environment to control or eliminate any hazards or other exposure to illness or injury (Refer to 29 CFR 1926.21(b)(2) [33]).
5.2.3. Safety Implementation Image
5.2.4. Safety Checklist
5.3. Case Study 3: Struck-By Accidents in Construction—Swinging Crane Example
5.3.1. Identified Hazards
- Proximity to Power Lines: The crane appears to be operating near a building that may have power lines nearby, which is a common hazard.
- Overloading: Without specific information, it is impossible to tell if the crane is properly loaded, but overloading is a risk that can lead to tipping.
- Unsecured Load: The load being lifted must be properly secured to prevent it from slipping.
- Operator Visibility: It is unclear if the crane operator has a clear line of sight for the entire path of the crane and load.
- Worker Proximity: There is a worker on the ground close to the operating crane which poses a risk of being struck by the load or the crane.
- Stability of Crane: The crane needs to be on stable ground and properly balanced to avoid tipping.
5.3.2. OSHA Safety Procedures:
- Proximity to Power Lines:
- Maintain a safe working clearance from all power lines (at least 10 feet) (Refer to 29 CFR 1926.1408 [33]).
- De-energize and ground power lines when working in close proximity where possible (Refer to 29 CFR 1926.1408 [33]).
- Use a dedicated spotter to ensure the crane stays a safe distance away from power lines (Refer to 29 CFR 1926.1408 [33]).
- Overloading:
- Operator Visibility:
- Worker Proximity:
- Stability of Crane:
5.3.3. Safety Implementation Image
5.3.4. Safety Checklist
5.4. Case Study 4: Excavations in Construction—Trenching Example
5.4.1. Identified Hazards
- Protective Systems: Lack of protective systems to prevent cave-ins.
- Safe Egress: No visible means of safe egress such as ladders or steps within 25 feet of workers.
- Hazardous Atmospheres: The trench appears to be deeper than 4 feet, and there are no visible protective measures against potential hazardous atmospheres.
- Barricades and Warning Signs: There are no barricades or warning signs indicating the presence of a trench, which can pose a risk to the workers and the public.
5.4.2. OSHA Safety Procedures
- Protective Systems:
- For trenches deeper than 5 feet, OSHA requires a protective system unless the excavation is made entirely in stable rock. Options include sloping, shoring, benching, or using a trench box (Refer to 29 CFR 1926.652(a)(1) [33]).
- Safe Egress:
- OSHA mandates that there must be safe means of egress, such as ladders or steps, within 25 lateral feet of workers in trenches 4 feet or deeper (Refer to 29 CFR 1926.651(c)(2) [33]).
- Hazardous Atmospheres:
- When there is a potential for a hazardous atmosphere in trenches deeper than 4 feet, OSHA requires testing before entry and as needed throughout the work, with emergency rescue equipment available where hazardous conditions exist (Refer to 29 CFR 1926.651(g) [33]).
- Barricades and Warning Signs:
- OSHA standards necessitate that barricades, hand or mechanical signals, or stop logs be used if there is a risk of equipment falling into or operating near the trench. Warning vests or other highly visible clothing are required for workers exposed to public vehicular traffic (Refer to 29 CFR 1926.651(k) [33]).
5.4.3. Safety Implementation Image
5.4.4. Safety Checklist
5.5. Case Study 5: Electrocution-Working Safely with Ladders near Power Lines Example
5.5.1. Identified Hazards
- Proximity to Power Lines: The ladder is placed very close to the power lines, which poses a risk of electrocution.
- Ladder Angle: It appears that the ladder may not be at the correct angle, which should be approximately 75 degrees from the ground for optimal stability.
- Ladder Base Stability: The base of the ladder needs to be on solid, level ground to prevent slipping or tipping.
- Personal Protective Equipment: It is not clear if the worker is wearing all the necessary personal protective equipment (PPE) for this task.
5.5.2. OSHA Safety Procedures
- Proximity to Power Lines:
- Maintain a minimum distance of 10 feet from overhead power lines (Refer to 29 CFR 1926.1408 [33]).
- Use a non-conductive ladder (e.g., fiberglass) when working near power lines (Refer to 29 CFR 1926.1408 [33]).
- De-energize and ground power lines when work is being performed near them, if possible (Refer to 29 CFR 1926.1408 [33]).
- Ladder Angle:
- Use the 4-to-1 rule: for every 4 feet of ladder height, the base should be 1 foot away from the wall (Refer to 29 CFR 1926.1053(b)(1) [33]).
- Ladders should be used at an angle where the horizontal distance from the top support to the foot of the ladder is about 1/4 of the working length of the ladder (Refer to 29 CFR 1926.1053(b)(5) [33]).
- Ladder Base Stability:
- Place the ladder on stable and level ground (Refer to 29 CFR 1926.1053(b)(5)(i) [33]).
- Secure the ladder at the base and top to prevent displacement (Refer to 29 CFR 1926.1053(b)(5)(ii) [33]).
- Extend the ladder 3 feet over the landing surface if you need to step onto another surface (Refer to 29 CFR 1926.1053(b)(16) [33]).
- Personal Protective Equipment:
5.5.3. Safety Implementation Image
5.5.4. Safety Checklist
5.6. Discussion on Hazard Recognition Case Studies
6. Conclusions
6.1. Challenges and Limitations
6.2. Future Research Directions
Funding
Data Availability Statement
Conflicts of Interest
References
- Lubiana, T.; Lopes, R.; Medeiros, P.; Silva, J.C.; Goncalves, A.N.A.; Maracaja-Coutinho, V.; Nakaya, H.I. Ten quick tips for harnessing the power of ChatGPT in computational biology. PLOS Comput. Biol. 2023, 19, e1011319. [Google Scholar] [CrossRef] [PubMed]
- Chung, S.; Moon, S.; Kim, J.; Kim, J.; Lim, S.; Chi, S. Comparing natural language processing (NLP) applications in construction and computer science using preferred reporting items for systematic reviews (PRISMA). Autom. Constr. 2023, 154, 105020. [Google Scholar] [CrossRef]
- Dale, R. GPT-3: What’s it good for? Nat. Lang. Eng. 2021, 27, 113–118. [Google Scholar] [CrossRef]
- Budzianowski, P.; Vulić, I. Hello, it’s GPT-2—How can I help you? towards the use of pretrained language models for task-oriented dialogue systems. arXiv 2019, arXiv:1907.05774. [Google Scholar]
- Saka, A.; Taiwo, R.; Saka, N.; Salami, B.A.; Ajayi, S.; Akande, K.; Kazemi, H. GPT models in construction industry: Opportunities, limitations, and a use case validation. Dev. Built Environ. 2023, 17, 100300. [Google Scholar] [CrossRef]
- Radford, A.; Narasimhan, K.; Salimans, T.; Sutskever, I. Improving Language Understanding by Generative Pre-Training. 2018. Available online: https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf (accessed on 1 June 2024).
- Zheng, J.; Fischer, M. BIM-GPT: A prompt-based virtual Assistant framework for BIM information retrieval. arXiv 2023, arXiv:2304.09333. [Google Scholar]
- You, H.; Ye, Y.; Zhou, T.; Zhu, Q.; Du, J. Robot-Enabled Construction Assembly with Automated Sequence Planning Based on ChatGPT: RoboGPT. Buildings 2023, 13, 1772. [Google Scholar] [CrossRef]
- Uddin, S.M.J.; Albert, A.; Ovid, A.; Alsharef, A. Leveraging ChatGPT to Aid Construction Hazard Recognition and Support Safety Education and Training. Sustainability 2023, 15, 7121. [Google Scholar] [CrossRef]
- Prieto, S.A.; Mengiste, E.T.; de Soto, B.G. Investigating the Use of ChatGPT for the Scheduling of Construction Projects. Buildings 2023, 13, 857. [Google Scholar] [CrossRef]
- Amer, F.; Jung, Y.; Golparvar-Fard, M. Transformer machine learning language model for auto-alignment of long-term and short-term plans in construction. Autom. Constr. 2021, 132, 103929. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
- Kotei, E.; Thirunavukarasu, R. A Systematic Review of Transformer-Based Pre-Trained Language Models through Self-Supervised Learning. Information 2023, 14, 187. [Google Scholar] [CrossRef]
- Levy, S.M. Construction Process Planning and Management—Chapter 5—Preparing the Bid Documents; Elsevier: Amsterdam, The Netherlands, 2010; pp. 113–135. [Google Scholar]
- Guo, K.; Zhang, L. Multi-objective optimization for improved project management: Current status and future directions. Autom. Constr. 2022, 139, 104256. [Google Scholar] [CrossRef]
- Lu, Y.; Sood, T.; Chang, R.; Liao, L. Factors impacting integrated design process of net zero energy buildings: An integrated framework. Int. J. Constr. Manag. 2020, 22, 1700–1712. [Google Scholar] [CrossRef]
- Saka, A.B.; Chan, D.W. Profound barriers to building information modelling (BIM) adoption in construction small and medium-sized enterprises (SMEs) An interpretive structural modelling approach. In Construction Innovation; Emerald Group Publishing Limited: Leeds, UK, 2020; Volume 20, pp. 261–284. [Google Scholar]
- Dannoun, Y. Application of supply chains management in construction project: A review in the compatibility between the procurements and implementation process. Int. J. Adv. Eng. Sci. Appl. 2022, 3, 18–21. [Google Scholar] [CrossRef]
- Bouabdallaoui, Y.; Lafhaj, Z.; Yim, P.; Ducoulombier, L.; Bennadji, B. Predictive Maintenance in Building Facilities: A Machine Learning-Based Approach. Sensors 2021, 21, 1044. [Google Scholar] [CrossRef] [PubMed]
- Chew, K.C. Singapore’s strategies towards sustainable construction. IES J. Part A Civ. Struct. Eng. 2010, 3, 196–202. [Google Scholar] [CrossRef]
- Ekin, S. Prompt engineering for ChatGPT: A quick guide to techniques, tips, and best practices. TechRxiv 2023. Available online: https://www.techrxiv.org/doi/full/10.36227/techrxiv.22683919.v2 (accessed on 1 June 2024).
- Mesko, B. Prompt engineering as an important emerging skill for medical professionals: Tutorial. J. Med. Internet Res. 2023, 25, e50638. [Google Scholar] [CrossRef] [PubMed]
- OpenAI. Introducing ChatGPT. 30 November 2022. Available online: https://www.openai.com/research/introducing-chatgpt (accessed on 1 June 2024).
- Heston, T.F.; Khun, C. Prompt Engineering in Medical Education. Int. Med. Educ. 2023, 2, 198–205. [Google Scholar] [CrossRef]
- Ortolan, P. Optimizing Prompt Engineering for Improved Generative AI Content. Master’s Thesis, Universidad Pontificia Comillas, Madrid, Spain, 2023. Available online: http://hdl.handle.net/11531/80629 (accessed on 1 June 2024).
- OpenAI. Prompt Engineering. 2023. Available online: https://platform.openai.com/docs/guides/prompt-engineering (accessed on 1 June 2024).
- B4UBUILD. A Sample Residential Construction Schedule. 2024. Available online: https://www.b4ubuild.com/resources (accessed on 1 June 2024).
- Dipankar, P. Multipurpose Building Construction Plan (Schedule/Task List). 2020. Available online: https://www.researchgate.net (accessed on 1 June 2024).
- NJ Department of Transportation Headquarters Complex. SOP Main Office Building and Engineering and Operations Lobby Reconfiguration. 2020. Available online: https://nj.gov (accessed on 1 June 2024).
- Seppänen, O.; Aalto, E. A case study of line-of-balance based schedule planning and control system. In Proceedings of the 13th Annual Conference of the International Group for Lean Construction, Sydney, Australia, 19–21 July 2005. [Google Scholar]
- Jarabulus, M. Application of Monte Carlo simulation and PERT/CPM techniques in planning of construction projects: A Case Study. Period. Eng. Nat. Sci. 2017, 5. [Google Scholar] [CrossRef]
- Occupational Safety and Health Administration (OSHA). Prevention Videos (v-Tools), Construction Hazards. 2024. Available online: https://www.osha.gov (accessed on 1 June 2024).
- Occupational Safety and Health Administration (OSHA). Hazard Communication. (29 C.F.R. § 1910.1200). U.S. Department of Labor. Available online: https://www.osha.gov/laws-regs/regulations/standardnumber/1910/1910.1200 (accessed on 1 June 2024).
No. | Description | Prompt |
---|---|---|
PS1 | Prompt Designed for Estimating the Duration for Each Activity and the Total Project Duration | “I’m working on a “X” construction project and need a concise project schedule, excluding the “Y” phase.
|
PS2 | Prompt Designed for Creating a Gantt Chart for the Project | “Please create a Gantt chart for this project, detailing each phase of the project, shown in the table. Ensure the following specifics are incorporated for optimal clarity and presentation:
|
PS3 | Prompt Designed for Monte Carlo Risk Analysis and Calculating a Probabilistic Duration for the Project | “Given the complexity and uncertainty inherent in construction projects, including factors such as weather conditions, supply chain disruptions, and labor availability, we aim to estimate the probabilistic duration of a construction project using Monte Carlo simulation. To accomplish this, follow these steps:
|
No. | Project Type | Duration Per Reference | Duration Per ChatGPT (Control) | Duration Per ChatGPT (Prompt) | Relative Error (Control) | Relative Error (Prompt) |
---|---|---|---|---|---|---|
1 | Residential Building | 315 | 450 | 294 | 0.43 | 0.07 |
2 | Multipurpose Building | 495 | 990 | 510 | 1.00 | 0.03 |
3 | Office Building Reconfiguration | 404 | 360 | 425 | 0.11 | 0.05 |
4 | Business Park Development | 593 | 1215 | 555 | 1.05 | 0.06 |
5 | Luxury Villa | 205 | 720 | 200 | 2.51 | 0.02 |
No. | Description | Prompt |
---|---|---|
PH1 | Prompt Designed for Identifying the Hazards, OSHA Procedures, Safety Checklist, and Creating an Image with Corrective Actions | “Given the attached image of a “Activity X” on a construction site, perform the following tasks:
|
No. | Project Type | Hazards Per Reference | Hazards Per ChatGPT (Control) | Hazards Per ChatGPT (Prompt) | Relative Error (Control) | Relative Error (Prompt) |
---|---|---|---|---|---|---|
1 | Floor Opening | 4 | 3 | 4 | 0.25 | 0.00 |
2 | Bridge Decking | 4 | 3 | 4 | 0.25 | 0.00 |
3 | Swinging Crane | 6 | 5 | 6 | 0.17 | 0.00 |
4 | Trenching | 5 | 4 | 4 | 0.20 | 0.20 |
5 | Working Safely with Ladders | 4 | 4 | 4 | 0.00 | 0.00 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Samsami, R. Optimizing the Utilization of Generative Artificial Intelligence (AI) in the AEC Industry: ChatGPT Prompt Engineering and Design. CivilEng 2024, 5, 971-1010. https://doi.org/10.3390/civileng5040049
Samsami R. Optimizing the Utilization of Generative Artificial Intelligence (AI) in the AEC Industry: ChatGPT Prompt Engineering and Design. CivilEng. 2024; 5(4):971-1010. https://doi.org/10.3390/civileng5040049
Chicago/Turabian StyleSamsami, Reihaneh. 2024. "Optimizing the Utilization of Generative Artificial Intelligence (AI) in the AEC Industry: ChatGPT Prompt Engineering and Design" CivilEng 5, no. 4: 971-1010. https://doi.org/10.3390/civileng5040049
APA StyleSamsami, R. (2024). Optimizing the Utilization of Generative Artificial Intelligence (AI) in the AEC Industry: ChatGPT Prompt Engineering and Design. CivilEng, 5(4), 971-1010. https://doi.org/10.3390/civileng5040049