AI vs. Automation: What to Choose and When?

AI vs. automation is becoming an increasingly important question for manufacturing companies. As factories collect more data, connect more machines and digitalize more workflows, managers often face the same dilemma: should we automate the process with traditional rules, or do we need artificial intelligence?

The answer is usually simpler than the technology itself.

Traditional automation says: “If X happens, do Y.” AI says: “Based on the available data, estimate, predict or interpret what is likely to happen next.”

Both approaches are valuable. They simply solve different classes of problems.

That distinction matters because the most expensive mistake is often not failing to implement AI. It is using AI where a simple rule-based system would be cheaper, safer and easier to maintain — or relying on rigid automation where the real problem requires prediction, interpretation or pattern recognition.

What Is Traditional Automation?

Traditional automation is designed for processes that are predictable and can be described using explicit rules. The system does not need to “understand” the situation. It only needs to follow logic defined in advance.

The basic model is:

IF X → THEN Y

This principle can be implemented in many different technologies: industrial control systems, PLC logic, workflow engines, scripts, ERP integrations, robotic process automation or standard business software.

For example:

None of these situations necessarily requires AI.

If the condition can be clearly defined and the correct reaction is known in advance, classical automation is usually the better option. It is often cheaper to implement, easier to test and more predictable in production environments.

How Is AI Different from Automation?

Artificial intelligence becomes useful when the answer cannot be easily expressed as a fixed set of rules.

Instead of programming every possible condition manually, we build a model that learns patterns from data and uses those patterns to generate an output.

A simplified AI workflow looks like this:

DATA → MODEL → PREDICTION / CLASSIFICATION / RECOMMENDATION

Examples include:

One distinction is important: an AI model does not “know” what should happen in the human sense. It generates an output based on statistical patterns learned from data.

This means AI systems are usually probabilistic rather than perfectly deterministic. A model may estimate that a machine has an 82% probability of failure, classify an image as defective with a certain confidence score, or predict demand within an expected error range.

That uncertainty is not necessarily a weakness. In many business problems, uncertainty already exists. AI simply helps quantify it.

AI vs. Automation: The Key Differences

Criterion Traditional Automation AI
Logic Explicit rules Model learned from data
Typical structure If X, then Y Based on data, predict X
Data requirements Can be relatively simple Usually critical to performance
Process predictability Best for highly predictable processes Useful when outcomes depend on complex patterns
Handling exceptions Requires additional rules Can recognize patterns across many variables
Learning No model training Model is trained and can later be updated or retrained
Typical implementation cost Usually lower Often higher
Maintenance Rules, integrations and process logic Data, model performance, infrastructure and integrations
Best use cases Repeatable, rule-based processes Prediction, classification and ambiguous problems

This comparison shows why discussing AI vs. automation as if one technology will replace the other is misleading.

Automation is not an outdated version of AI. It is a different tool.

When Should You Choose Traditional Automation?

Automation is usually the right choice when the process is stable, repeatable and easy to describe.

Choose traditional automation when:

A simple manufacturing example

Imagine that a machine completes a production cycle.

The system needs to perform four actions:

If cycle = completed → save result → send notification → start the next stage.

This is a perfect automation problem.

Adding machine learning would create unnecessary complexity. You would need data pipelines, model validation, monitoring and possibly retraining — without solving a problem that was difficult in the first place.

In this case, AI would not make the system smarter. It would simply make it more expensive.

When Does AI Make More Sense?

A useful question is:

Does the correct output depend on patterns that we cannot describe reliably with a small set of rules?

If the answer is yes, AI may be the appropriate solution.

Example: predictive maintenance

Consider equipment monitoring in a production plant.

A traditional automation rule might look like this:

If temperature > 90°C → trigger an alarm.

This is useful. However, it only reacts after a predefined threshold has been crossed.

An AI-based predictive maintenance system can analyze temperature together with vibration, load, operating time, historical failures, pressure and other variables. The model can then estimate the probability of failure during the next several hours or days.

The difference is fundamental.

Automation reacts to a condition we already understand. AI can detect combinations of signals that may be difficult for a human engineer to express as a simple rule.

Example: quality control

Traditional automation works well when product quality can be checked against a measurable threshold.

If dimension > allowed tolerance → reject the product.

But imagine a surface defect that appears in many shapes, sizes and orientations. Writing thousands of rules for every possible visual variation may be impractical.

A computer vision model can instead learn patterns from images of correct and defective products and classify new cases automatically.

Example: demand forecasting

A rule-based inventory system can say:

If stock < minimum level → order 500 units.

An AI forecasting system can go further. It can analyze historical sales, seasonality, promotions, customer behavior and other variables to estimate future demand.

The first system executes a policy. The second helps determine what the policy should respond to.

The Better Question Is Often AI + Automation

The most useful industrial systems frequently combine both approaches.

Instead of asking only AI vs. automation, companies should also ask how AI and automation can work together.

Consider predictive maintenance again.

The AI model produces the following output:

Probability of failure within the next three days: 82%.

Then traditional automation takes over:

If failure probability > 80% → create a maintenance ticket in the CMMS → assign the appropriate priority → notify the technician.

This architecture separates two responsibilities.

AI interprets the data. Automation executes the action.

That pattern can be applied across many industrial use cases:

This is often where the largest business value appears. AI provides a better signal, while automation turns that signal into a repeatable operational process.

Five Questions to Ask Before Implementing AI

Before starting an AI project, companies should evaluate the problem rather than the popularity of the technology.

