My experience on my daily works... helping others ease each other

Monday, February 10, 2025

JHipster vs Vaadin vs Spring Boot - Choosing your framework

 



Java frameworks provide pre-written code and tools that simplify the development of Java applications. They handle common tasks like database interaction, web request handling, and user interface creation, allowing developers to focus on the unique logic of their applications. Frameworks promote code reusability, consistency, and best practices, ultimately speeding up development and improving application quality. They range from lightweight libraries to full-fledged platforms that dictate the structure of your application.


Which ones are suitable for you?

Okay, let’s start with a brief overview of the frameworks.

1. Spring Boot

Spring Boot is not strictly a full-stack framework in the same way as the others. It’s more accurately described as a microframework or a toolkit built on top of the larger Spring Framework. Its primary goal is to drastically simplify the setup and configuration of Spring applications. Think of Spring Boot as the express lane for Spring development.

Key Features:

  • Auto-configuration: Spring Boot automatically configures many beans (objects managed by Spring) based on dependencies in your project. This reduces the amount of manual configuration you have to do.
  • Embedded Servers: Easily embed Tomcat, Jetty, or Undertow directly into your application, making deployment simpler.
  • Spring Boot CLI: A command-line interface that further simplifies development tasks.
  • Spring Initializr: A web-based tool for quickly bootstrapping new Spring Boot projects.
  • Use Cases: Spring Boot is ideal for building REST APIs, microservices, and any backend component where you need the power and flexibility of the Spring ecosystem.

2. JHipster

JHipster takes Spring Boot and combines it with powerful code generation capabilities. It’s a full-stack application generator that helps you create modern web applications with Spring Boot on the backend and popular JavaScript frameworks (Angular, React, or Vue.js) on the front end.

Key Features:

  • Full-stack code generation: Generates both backend and frontend code, including authentication, database integration, and basic CRUD (Create, Read, Update, Delete) operations.
  • Microservices support: Can generate applications designed for a microservices architecture.
  • Blueprint architecture: Allows for customization and extension of the generated code.
  • Use Cases: JHipster is perfect for rapidly prototyping full-stack applications, especially when you want to use Spring Boot and a modern JavaScript framework. It’s less ideal for very small, simple projects where the overhead of JHipster might be too much.

3. Vaadin

Vaadin is a full-stack Java web framework focused on building rich and interactive web UIs. It offers two main approaches:

  • Vaadin Flow: Allows you to build UIs entirely in Java, without writing HTML or JavaScript directly. Vaadin handles the rendering on the client-side.
  • Hilla: A newer approach that combines a Spring Boot backend with a reactive TypeScript frontend.

Key Features:

  • Component-based architecture: UI elements are represented as reusable Java components.
  • Server-side rendering (Vaadin Flow): UI logic is executed on the server, which can simplify development for Java developers. Hilla uses client-side rendering.
  • Rich set of UI components: Vaadin provides a wide range of pre-built UI components, from simple buttons to complex grids and charts.
  • Use Cases: Vaadin is well-suited for building complex, data-driven web applications where a rich user interface is essential. It’s a good choice for Java developers who prefer a Java-centric approach to UI development.

Core Focus, Strength and Weaknesses

1. Spring Boot

  • Core Focus: This is the foundation. Spring Boot simplifies building standalone, production-ready Spring applications. It handles a lot of the boilerplate configuration, making it easier to get a Spring project up and running quickly. Think of it as the engine of your application.

Strengths:

  • Speed: Rapid development with auto-configuration and embedded servers.
  • Flexibility: Works well with various databases, cloud platforms, and other technologies.
  • Mature and Widely Used: Huge community support, extensive documentation, and a vast ecosystem of libraries.

Weaknesses:

  • Not a Full-Stack Solution: You’ll need to choose and integrate your own frontend technologies (like React, Angular, or Vue.js).
  • Learning Curve: While Spring Boot simplifies things, understanding the underlying Spring framework can still take time.

