AI Data Scientist, Transforming Internal Audit Analytics
Author: CA Pradeep Gujaran
Author: CA Pradeep Gujaran
Summary of use case presentation:
In this presentation, I demonstrated how artificial intelligence (AI) can be leveraged to enhance and streamline the data analytics process for internal auditors. By integrating multiple database systems (SQL Server and MySQL), pre-built audit scripts, and natural language AI for SQL generation into a unified platform, many aspects of the internal audit process can be automated and made more efficient.
I showcased three key components of the AI Data Scientist solution:
AI Data Scientist Flow Chart
Table of Contents
2. Tools used in the presentation.
SQL Server & MySQL Connectors.
For CACM Scripts (Pre-built Audit Tests)
For SQL AI Agent (Natural Language to SQL)
For AMS AI Agent (MySQL Analytics)
4. Importance and Impact of this presentation.
5. Long-term benefits of AI in internal audit.
Introduction
Internal audit plays a crucial role in organizational governance, risk management, and compliance. Effective data analytics is essential for internal auditors to identify anomalies, detect fraud, and provide valuable insights. However, traditional audit approaches often rely on limited sample-based testing, manual data analysis processes, and face technical barriers, especially for auditors without SQL knowledge. These traditional methods are time-consuming, provide limited population coverage, and may miss complex fraud patterns.
The AI Data Scientist use case addresses these challenges by providing internal auditors with a robust solution to leverage advanced data analytics without technical expertise. The solution integrates seamlessly with existing database systems and employs AI to automate complex queries, analyze entire data populations, and generate actionable insights.
A Python-based UI framework (https://gradio.app/) used to create the responsive web application interface.
AI inference API (https://groq.com/) with Gemma2-9b-it model for generating SQL code from natural language.
Database connectivity components for accessing multiple data sources.
Steps to use the Tool
1.Select the "CACM Scripts" mode from the interface
2.Initialize the database connection by clicking "Initialize Database Connection."
;
3.Choose an audit area from the dropdown (Human Resources, Finance & Procurement, IT, or Student Services).
4.Select a specific test from the available tests for that area (e.g., "Employees Without Annual Leave" or "Split Sick Leaves").
5.click "Run Analysis" to execute the pre-built SQL script against the database
6.Review the results in the data table and download as Excel if needed
Finding: instantly spotted cases where purchase orders were split to override DOA
Importance and Impact of this presentation
Data analytics is a critical component of effective internal audit, but traditional approaches often fall short due to sampling limitations, technical barriers, and inefficient processes. The AI Data Scientist use case transforms internal audit by automating key aspects of data analysis and providing intelligent support tools. This increases efficiency, reduces errors, and allows auditors to focus their expertise on higher-level analysis and decision-making.
The use case enables internal auditors to:
The real-world impact was demonstrated by identifying splitting of purchase orders, average lead time for production over TAT and cases were production surpassed due dates.
Long-term benefits of AI in internal audit
Beyond immediate efficiency gains, AI can drive long-term improvements in the internal audit process:
As more organizations adopt AI-powered tools for internal audit, the aggregate data generated can be analyzed to identify industry trends, emerging risks, and opportunities for enhancing professional standards.
Summary
The use case presentation demonstrates the immense potential of AI in transforming internal audit data analytics. By leveraging AI, database connectivity, and intuitive interfaces, the AI Data Scientist use case streamlines key aspects of the audit workflow, reducing manual effort, enhancing coverage, and enabling auditors to focus on higher-value activities.
The solution provides:
As AI technologies continue to evolve, there is scope for further integration with other audit tools, data analytics platforms, and regulatory reporting systems, creating a more seamless and intelligent internal audit ecosystem. Organizations that proactively embrace AI-powered solutions for internal audit are likely to gain a competitive edge, improve risk management, and strengthen governance.
The future of internal audit lies in the synergy of human expertise and artificial intelligence, working together to provide assurance, insights, and value to organizations.