1. Can the problem be solved with a simple rule?

If a small number of deterministic rules can solve the problem reliably, traditional automation will usually be faster and cheaper.

2. Do we have enough relevant data?

AI performance depends heavily on data quality and relevance. A company may collect large amounts of information and still lack the specific data needed to train a useful model.

3. Is the process already predictable?

If the correct outcome is known in advance, machine learning may add little value. AI is most useful where prediction, classification or interpretation is genuinely required.

4. What is the cost of an error?

AI models are not perfectly accurate. Therefore, companies must define acceptable error rates and determine what happens when the model is uncertain or wrong.

For high-risk processes, the right architecture may include confidence thresholds, additional business rules or human approval.

5. Will AI generate measurable ROI?

“We want to use AI” is not a business case.

A better question is: what measurable problem will the system solve?

Will it reduce downtime? Improve yield? Lower scrap? Save engineering hours? Increase forecast accuracy? Reduce manual document processing?

The value of an AI project should be connected to an operational KPI from the beginning.

A Simple Decision Framework for AI vs. Automation

You can reduce the entire decision to three questions.

1. Is the process repeatable and can it be described with clear rules?
Yes → start with traditional automation.

2. Does the correct outcome depend on complex patterns in data?
Yes → consider AI.

3. Does the AI output need to trigger a predictable operational action?
Yes → combine AI with automation.

This framework is deliberately simple. Real industrial systems can be more complex, but the logic remains useful because it forces the project team to define the problem before selecting the technology.

AI Does Not Replace Good Process Design

The current excitement around artificial intelligence can create the impression that every digital transformation project should contain an AI component.

That is rarely true.

A poorly designed process does not automatically become better because a model has been added to it. In many cases, the right first step is process standardization, data integration or basic automation.

Once the process is stable and the relevant data is available, AI can be introduced where it creates a measurable advantage.

This approach is especially important in manufacturing. Production environments require reliability, integration with existing systems and clear responsibility for operational decisions. Technology should reduce uncertainty and complexity, not introduce them without a business reason.

Conclusion: Choose the Tool That Matches the Problem

The debate around AI vs. automation should not be framed as a competition between a modern technology and an older one.

Traditional automation is the right tool when the process is predictable and the rules are known. AI becomes valuable when the problem requires interpreting data, recognizing complex patterns or predicting future outcomes.

And in many of the strongest real-world solutions, the two technologies work together.

AI estimates what is likely to happen. Automation makes sure the appropriate action actually happens.

For manufacturing companies, this distinction can prevent unnecessary investment and help focus AI projects on areas where advanced models can produce real operational value.

At COGITA, we believe that advanced AI should not be implemented for its own sake. It should solve concrete problems, integrate with real processes and create measurable value for organizations and the people who operate them.

AI vs. automation is becoming an increasingly important question for manufacturing companies. As artificial intelligence becomes more accessible, many organizations are asking whether their processes should be automated in the traditional way, enhanced with AI, or redesigned around machine learning models.

The distinction is simpler than it may seem:

Automation says: “If X happens, do Y.”
AI says: “Based on the available data, predict, classify, or interpret what should happen next.”

This difference matters because not every digitalization project requires artificial intelligence. In many cases, traditional automation is still the most effective, reliable, and cost-efficient solution.

The most expensive mistake is often not failing to implement AI. It is using the wrong technology for the problem.

What Is Traditional Automation?

Traditional automation works best when a process is predictable and can be described with clear rules. The system does not need to interpret the situation. It simply executes predefined instructions.

The logic can usually be reduced to:

IF X → THEN Y

Typical examples include:

The key characteristic is predictability. We already know what should happen in a specific situation.

There is nothing outdated about this approach. In manufacturing, a huge number of processes depend on deterministic logic. PLC systems, alarms, workflows, ERP integrations, robotic processes, and production control systems often operate successfully because the rules are known in advance.

If those rules can be described clearly, introducing AI may only make the process more expensive and difficult to maintain.

How Is AI Different from Automation?

AI becomes useful when the problem cannot easily be expressed as a complete set of rules.

Instead of telling the system exactly what to do in every possible situation, we provide data and use a model to identify patterns. The model can then generate a prediction, classification, recommendation, or probability.

A simplified AI workflow looks like this:

DATA → MODEL → PREDICTION / CLASSIFICATION / RECOMMENDATION

Typical AI applications include:

However, one important point is often misunderstood: AI does not “know” what to do.

An AI model generates an output based on patterns found in data and on the way the system was trained or configured. Its output is often probabilistic rather than fully deterministic.

That is why AI systems require data quality control, testing, monitoring, performance metrics, and a strategy for handling errors.

AI vs. Automation: Key Differences

Criterion Traditional Automation AI
Logic Predefined rules Model learned from data
Typical decision If X, do Y Based on data, predict or classify X
Data Can be simple Usually critical
Process predictability High Can handle uncertainty
Handling exceptions Requires additional rules Can recognize complex patterns
Learning No Possible through training or retraining
Implementation cost Usually lower Often higher
Maintenance Rules and workflows Data, model, infrastructure, monitoring
Best use case Repeatable processes Predictive or ambiguous problems

The central question in the AI vs. automation discussion is therefore not which technology is more advanced.

The right question is:

Which technology matches the structure of the problem?

When Should You Choose Automation?

Traditional automation is usually the better option when:

  1. The process is repetitive.
  2. The rules can be defined clearly.
  3. The expected outcome is predictable.
  4. There are relatively few exceptions.
  5. No forecasting or complex interpretation is required.