2. JHipster

  • Core Focus: A code generator that helps you quickly create full-stack web applications with Spring Boot on the backend and popular JavaScript frameworks (Angular, React, Vue.js) on the frontend.

Strengths:

  • Rapid Prototyping: Generates a complete application with authentication, database integration, and basic CRUD operations in minutes.
  • Best Practices: Uses well-established technologies and patterns.
  • Microservices Support: Can generate applications designed for a microservices architecture.

Weaknesses:

  • Complexity: Can generate a lot of code, which might be overwhelming for smaller projects or developers new to the technologies.
  • Less Control: You have less control over the initial setup compared to building everything from scratch.
  • Maintenance: Upgrading generated applications can be challenging.

3. Vaadin

  • Core Focus: A full-stack Java web framework that lets you build rich, interactive web UIs with Java. It offers two main approaches:
  • Vaadin Flow: Build UIs entirely in Java, without writing HTML or JavaScript.
  • Hilla: Combines a Spring Boot backend with a reactive TypeScript frontend.

Strengths:

  • Productivity: Vaadin Flow’s Java-centric approach can be very efficient for Java developers.
  • Type Safety: Strong type safety throughout the development process.
  • Excellent UI Components: Provides a wide range of pre-built UI components.

Weaknesses:

  • Steeper Learning Curve: Vaadin has its own way of doing things, so there’s a learning curve.
  • Less Flexibility: Compared to Spring Boot, Vaadin is more opinionated about how you structure your application.
  • Performance: Vaadin Flow’s server-side rendering can sometimes lead to performance issues in complex applications.

Share:

Wednesday, February 5, 2025

ChatGPT vs Gemini vs Copilot vs DeepSeek vs Perplexity vs Qwen - A challenge on content writeup

 

I requested ChatGPT, Gemini, Copilot, DeepSeek, Perplexity, and Qwen to revamp my paragraph below and provide relevant articles as references. 

Feedback Methods focus on incorporating user feedback and real-world experience into the validation and verification process. This involves continuous monitoring of deployed AI systems, gathering user feedback, and using this information to improve the system's performance and address any emerging ethical concerns. A/B testing is a common example, where different versions of an AI system are deployed to different user groups, and their performance and user satisfaction are compared. This iterative process allows for continuous improvement and adaptation of the AI system to real-world conditions. Another example is the use of post-market surveillance for medical AI devices, where data on the device’s performance in clinical practice is continuously collected and analysed to identify potential safety or efficacy issues.

The text above was the input for all 6 GenAI to respond to. Let us see the outcome of it.

1. ChatGPT

Feedback methods play a critical role in the validation and verification of AI systems by integrating real-world user interactions and experiences. These methods ensure AI models continuously improve, remain aligned with ethical principles, and mitigate risks related to bias, safety, and transparency.

One key approach is continuous monitoring of deployed AI systems, where real-time user feedback is collected to assess system reliability, fairness, and unintended consequences. This process enables adaptive AI governance, allowing iterative refinements that improve model robustness and address emerging ethical concerns, such as discrimination in decision-making systems.

A/B testing is a widely used validation method where different AI system versions are deployed to diverse user groups, and performance metrics, user satisfaction, and fairness outcomes are compared. For instance, AI-driven hiring platforms can use A/B testing to ensure that model updates do not introduce bias against specific demographic groups.

Another essential application is post-market surveillance for medical AI systems, where real-world clinical data is analyzed to detect safety or efficacy issues. Regulatory bodies like the FDA emphasize continuous performance evaluation for AI-powered diagnostic tools to prevent harmful medical misdiagnoses.

Additionally, human-in-the-loop (HITL) systems enhance AI validation by allowing expert oversight, enabling human evaluators to intervene when the system's decisions are ambiguous or ethically sensitive. This is particularly crucial in AI systems deployed for judicial sentencing, autonomous vehicles, and healthcare diagnostics, where incorrect predictions can have severe consequences.