Example: A Production Cycle

Imagine that a machine completes a production cycle.

The required logic is:

If cycle = completed → save the result → send information → start the next stage.

This is a classic automation problem.

There is no hidden pattern to discover. No prediction is required. The system already knows exactly what should happen.

Using AI in this case would be unnecessary complexity. It would introduce additional development, testing, monitoring, and maintenance without creating meaningful business value.

Automation is not the simpler substitute here. It is the correct engineering solution.

When Does AI Make More Sense?

A useful question to ask is:

Does the result depend on patterns that we cannot easily describe using explicit rules?

If the answer is yes, AI may be appropriate.

Predictive Maintenance: Automation vs. AI

Predictive maintenance is one of the clearest examples.

A traditional automated system might use a threshold:

If temperature > 90°C → trigger an alarm.

This is effective if temperature above 90°C is already known to be a dangerous condition.

But AI can address a different problem:

Based on temperature, vibration, machine load, operating history, previous failures, and other parameters, predict the probability of failure within the next few days.

The difference is significant.

Automation reacts to a known condition.

AI tries to identify a complex pattern that may indicate future failure before a simple threshold is reached.

This does not make the automation obsolete. In fact, the two technologies often work best together.

Quality Control: Rules or Computer Vision?

The same distinction applies to quality control.

If a product should be rejected whenever a measurable dimension exceeds a fixed tolerance, traditional automation is sufficient:

If dimension > X → reject product.

However, some defects cannot easily be described with numerical rules.

A scratch, deformation, incorrect assembly, discoloration, unusual texture, or visual anomaly may be obvious to an experienced quality inspector but difficult to represent as a fixed rule.

In this case, computer vision can analyze images and classify products based on patterns learned from data.

The AI system can identify the defect, while the automation layer decides what to do next.

For example:

AI detects a likely defect → automation removes the product from the line → the quality system records the event.

Demand Forecasting: When Rules Are Not Enough

Inventory management provides another practical example of AI vs. automation.

A traditional approach might use a rule such as:

If inventory < X → order Y units.

This can work very well when demand is stable.

But demand may depend on many factors:

A fixed threshold may not capture those relationships.

An AI model can use historical data to forecast future demand and estimate how much stock may be needed next week or next month.

Automation can then use the forecast to trigger replenishment workflows.

The Better Model Is Often AI + Automation

For many companies, the most useful answer is not AI vs. automation.

It is AI + automation.

AI can interpret or predict.

Automation can execute.

For example:

AI: The model estimates an 82% probability that a machine will fail within five days.

Automation: If failure probability > 80%, create a maintenance ticket in the CMMS system and notify the responsible technician.

This architecture uses each technology for what it does best.

AI handles uncertainty, prediction, and complex patterns.

Automation handles repeatable execution, integration, workflows, notifications, and business rules.

In practice, an AI model is rarely useful as a standalone component. Its prediction usually has to be connected to a real business process.

Data needs to be collected. The model needs to generate a result. The result must reach the right system. A threshold may have to be applied. Someone may need to approve the decision. The action must be executed and recorded.

This is why many successful industrial AI systems are hybrid systems.

AI vs. Automation in Document Processing

Document workflows illustrate the same principle.

Traditional automation can perform tasks such as:

If an email contains a PDF attachment → save it in a folder.

But what if the system needs to understand the document?

It may need to:

This is where AI can become valuable.

A complete process might look like this:

Receive document → AI classifies it and extracts information → automation enters the data into ERP → uncertain cases go to human review.

Again, AI and automation complement each other.

5 Questions to Ask Before Implementing AI

1. Can the Problem Be Solved with a Simple Rule?

If yes, traditional automation is probably the better starting point.

A deterministic solution is usually easier to implement, test, explain, and maintain.

2. Do You Have Enough Relevant Data?

AI needs useful data.

Having large amounts of data does not automatically mean that an AI project will work. The data must contain information related to the outcome you want to predict.

Before building a model, check whether the necessary signals actually exist.

3. Is the Process Outcome Predictable?

If every valid input should always produce the same output, traditional software may be sufficient.

AI becomes more interesting when the answer depends on probability, interpretation, classification, or complex relationships between many variables.

4. Is the Cost of an Error Acceptable?

AI systems do not operate with perfect accuracy.

A model can generate false positives, false negatives, or uncertain results.

Therefore, the key question is not only:

How accurate is the model?

It is also:

What happens when the model is wrong?

For high-risk decisions, companies may need human approval, additional safeguards, or a hybrid system in which AI recommends an action but deterministic rules determine what is allowed.

5. Will AI Deliver Measurable ROI?

AI should not be implemented simply because an organization wants to “have AI.”

It should solve a concrete business problem.

The expected value may come from:

The business problem should always come before the model.

AI vs. Automation: A Simple Decision Framework

The decision can be reduced to three questions.

Can the process be described with stable and unambiguous rules?
Yes → choose automation.

Does the result depend on complex patterns in data, interpretation, or prediction?
Yes → consider AI.

Does AI generate a prediction or recommendation that should trigger a repeatable operational action?
Yes → combine AI with automation.

This framework helps avoid two common mistakes.

The first is using AI where a few simple rules would work better.

The second is creating increasingly complicated rule-based systems for problems that are fundamentally predictive.

Conclusion: Choose the Technology That Matches the Problem

The discussion around AI vs. automation should not be framed as a competition between a modern technology and an outdated one.

Both approaches remain valuable because they solve different types of problems.

Automation works best when we know the rules of the process.

AI becomes valuable when the problem requires interpreting data, recognizing patterns, or predicting future events.

And in many manufacturing environments, the strongest architecture combines both technologies.

AI estimates what is likely to happen.

Automation makes sure the appropriate operational action is executed consistently.

That is why the first question in an AI project should rarely be:

“Which model should we use?”

A much better question is:

“What kind of problem are we actually trying to solve?”

Once that is clear, choosing between automation, AI, or a combination of both becomes much easier — and much more likely to generate measurable business value.

Implementing AI in Business

Various reports and studies attempt to capture the degree of AI development and adoption within the business sector.

The most comprehensive reports released so far include State of Polish AI 2021 and Map of Polish AI 2019. These reports offer an extensive list of Polish companies, even those with small AI teams. Unfortunately, much has changed over the past few years, and it’s a pity that these reports have not been updated.

Noteworthy is the list of Polish AI startups compiled by Dr. Przemysław Chojecki in mid-2023, which includes over 100 startups, as well as service companies—software houses—specializing in AI. A similar list of Polish startupswas created by Jan Szumada.

A much newer report is the EY Report: How Polish Companies are Implementing AI?. EY surveyed a large cross-section of companies (over 500) of varying sizes and from different sectors. The main conclusion: 20% of large and medium-sized enterprises in Poland have implemented AI-based systems, and 80% of companies that have completed AI implementation claim to have achieved benefits. Unfortunately, these results raise considerable doubts due to the lack of depth in the topic—what exactly do we mean by “AI implementation”?

Medical startups (170 from Poland) are thoroughly analyzed in the report Top Disruptors in Healthcare. This report is prepared by the AI in Health Coalition, which includes companies (such as COGITA) and other entities whose goal is to shape the application of artificial intelligence in the healthcare industry in Poland, benefiting patients and doctors alike.

A platform initiated by the ministry, ai4msp.pl, showcases many AI project implementations by Polish companies. It is intended to serve as a marketplace, although it is difficult to assess its current market significance.

Podcasts and interviews, such as Nieliniowy or 99twarzyAI, provide a fairly good overview of what is actually happening with artificial intelligence in Polish companies.

It’s worth noting that in the era of generative AI, companies are increasingly focusing on training their own staff (IT departments or others) and testing AI solutions internally rather than outsourcing work to qualified Data Scientists, who until recently had a monopoly on creating machine learning and artificial intelligence systems.

AI Companies Associations

Within the Polish software companies’ association SoDA, a working group on artificial intelligence—SoDA AI Research Group—was established last year, consisting of about 100 members from 30 Polish AI companies.

Two reports presented by this group are noteworthy. Human-AI Collaboration: Perspectives for the Polish Public Sector provides examples of AI projects completed in various areas of the public sector and the challenges associated with them. Meanwhile, the report Generative AI in Business (co-created by more entities than just SoDA) focuses strictly on generative artificial intelligence and presents its potential in various industries. This report is more focused on showcasing possibilities and tools rather than presenting actual AI projects implemented.

In recent months, the Chamber AI trade chamber was also established, which currently lists 44 companies dealing with AI solutions.

Courses and Communities

The last year and a half has also seen a huge increase in interest in artificial intelligence from non-technical people, programmers who have so far been dealing with other technologies, and individuals developing their own businesses.

Various groups have created noteworthy training, communities, and platforms, such as Elephant AIAI_DevsCampus AI, or Building AI Products. These courses vary greatly in level and outcomes, often leading individuals to join several different trainings. Some courses have thousands of participants.

In terms of industry events, long-standing cyclical, more technical initiatives continue to grow, such as Data Science SummitML in PLPyData, or warsaw.ai. However, more local initiatives for AI enthusiasts are also emerging, such as AI BreakfastsMasovian AI Fest, or GenAI Cracow.

In this category, the SpeakLeash community, which includes over 1,000 enthusiasts united around the idea of creating a large corpus of Polish language data that is then used to train Polish LLMs, is also worth mentioning.

Science and Experts

A great analysis of what is happening in Polish science in terms of AI is presented in the IDEAS NCBR Report “Retaining the Best – Trends in PhD Education in the Area of Artificial Intelligence”. It shows that in the last 3.5 years, only 200 PhDs in AI have been defended in Poland. This is a small number given the rapid development of this field.

It’s worth noting that in an era of rapid change driven by AI, authorities in this field are often individuals educated in other areas (philosophy, management) or celebrities. Such individuals gain a large audience with their loud marketing messages, offering their appearances at conferences, consultations, or training.

An example of a list that tried to select the most influential people in AI is the article “23 Most Influential Poles in AI” prepared by MyCompany Polska.

Government: Legislation and Funding

In the field of AI, government and international initiatives should also be mentioned. Since 2016, the development of the AI Strategy has been ongoing, with the milestone being the adoption of the Policy for the Development of Artificial Intelligence in Poland from 2020″. However, this document went largely unnoticed in Polish business, making it difficult to assess its role in shaping AI-related reality.

It seems that the implementation of the EU AI Act, whose pre-consultations recently concluded, will play a much more significant role.

Since 2018, the Ministry of Digitization has operated a Working Group on Artificial Intelligence, but despite the broad cross-section of specialists and several reports, it is difficult to notice a broader impact of this group on AI-related reality in Poland.

Certainly, public funding programs such as Ścieżka Smart play a significant role in the development of companies, although they seem insufficient compared to the funds allocated for AI development in other countries.