The adoption of explainable AI (XAI) techniques in feedback-based verification also ensures transparency, helping regulators and users understand AI decision-making processes. These methods align with ethical AI principles by fostering accountability, fairness, and trust in AI applications.

Recent Research and Publications (2015–2024)

Below are relevant and recent academic publications that discuss feedback methods in AI validation and verification:

  1. (2024) - "Ethical AI Governance through Continuous User Feedback: A Framework for Adaptive AI Systems" – [Journal of AI Research]
  2. (2023) - "Post-Market Surveillance in AI-Powered Healthcare: Challenges and Solutions" – [IEEE Transactions on AI in Medicine]
  3. (2023) - "A/B Testing for Fairness in AI Systems: Addressing Bias in Algorithmic Decision-Making" – [ACM Conference on Fairness, Accountability, and Transparency (FAccT)]
  4. (2022) - "Human-in-the-Loop AI: Enhancing Verification and Trustworthiness in Critical Applications" – [Nature Machine Intelligence]
  5. (2021) - "The Role of Explainable AI in Ethical AI Validation and Continuous Improvement" – [AI & Society Journal]
  6. (2020) - "AI Validation Frameworks for Real-World Deployment: Integrating Feedback for Fairness and Robustness" – [MIT AI Ethics Lab Report]
  7. (2019) - "Real-Time Monitoring of AI Systems: A Review of Feedback-Based Verification Techniques" – [Journal of Automated Reasoning]
  8. (2018) - "Post-Deployment AI Monitoring: Regulatory and Ethical Considerations" – [Harvard AI Review]
  9. (2017) - "Human Oversight in AI Verification: Case Studies in Healthcare and Autonomous Systems" – [Springer AI Governance Handbook]
  10. (2015) - "Ethical Challenges in AI Validation: The Need for Continuous Feedback Loops" – [Oxford Journal of AI & Law]

Share:

Formal Methods Techniques in AI Verification

Formal methods are mathematical techniques used to rigorously verify the correctness, safety, and robustness of AI systems, particularly in high-stakes applications such as autonomous vehicles, medical diagnostics, and aerospace. 

When I did my master's degree 10 years ago, I discussed, evaluated, and qualitatively reviewed some of these techniques within the formal methods. You may search my thesis title "A source code perspective C overflow vulnerabilities exploit taxonomy based on well-defined criteria"

Below is a brief explanation of key techniques within formal methods, along with relevant examples and mathematical formulations simplified to ease the understanding.


1. Abstract Interpretation

Definition:
Abstract interpretation is a static program analysis technique that approximates program behavior by mapping infinite concrete domains (e.g., real numbers) to a finite abstract domain (e.g., intervals). This technique is used to detect errors such as buffer overflows, division by zero, and numeric instability.

Example:
Consider an AI algorithm using floating-point arithmetic. Instead of testing all possible floating-point values, abstract interpretation groups them into intervals. If a neural network's activation function outputs values in [1,1][-1,1], the abstract interpretation would ensure no computations exceed this range.

Mathematical Representation:
For a program function f(x)f(x), abstract interpretation defines an abstraction function α\alpha and a concretization function γ\gamma:

xConcreteDomain,α(f(x))f(α(x))\forall x \in \text{ConcreteDomain}, \quad \alpha(f(x)) \approx f(\alpha(x))

where α(x)\alpha(x) is the abstract representation, and γ(α(x))\gamma(\alpha(x)) maps it back to the concrete domain.


2. Semantic Static Analysis

Definition:
Semantic static analysis inspects a program's source code without executing it to determine properties such as termination, correctness, and possible runtime errors.

Example:
A neural network classifier trained for medical diagnosis should not output probabilities exceeding 11. Static analysis verifies whether the probability function adheres to:

P(yx)=1,xInputDomain\sum P(y|x) = 1, \quad \forall x \in \text{InputDomain}

where P(yx)P(y|x) represents the probability of class yy given input xx.


3. Model Checking

Definition:
Model checking systematically explores a system's state space to ensure it satisfies a given set of formal specifications, typically expressed in temporal logic.

Example:
In an autonomous driving system, a model checker can verify whether a car always stops at a red light by checking the Linear Temporal Logic (LTL) formula:

(RedLightStop)\Box (\text{RedLight} \rightarrow \Diamond \text{Stop})

which states that if a red light appears, the car must eventually stop.


4. Proof Assistants

Definition:
Proof assistants are software tools that help construct formal proofs of system correctness by allowing users to define mathematical models and verify logical statements interactively.

Example:
A self-driving car’s braking system should ensure that stopping distance does not exceed a threshold dsafed_{\text{safe}}:

dstop=v22adsafe​

where vv is the vehicle speed and aa is the braking deceleration. A proof assistant like Coq or Isabelle verifies this inequality.


5. Deductive Verification

Definition:
Deductive verification formally proves that a system satisfies its specification using logical reasoning. This involves deriving proof obligations that demonstrate correctness.

Example:
In an AI-based medical diagnosis system, a deductive verification approach ensures that if input xx is classified as disease-positive, then the treatment T(x)T(x) should always be prescribed:

x,Diagnosis(x)=PositiveT(x)\forall x, \quad \text{Diagnosis}(x) = \text{Positive} \Rightarrow T(x) \neq \emptyset

6. Model-Based Testing

Definition:
Model-based testing (MBT) derives test cases from formal models of a system’s expected behavior, ensuring comprehensive test coverage.

Example:
For an AI-powered ATM system, a state machine model might specify:

  1. Insert Card → PIN Entry → Transaction → Dispense Cash
  2. Insert Card → PIN Entry → Incorrect PIN → Card Ejection

Each path is converted into test cases, ensuring all scenarios are tested.


7. Design by Refinement

Definition:
Design by refinement incrementally develops a system by starting with an abstract specification and progressively introducing more details while maintaining correctness.

Example:
For a neural network-based control system, an initial specification may state:

Output[0,1]

As the design is refined, more constraints are added to ensure robustness against adversarial attacks.


Conclusion

These formal methods provide robust frameworks for ensuring AI systems behave as expected in critical applications. While abstract interpretation and static analysis focus on pre-runtime validation, model checking, and proof assistants help verify properties at runtime. Deductive verification ensures correctness by logical reasoning, while model-based testing and refinement guide structured system development.


Share:

Saturday, January 18, 2025

Ensuring Robustness in AI Systems: A Multi-Phase Validation Approach

Abstract

Artificial Intelligence (AI) systems are increasingly integral across various sectors, necessitating rigorous validation to ensure they function as intended with minimal errors. This article delineates a comprehensive, multi-phase validation framework designed to enhance the reliability and accuracy of AI systems. Organizations can mitigate risks associated with AI deployment by implementing structured validation processes, thereby fostering trust and efficacy in AI applications.
Introduction


The proliferation of AI technologies has transformed industries by automating complex tasks and providing data-driven insights. However, the deployment of AI systems without thorough validation can lead to significant errors, undermining their intended purposes and potentially causing adverse outcomes. Therefore, establishing a robust validation framework is imperative to ensure AI systems operate with high accuracy and reliability.


Phases of AI System Validation

  1. Data Validation
  2. Model Training and Validation
  3. Pre-Deployment Validation
  4. Post-Deployment Monitoring and Validation

Reducing Error Rates in AI Systems

Achieving low error rates in AI systems is paramount, especially in critical applications. Studies indicate that acceptable error rates for AI should be significantly lower than those for human performance to foster trust and reliability. For instance, in medical diagnostics, a survey revealed that the acceptable error rate for AI was 6.8%, compared to 11.3% for human practitioners.