Traditional quality control methods are often time-consuming and prone to human error, leading to inefficiencies and increased costs. In this article, we present a hypothetical case study illustrating how an advanced image detection system can revolutionize quality control in the food industry, using a large fruit and vegetable processing company as an example.

Problem Description and Project Objective

The company specializes in producing jams, juices, canned vegetables, and frozen foods. It processes thousands of tons of raw materials daily on its extensive production lines. The main challenge for the company is maintaining high product quality, minimizing waste, and quickly identifying production defects, such as contamination, mechanical damage to fruits and vegetables, and non-compliance with quality standards. Traditional quality control methods proved inadequate, prompting the company to implement an AI-based automated image detection system.

The project's goal was to develop and implement an advanced AI system that would automatically inspect food products on the production line, identifying defects and damage. The system aimed to increase quality control efficiency by automating the process, reduce production waste by quickly detecting defects, and improve the overall quality of products delivered to the market, leading to higher customer satisfaction.

Data Preparation

Three months prior to the project, the company installed cameras at key stages of the production line. Cameras were installed at the raw material intake, over sorting lines, and at packaging machines. These strategic locations allowed monitoring the quality of raw materials and products at various production stages. The cameras captured images of raw materials such as apples, tomatoes, peppers, carrots, and potatoes, which were then analyzed for defects and damage.

Over three months, the company collected about 500,000 image records, with a daily increase of about 5,000 new images. This data was stored on local servers and in the cloud, ensuring easy access to large datasets. Each record included a timestamp, location on the production line, product type, and a description of the defect if detected. During data collection, some camera methods and locations were modified to improve the quality of the collected data. Missing data was supplemented by additional photo sessions and camera configuration improvements.

Model Selection and Training

Advanced AI technologies and tools such as Pytorch and OpenCV were used for system implementation. Convolutional Neural Networks (CNNs) were chosen for their effectiveness in image analysis tasks, thanks to their ability to automatically detect features and patterns. Transfer learning was also utilized, using the pre-trained YOLO model, which was adapted to the specific data of the food industry.

The image data was preprocessed using OpenCV, including color correction, lighting normalization, and noise removal. Data augmentation, such as rotation, scaling, and changes in brightness and contrast, was applied to increase the training dataset and improve model generalization. CNN models were trained on large image datasets, covering different classes of raw materials and various types of defects. The training process was accelerated using GPUs with NVIDIA CUDA technology, allowing efficient processing of large datasets.

Implementation and Integration

The image detection model was deployed on AWS servers with GPU support to ensure fast image data processing. AWS EC2 servers with p3.2xlarge instances were used for scaling and system performance. A RESTful API was created using Flask, enabling communication between the image detection system and the production line. The API handled HTTP POST requests for sending images and receiving analysis results.

The API was integrated with the company's existing production system, enabling automatic image transfer from cameras to the image detection system. The production system sent images to the API in real-time, and analysis results were returned to the production system for appropriate actions, such as removing defective products from the line.

Monitoring and management tools, such as Amazon CloudWatch, were implemented to ensure continuous system availability and performance.

Results Achieved

The system achieved 80% accuracy in detecting raw material defects, resulting in significant business benefits for the producer. The implementation reduced production waste by 20%, equivalent to 10 tons less waste per month.

The efficiency of raw material quality control increased by 50%, leading to faster and more accurate inspections. Assuming the cost of labor associated with raw material quality control is 50,000 PLN per month, the savings from increased efficiency amounted to 25,000 PLN per month.

Costs and Resources

The project involved three Data Scientists and a part-time Project Manager, lasting 4 months, covering data preparation, model training, and system deployment.

AWS servers were used for model training and image detection system deployment. Model training on EC2 p3.2xlarge instances cost 10,600 PLN for 900 hours of work. Deployment and operations on EC2 t3.large instances cost 900 PLN for 4 months of work. Data storage on Amazon S3 cost 700 PLN for 2 TB of data over 4 months, and using Amazon RDS for database storage cost 1,100 PLN.

The total project cost amounted to 513,300 PLN.

Monitoring and Optimization

The system was monitored for availability and performance using Amazon CloudWatch, and the image detection models were regularly updated monthly to account for changes in raw materials and new defect types. An alert system informed the team of any irregularities, such as performance drops or data availability issues.

Interaction with the Technical Team

Collaboration between teams was crucial for the project's success. Regular meetings were held between the data science, IT, production, and quality management teams to discuss project progress, exchange ideas, and identify potential issues. All project stages were thoroughly documented, including technical specifications, data analysis reports, A/B test results, and recommendations for further actions. Training was conducted for the production team on using the image detection system and interpreting the results to maximize the tool's potential.

Challenges and Future Directions

The project faced several challenges, such as ensuring system scalability to handle increasing amounts of data and raw materials, and continuously improving detection model accuracy through regular updates and algorithm optimization. Integration with various production systems and ensuring compatibility also posed challenges.

In the future, the food producer plans to expand the detection scope, introducing the detection of other defect types, such as structural deformations or color changes. Increasing automation through more advanced decision-making mechanisms on the production line and utilizing advanced analytics for predicting quality issues and optimizing production processes are the next steps in system development.

Summary

The implementation of an advanced image detection system brought significant benefits, such as reducing production waste, increasing the efficiency of raw material quality control, and improving product quality. Although the project faced some challenges, the business benefits of implementing the system were substantial, and the company plans further development and optimization of the system in the future.

This hypothetical case study shows how artificial intelligence can revolutionize the food industry, bringing tangible benefits to both producers and consumers.

Online stores must continuously tailor their offerings to the needs and preferences of customers to increase conversion rates and cart value.

Below, we will discuss step by step a hypothetical project to implement an advanced recommendation system in an electronics store, which could significantly improve sales metrics and the customer shopping experience.

Problem Description and Project Objective

Business Context

An online store specializing in electronics (laptops, smartphones, TVs, and accessories) observed that many customers were leaving the site without making a purchase. Despite a wide range of products, users struggled to find items that suited their needs. As a result, the conversion rates and average cart value were lower than expected, negatively impacting the store's revenue and profitability.

Project Goals

The project aimed to develop and implement an advanced recommendation system to:

  1. Personalize product listings on category pages to present products most aligned with users' preferences and browsing history.
  2. Introduce product recommendations on main pages and product subpages, suggesting items based on previous purchases and site behavior.
  3. Segment users according to their shopping behaviors and preferences, allowing for better-targeted offers and marketing campaigns.

Expected Outcomes:

Data Preparation

Data Sources

The project utilized various data sources crucial for the successful implementation of the recommendation system:

  1. Purchase History
    A CSV file containing the purchase history of users over a two-year period. The data included product information, purchase dates, prices, and product categories.
  2. Product Feed
    A regularly updated product feed from the store's API, containing detailed information on available products (names, descriptions, prices, availability, technical attributes, and categories).
  3. Eventserver
    The Eventserver collected data from the online store and stored it in a dedicated database. The events collected included product views (about 100 million records), clicks (about 1 million records), cart additions, and purchases (about 100 thousand records).

Data Quality

To ensure data quality, actions were taken to:

Data Preparation and Processing
Before building the recommendation system, several actions were taken to gain valuable business insights:

Implementation and Integration

Technologies and Tools

The implementation of the recommendation system utilized various models and artificial intelligence technologies:

  1. Embeddings with OpenAI: Transforming product descriptions and user reviews into numerical format.
  2. XGBoost: A predictive model for determining which products are most likely to be purchased.
  1. SHAP: A tool for interpreting model results, helping to understand which user characteristics most influence the recommendation model's decisions.

Integration with Existing Systems:

Results Achieved

After the system was implemented, A/B tests were conducted. The recommendation system returned its results for 50% of randomly selected users, while the rest received the usual product order (by popularity). This allowed for precise measurement of the model's quality.

  1. Increase in Average Cart Value
    Thanks to recommended upsells, the average cart value increased by 4%. The comparison was made during two weeks of A/B testing. Assuming the average cart value before implementation was 500 PLN and there were 10,000 purchases per month, the monthly profit from this increase amounted to 200,000 PLN.
  2. Increase in CR on the Website
    Users received more tailored product suggestions, leading to fewer site exits and more frequent purchases. The conversion rate (CR) increased by 4%, resulting in 800 additional monthly conversions and a profit of 416,000 PLN.

Costs and Resources

The main costs of the project were the wages of the development team.

Human Resources

Project Duration: 2 months.

Infrastructure Costs

As the entire system was implemented in the cloud, additional costs included:

Total Project Cost: 303,870 PLN.

Thus, the investment paid off two weeks after the solution was implemented.

Monitoring and Optimization

After implementing the machine learning model, it was crucial to monitor its performance and make necessary adjustments.

Monitoring was implemented using Amazon CloudWatch. Due to the introduction of new products and changing user preferences, automatic weekly model retraining was implemented. Additionally, an alert system was introduced to report anomalies.

Feedback Loop

For each recommended product, users could click a thumbs up or down to rate the recommendation's quality. This provided an additional source of information useful for retraining the AI model.

Conclusion

The hypothetical implementation of an advanced recommendation system in an electronics store was a key step in improving customer shopping experiences and increasing sales efficiency.

By personalizing the product offering based on user preferences, noticeable improvements were achieved in conversion rates and average cart value.

The project required integrating data from various sources and applying advanced machine learning technologies, such as XGBoost, which enabled effective processing and analysis of large volumes of data and generating accurate product recommendations in real-time.

In recent years, we have witnessed several breakthrough moments, such as the creation of the AlphaZero model in 2017, which achieved grandmaster level in chess and Go, and the development of the Transformer architecture in the same year, which underpins numerous language processing models. However, the release of the GPT-3.5 model as a chatbot, ChatGPT, on November 30, 2022, brought AI into the public eye. The use of AI has become widespread in private life and the search for business applications to save time, streamline processes, and increase profits.

It is important to note that the use of AI-based algorithms (or more precisely, machine learning) for business applications has been ongoing for at least several years. Common examples include systems recommending ads or other content to internet users, predictive systems in financial institutions, and image detection algorithms in industry. Although these algorithms continue to evolve, companies are far from fully utilizing AI's potential.

Therefore, in this article, I will not only present how to use generative artificial intelligence (such as ChatGPT or Midjourney) in your company but also describe more broadly how to approach identifying areas that can be improved by various types of AI algorithms.

Familiarize Yourself with Basic AI Tools

It is worth starting your AI journey by reviewing the available tools. There are already quite a few, each serving very different applications. Here are some examples.

Adobe Firefly is an advanced tool for generating and editing graphics, ideal for marketing and design departments. Synthesia, on the other hand, allows you to create videos with generated voices and characters, which is a great solution for producing training materials and presentations.