To minimize errors, organizations should implement high-quality data collection, robust validation processes, and advanced algorithms tailored to specific use cases.

Conclusion

Implementing a multi-phase validation framework is essential to ensure AI systems serve their intended purposes with minimal errors. By meticulously validating data, rigorously training and testing models, and continuously monitoring performance post-deployment, organizations can enhance the reliability and effectiveness of AI applications. Such structured validation not only mitigates risks but also builds stakeholder confidence in AI technologies.

References

  1. The 5 Stages of Machine Learning Validation (https://towardsdatascience.com/the-5-stages-of-machine-learning-validation-162193f8e5db)
  2. Goodbye Noise, Hello Signal: Data Validation Methods That Work (https://www.pecan.ai/blog/data-validation-methods-that-work/?utm_source=chatgpt.com)
  3. Training, validation, and test phases in AI — explained in a way you'll never forget (https://towardsdatascience.com/training-validation-and-test-phases-in-ai-explained-in-a-way-youll-never-forget-744be50154e8)
  4. Verification and Validation of Systems in Which AI is a Key Element (https://sebokwiki.org/wiki/Verification_and_Validation_of_Systems_in_Which_AI_is_a_Key_Element?utm_source=chatgpt.com)
  5. Should artificial intelligence have lower acceptable error rates than humans? (https://pmc.ncbi.nlm.nih.gov/articles/PMC10301708/?utm_source=chatgpt.com)
  6. Understanding Error Rate: A Crucial Guide for Professionals (https://helio.app/ux-research/design-metrics/understanding-error-rate-a-crucial-guide-for-professionals/?utm_source=chatgpt.com)

Share:

Friday, January 17, 2025

AI Audit and the Importance of Having Competent Auditor

"However, efforts to meet AI audit service demands, and by extension, any use of audits by public regulators, face three important challenges. First, it remains unclear what the audit object(s) will be – the exact thing that gets audited. Second, despite efforts to build training and credentialing for AI auditors, a sufficient supply of capable AI auditors is lagging. And third, unless markets have clear regulations around auditing, AI audits could suffer from a race to the bottom in audit quality." -
https://www.techpolicy.press/ai-audit-objects-credentialing-and-the-racetothebottom-three-ai-auditing-challenges-and-a-path-forward/?utm_source=chatgpt.com




As AI systems become increasingly prevalent, the need for rigorous auditing to ensure their safety and efficacy has never been greater. An article on TechPolicy Press highlights the critical role of AI auditing in ensuring the safety and effectiveness of AI systems. While I agree that increasing the number of AI auditors is essential, I want to emphasize the equally critical need to ensure their competence and experience.

We can't afford to take a lax approach where anyone who passes a certification exam is deemed qualified to audit AI systems. In-depth knowledge and practical experience are paramount. This concern is particularly relevant when considering the practices of some companies that prioritize hiring "bright young talent" with strong communication skills but lack real-world understanding of AI systems to manage their operational cost. These auditors often provide vague or irrelevant recommendations, or misunderstand the situation entirely, leading to wasted time and potentially jeopardizing safety.

Just like any complex system, AI requires careful auditing by qualified professionals. Competent and experienced auditors can identify and mitigate risks, ultimately safeguarding AI systems and the people they interact with.


The Importance of Auditor Expertise

AI systems are complex and can have unintended consequences. Auditors need a deep understanding of how these systems work, including their algorithms, data sources, and potential biases. They also need to be able to assess the risks associated with these systems and recommend appropriate mitigation strategies.

Unfortunately, the current landscape of AI auditing is not without its challenges. There is a lack of standardized training and certification programs, which can lead to inconsistencies in the quality of audits. Additionally, there is a risk of a "race to the bottom" in audit quality, as companies may prioritize cost over quality when selecting auditors.

A Path Forward

To address these challenges, we need to take several steps. First, we need to develop robust training and certification programs for AI auditors. These programs should be rigorous and cover a wide range of topics, including AI fundamentals, risk assessment, and audit methodologies.

Second, we need to establish clear standards for AI audits. These standards should be developed by experts in the field and should be regularly updated to reflect the latest developments in AI.

Third, we need to create a culture of quality in AI auditing. This means holding companies accountable for the quality of their audits and rewarding auditors for their expertise and experience.

Conclusion

AI auditing is critical to ensuring the safe and responsible development of AI systems. By investing in the training and development of competent AI auditors, we can help ensure that these systems are used for good and that their potential benefits are realized.

Let's foster a culture of rigorous AI auditing with a strong emphasis on auditor expertise. Share your thoughts in the comments!

#AI #auditing #artificialintelligence #safety #technology #riskmanagement

Share:

Tuesday, January 7, 2025

AI Writing Tools for Beginners: A Review of Sudowrite, Rytr, and NovelAI


AI is revolutionizing how we write, and AI writing tools are becoming increasingly popular among writers of all levels. If you're a beginner writer looking to improve your writing skills or simply looking for a way to overcome writer's block, AI writing tools can be a valuable asset. In this article, we'll review three of the most popular AI writing tools on the market: Sudowrite, Rytr, and NovelAI. We'll also discuss which tool is the best for beginners.

Comparison

Sudowrite

Pros

      • Excellent for character and plot development 
      • Focus on long-form writing 
      • User-friendly interface

Cons

Rytr

Pros

      • Versatile tool
      • Affordable options
      • Easy to use

Cons

NovelAI 

Pros

      • Creative and imaginative output
      • Strong community 
      • Image generation

Cons

Recommendation for Beginners

Rytr is a good starting point for beginners who want to explore AI writing tools without a significant upfront investment. It is versatile and affordable, and its simple interface makes it easy to use. However, use it wisely, as the free edition has a limitation on the number of words it can generate.

Key Considerations

  1. Budget: Determine how much you're willing to spend on a subscription.
  2. Writing style: Consider the genre and style of your novel. Some tools may be better suited for certain genres than others.
  3. Learning curve: Choose a tool that you find intuitive and easy to use.
  4. Trial periods: Take advantage of free trials or limited-time offers to test different tools before committing to a subscription.

Conclusion

AI writing tools can be a valuable asset for beginner writers. However, it is important to remember that these tools do not replace your creativity and writing skills. Use them to enhance your writing process, overcome writer's block, and explore new ideas.

Additional Tips

  1. Use a combination of different AI writing tools to get the best results.
  2. You can just experiment with different prompts to see what works best for you.
  3. Don't be afraid to edit and revise the output from AI writing tools.
  4. Use AI writing tools to help you overcome writer's block, but don't rely on them to do all the work for you.
p/s: The content is originated via collaboration with Gemini

Share:

Saturday, December 14, 2024

Troubleshooting JEnv problem

It has been a while since I managed my development environment and as I wish to get my hands dirty again, I started to cleanup my java environment, and it turn out a mess or simply saying a mistake I did.

If your Jenv suddenly fail to work and your java environment did not change as you intended, follow the link below

1. https://github.com/jenv/jenv


Do follow steps shown and don't skip.

2. https://www.jenv.be/


Finally, I manage to get the right Java version that I need for the development.

openjdk version "23.0.1" 2024-10-15

OpenJDK Runtime Environment Homebrew (build 23.0.1)

OpenJDK 64-Bit Server VM Homebrew (build 23.0.1, mixed mode, sharing)



Share:

Monday, November 25, 2024

Senario Untuk Menerangkan Mengenai AI Kepada Orang Kampung

Ketika ini terdapat jurang pengetahuan terutamanya dalam bidang AI antara mereka yang di bandar dan mereka yang berada di kampung-kampung yang jauh dari bandar dan pekan. Jadi, bagaimana kita boleh memberi penerangan kepada mereka ini mengenai teknologi terkini seperti AI.

Dengan bantuan AI, maka, terhasil dialog yang berkenaan yang mungkin kita boleh jadikan sebagai bahan media dalam memberikan penerangan, bukan sahaja kepada mereka yang berada di kampung, malah pada mereka yang kurang pemahaman berkaitan AI ini.


Senario 1: Perbualan di Kedai Kopi

(Watak: Pak Abu, Pak Mat, dan Mat Din)

Pak Abu: Eh, korang dengar tak pasal benda AI yang budak-budak bandar selalu sembang tu? Aku dengar macam robot pintar pulak.

Pak Mat: Hah! AI tu macam otak manusia la, Abu. Tapi dia duduk dalam mesin. Kau tahu tak, kalau kau cakap "Hai Google" kat telefon kau, dia boleh jawab balik? Itu pun AI.

Mat Din: Kalau aku cakap, “Google, buatkan aku kopi,” dia buat tak?

Pak Mat: Kopi tak boleh, Din. Kau ingat AI tu pembantu rumah ke? Tapi kalau kau nak resepi buat kopi tarik power, dia boleh carikan kau langkah-langkah. Canggih, kan?

Mat Din: Hmmm, itu AI ke? Macam aku minta bini aku bancuh kopi, dia tanya, "Nak manis ke, kurang gula?" Itu kira AI jugak ke?

Pak Abu: Eh, taklah Din. Itu isteri AI - "Awek Intelligent"! (semua ketawa)

Pak Mat: Hahaha, tapi serius, AI ni boleh jadi macam manusia. Contohnya, kalau kita ni pekebun sawit, AI boleh tengok mana pokok yang tak sihat guna dron. Tak payah kita penat pusing kebun. Dia terus bagi tahu pokok mana kena tebang.

Mat Din: Oh, kalau macam tu, aku kena start guna AI jugak lah. Letih aku pusing kebun hari-hari! Tapi kalau AI tak betul bagitahu, aku halau dia masuk parit!


Senario 2: Perbualan di Tepi Sawah

(Watak: Pak Long, Pak Ngah, dan Amir)

Pak Long: Aku dengar sekarang ni petani kat Jepun pakai AI untuk tanam padi. Betul ke, Pak Ngah?

Pak Ngah: Betul, Long. AI ni pandai. Dia boleh tengok cuaca, tanah, dan air, lepas tu dia bagi tahu bila masa sesuai tanam dan tuai. Kita ni pakai naluri je, sebab tu kadang-kadang hasil tak menjadi.

Amir: Wah, canggihnya! Jadi AI tu macam bomoh sawah lah, ye?

Pak Ngah: Bomoh moden lah, Amir. Dia tak pakai tangkal, tapi pakai sensor dan komputer.

Pak Long: Kalau AI ni pandai sangat, nanti kerja petani tak ada gunanya lah?

Pak Ngah: Eh, taklah Long. AI ni tolong buat kerja berat je. Macam kita dulu guna kerbau, sekarang pakai traktor. AI ni traktor versi pintar. Tapi kena ada orang bijak jugak jaga dia, kalau tak dia "lumpuh."

Amir: Kalau macam tu, lepas ni aku nak pasang AI kat bendang aku. Kalau AI tu pandai sangat, suruh dia halau burung pipit sekali. Asyik makan padi aku je!


Senario 3: Perbualan di Perkampungan Nelayan

(Watak: Pak Ali, Pak Jali, dan Din Tekong)

Pak Ali: Korang tahu tak, sekarang ada bot yang boleh gerak sendiri, pakai AI. Dia boleh cari ikan kat laut tanpa nelayan ikut pun.

Pak Jali: Lah, habislah kita kalau macam tu. Kalau AI pandai sangat, siapa nak makan nasi hasil titik peluh kita ni?

Din Tekong: Relaxlah, Jali. AI ni cuma tolong kita. Contohnya, kalau kau pasang sonar AI, dia boleh tunjuk kat mana ikan berkumpul. Tak payah kita main tebak je baling pukat.

Pak Ali: Tapi Din, kalau AI salah tengok, bawak kita pergi cari ikan duyung macam mana?

Din Tekong: Itu kau kena guna AI yang betul, Ali. Jangan main beli dari internet murah-murah. Nanti ikan tak dapat, bot kau pulak yang tenggelam!

Pak Jali: Hahaha, tapi aku takutlah kalau AI pandai sangat. Nanti dia buat keputusan sendiri. Silap-silap, dia bawak bot pergi Filipina terus!

Din Tekong: Hahaha, itu AI lari rumah namanya. Jangan risau. AI tu tetap kena ada otak manusia kawal. Dia takkan berfungsi kalau kita tak suruh.


Senario 4: Perbualan di Dusun Buah

(Watak: Wak Seman, Pak Teh, dan Amin)

Wak Seman: Tahu tak, sekarang ada AI yang boleh petik buah sendiri? Robot dia siap tahu mana buah durian yang matang, mana yang muda. Tak payah kita tunggu bawah pokok kena hempap.

Pak Teh: Seriuslah, Wak? Kalau ada benda tu, aku nak beli satu. Tak payah dah aku sakit pinggang panjat pokok manggis.

Amin: Eh, Wak. Kalau macam tu, robot tu tahu ke beza durian kampung dengan durian Musang King?

Wak Seman: Tahu, Amin. Dia siap boleh scan bau durian kau tu. Kalau Musang King, dia ambil. Kalau durian kampung, dia letak balik. Canggih kan?

Pak Teh: Tapi Wak, kalau AI pandai sangat, nanti dia tak nak kerja dengan kita, dia buat kebun sendiri macam mana?

Wak Seman: Hahaha, jangan takutlah Teh. AI ni tak boleh makan durian, tak ada tekak. Kau tak payah risau dia buka gerai jual durian.

Amin: Tapi Wak, kalau AI dah pandai, nanti kita malas. Semua benda serah kat robot. Jangan-jangan nanti AI tu robot jadi tuan kita!

Wak Seman: Itulah pasal kena kawal. AI ni ibarat parang tajam. Kalau kau pandai guna, kerja senang. Kalau tak, kau sendiri kena potong. Jadi, gunalah dengan bijak.

Nota: Gambar di jana oleh Microsoft Designer manakala dialog di jana oleh ChatGPT.

_______________________________________________________________________________

Kesimpulan

Dari perbualan di kedai kopi, sawah, perkampungan nelayan, dan kebun buah, kita dapat melihat bahawa AI (Kecerdasan Buatan) sebenarnya adalah alat yang dicipta untuk memudahkan kehidupan kita. Sama seperti penggunaan teknologi lain seperti traktor, sonar, dan mesin automasi, AI bertujuan untuk membantu manusia bekerja dengan lebih cekap, cepat, dan berkesan. Namun, ia tidak bermakna AI boleh menggantikan manusia sepenuhnya. Sebaliknya, AI masih memerlukan pemantauan, kawalan, dan keputusan manusia untuk berfungsi dengan baik.

Walau bagaimanapun, semua kelebihan ini datang dengan cabaran. AI bukan sahaja pandai melakukan tugas teknikal, tetapi ia juga semakin mampu membuat keputusan, memberi cadangan, malah mempengaruhi hasil sesuatu situasi. Justeru, ini membawa kita kepada persoalan besar: bagaimana kita memastikan AI selamat, beretika, dan tidak mendatangkan bahaya kepada manusia?

Share:

About Me

Somewhere, Selangor, Malaysia
An IT by profession, a beginner in photography

Labels

Blog Archive

Blogger templates