ChatGPT and Gemini are versatile tools that can help you create marketing content, handle customer service, respond to emails, or generate ideas. Grammarly, in turn, helps improve grammar and writing style, which is invaluable when creating high-quality marketing content and reports.

Turbologo and Logopony are logo-generation tools that can speed up the process of creating your company's visual identity. Canva offers a wide range of design tools, including those using generative AI models. You can create high-quality graphics with Midjourney or Leonardo.ai. If you need background music, check out Suno.

Tools such as Slides AI, Presentations AI, Pitch, and Beautiful.AI enable the creation of attractive presentations with automatic formatting, which can significantly save time and improve the visual quality of presented materials.

Do not forget to use meeting transcription tools like OtterAI, and text summarization systems like SummarizeBot.

For research teams, Scite.AI offers advanced capabilities for searching scientific information and significantly speeds up the research process.

It is worth experimenting with various tools to find those that best meet the needs of your business. They will certainly increase the efficiency of your employees. However, using these tools is just the beginning of AI possibilities in your company!

Experiment with Generative Systems

You have probably heard that to obtain high-quality results from generative models, it is crucial to write appropriate prompts. Relying only on short and intuitive prompts, you will quickly find that the responses generated by the tools are quite standard and repetitive. They are likely not to meet your company's needs.

Therefore, the next step will be to try and experiment with different prompts. This will help you better understand the capabilities and limitations of AI systems. You will also quickly learn the basic characteristics of AI algorithms:

Build Your Assistants

After initial trials, which are more for fun than serious applications, you can start creating more advanced (yet still quick to build) AI solutions for your business.

This could involve creating a good prompt (i.e., an instruction for the model) and saving it for repeated use. For example, this could be an instruction for social media posts, where you define your brand's style, requirements for post length, and possible use of emojis, or hashtags.

In many tools (e.g., in Chat GPT), you can also upload files in various formats—whether spreadsheets (XLSX), documents (PDF, DOCX), or images (JPG). In this way, you will build agents for managing knowledge in your company, for instance, regarding employee information or quickly searching for information to respond to a client.

Explore the Capabilities of Other AI Groups

Generative models represent just a small part of the wide array of AI algorithms available. Likely, they do not fully leverage the potential inherent in the data collected by your company. Therefore, it is worthwhile to explore other classes of models to consider their use in your business.

Remember, using these models typically requires building a custom AI system by a Data Science team. Alternatively, you can opt for low-code or no-code tools where individuals without advanced programming skills can also create customized AI systems.

The most important types of non-generative ("traditional") AI include:

Computer Vision

These algorithms typically take images or videos as input. Their outputs can range from classification and object detection (identifying objects using colored rectangles, for instance) to semantic segmentation—detecting entire areas of an image and labeling pixels representing specific objects.

Example of object detection and segmentation: (https://manipulation.csail.mit.edu/segmentation.html)

Image processing algorithms find wide applications across various industries. In manufacturing, they are used for quality control, monitoring production processes, and resource management. In medical diagnostics, they enable the analysis of X-ray images, MRIs, and other scans, aiding in the rapid detection of diseases and anomalies. Retail utilizes these technologies for customer behavior analysis, inventory management, and personalized offers.

Recommendation Systems

Crucial in e-commerce, streaming services, and digital marketing, recommendation systems analyze user preferences and behaviors to provide personalized recommendations for products, content, or services, thereby enhancing customer engagement and loyalty.

Predictive and Clustering Systems

Predictive algorithms analyze historical data to forecast future events, invaluable in sectors such as finance, logistics, and resource management. Clustering algorithms help identify patterns and segment data, beneficial in market analysis and customer management.

Optimization Systems

Optimization systems use AI algorithms to manage processes, resources, and logistics in the most efficient manner possible. They can significantly reduce operational costs and increase business efficiency. Examples include warehouse management, route planning for deliveries, production scheduling, machine and resource utilization optimization, and waste reduction.

Exploring these diverse AI capabilities can provide insights into how they can be effectively integrated into your business processes, enhancing productivity and decision-making across various domains.

Conduct Exploratory Workshops and Build an AI Culture

Harnessing the potential of AI in your company can greatly benefit from conducting exploratory workshops and cultivating an AI culture. These initiatives help teams better understand the capabilities offered by AI and how these technologies can be adapted to specific business needs.

Exploratory workshops are interactive sessions designed to identify areas within the company where artificial intelligence can bring the greatest benefits. During these workshops, employees from different departments collaborate to understand which problems can be solved using AI and what new opportunities AI can open up.

The introduction to workshops typically begins with a review of basic AI concepts, allowing participants to better grasp the concepts and terminology. Subsequently, specific use cases of AI in industries similar to your company's are analyzed. In the next stage, participants identify their own business challenges and needs that can be addressed using AI, and then collectively develop initial ideas for solutions.

Building an AI culture within the company also requires creating an environment that supports innovation and continuous learning. It is crucial to promote openness to new technologies and encourage employees to experiment with AI tools. Additionally, company leaders should actively support AI-related initiatives and lead by example through involvement in AI implementation projects.

Moving towards Larger Deployments

Customized AI solutions typically require much larger financial investments compared to simple AI tools, which are often free or cost a few hundred złotys per month. The cost of developing such solutions can range from tens to hundreds of thousands of złotys.

However, if you have a well-defined problem and a Proof-of-Concept that demonstrates the AI system meets your expectations, the benefits can appear quickly in the form of increased sales by several to several dozen percent, savings on losses, or savings of thousands of work hours for your employees.

Summary

Artificial intelligence in business encompasses a wide range of approaches. You can start with initial attempts on your own using ready-made tools that are free or very low cost. However, if you're looking for something more advanced and tailored to your company's specific needs, you should be prepared for higher costs and seek the assistance of technical experts. If you have any questions or would like to discuss your ideas further, feel free to reach out!

But as models have gotten more complex, it can be difficult to know what is causing them to make certain predictions. That is why we observe fast increase of interpretability tools such as SHAP or DALEX

In this article, I will discuss some reasons why interpretability is so important. There are more reasons than you could expect and some of them are very not-obvious.

1. More confidence that model works well

One of the most important aspects of interpretability is that it allows you to gain confidence in your model and be sure that it does what it was supposed to do.

The first step of assessing model quality is properly-defined metric, depending on the application — it can be e.g. accuracy, f1 score or MAPE. However, even if you have chosen proper metrics, it can be computed in wrong way or can be non-informative. Hence, usually we can achive the highest confidence about the model quality only by understanding what it is doing and why give such predictions.

2. Building trust

In Machine Learning projects, trust is the foundation. Without trust, you cannot build relationships or collaborations. Trust allows you to work together and share data, knowledge, and expertise. It also allows you to continue working with each other in the future.

In order for your model to be interpretable and trustworthy, it needs to have clear explanations of what it does and why it does it. The more transparent you can make your model’s output, the more likely it will be that others will trust your results — and want to work with you again!

3. Debugging

Understanding the model and how it works is extremely important when the model’s output is below your expectations and you start to find out what is going on. If you do not understand the model, then it is very hard to debug if something goes wrong with your prediction results.

For example, if an algorithm does not give accurate predictions for some data points in a test set but does well on other data points, maybe good datapoints are from the same distribution that was in the training set. When you understand on which features your model looks at most, you can find that maybe wrong datapoints are outliers from the perspective of these features. Or maybe there are some missing features in these points.

4. Simpler alternative

Thanks to interpretability, you can know which features are important for your model, and propose simpler alternative models which have similar predictive power.

For example, suppose that you have a classification problem with thousands of features and you discover that only 10% of them are significant in predicting customer churn. Now you know which features matter and which do not, so it may be possible to remove unimportant features and train your model again. It will be faster, because it has less parameters. But also the process of data gathering and preprocessing will be simpler. 

5. Extending domain knowledge

The tools for model explainability show us features that affect the model’s output the most. Some relations among features and correlation with the output can be very intuitive and known to experts, e.g. if you are trying to predict whether or not a customer will default on a loan, the history of their repayment can be an important factor. However, models very often detect correlation previously unexplored by human. Thanks to it, human decisions can be better in the future, even if you will not decide to replace them with the model.

6. Regulatory compliance

If a model is being used to determine whether or not you can get approved for something (a loan, medical insurance, etc.), then it is important to be sure that the model makes sense and provides an accurate answer. If the decision is based on an opaque black box, you may have no idea why one person was approved and another was not. This lack of transparency also means that it will be difficult to prove that the model is working properly in court if there are issues with its predictions going forward.

These six reasons explain why the interpretability of a model is important.

Having an interpretable model is important for being sure that the model works well and for building trust between you and your end users. It is also important for debugging the model, which can help you quickly isolate issues and fix them before deploying the model in production.

Model explaination is useful also if you will not use the current version of your model — by enabling building simpler alternative or by extending kowledge of human experts and improving their decisions. 

Finally, if you are going through regulatory compliance checks, having an interpretable version of your model will make these procedures much easier.

I hope you have found this article useful in your data science journey. Please join us on our blog for more articles!

The project aims to develop an advanced system that enables the detection of faults, disturbances, and other issues in the electrical infrastructure, thereby improving its safety and efficiency.

Project Objectives:

Project Progress:

1. Data Collection from Cameras:

Recorded hundreds of hours of video footage from drones, focusing on electrical transmission lines.

2. Data Labeling:

Annotators labeled the data, marking various areas for monitoring, including:

3. Utilization of Pretrained AI Algorithms:

Pretrained models based on deep learning and Convolutional Neural Networks (CNN) were employed.

4. Algorithm Fine-Tuning:

Algorithms were fine-tuned for predicting disturbances in the electrical infrastructure through training on labeled data.

5. Offline Experiments on Historical Data:

Achieved an accuracy of 92% on historical data, serving as a starting point for further improvements.

6. Data Collection and Algorithm Validation:

Additional data was gathered and used to evaluate the algorithm, achieving an accuracy of 89.5%.

7. Iterations to Improve the Algorithm:

Ensemble techniques were applied, combining results from different models, resulting in a 94% accuracy.

8. Work on AI Model Size Reduction:

To enable deployment on target devices, the model was optimized while preserving its effectiveness.

9. Pilot - Algorithm Deployment in Two Test Locations:

The algorithm was tested in real-world conditions at two locations, allowing assessment and adaptation to different terrain conditions.

10. Generating Drone Flight Reports:

The algorithm was integrated with drones, enabling the generation of reports with monitoring results after each drone flight.

    Investments and Resource Allocation:

    The total project cost was 800,000 PLN, distributed as follows:

    Results and Benefits:

    Are you interested in a similar solution?

    Polish Office
    COGITA Sp. z o.o.

    ul. Łąkowa 4

    42-282 Widzów, Poland
    UK Office
    COGITA.AI Limited
    93 Tanorth Road
    Bristol, BS14 0NT, England
    Services
    Solutions
    Resources
    Cogita