Skip to main content

Posts

Showing posts from 2020

After all, how does COVID-19 continue to spread? - A simulation (Conclusions)

This post is the final chapter of my experiments with the simulation. Here I will point out the conclusions we can get from running each test.  Again, please note that the simulation does not completely simulate the human and virus behaviour and it is based on known assumptions and probabilities. Therefore, some tests can have a different outcome from real life. However, we can infer some risky behaviours to avoid in our daily life. Image created by Rawpixel Images. Submitted for United Nations Global Call Out To Creatives Every health authorities states we should wear a mask, wash our hands or use alcohol gel, avoid crowded places, to be 2 meters apart from other people. Well, after running several tests in my simulation I can say they are completely right! If you do not trust them for some reason, please look to the results I got ( here ).  We are now starting another spread. The vaccine against COVID-19 spread. I really hope it does not have any serious side effects. I ...

After all, how does COVID-19 continue to spread? - A simulation (Results)

Here I will present some tests and analyze them to find out some COVID-19's behaviours.  Again, please note the simulation is a simple model where the outputs can be different from the ones in the real world.  Image created by Underway Studio. Submitted for United Nations Global Call Out To Creatives Tablets| Computers, Tablets & Components |Desktops| Laptop Accessories| Laptops I suggest you use the simulation yourself and tweak the configurations file to better understand the simulation's behaviour.  By using the config.yaml file to change some of the simulation parameters we can test different case scenarios to better understand the spread of the virus.  Sometimes we mislead ourselves by taking someone's statement as the absolute truth and that leads us to some mistakes. And you know, against COVID-19 any mistake counts and can get you and your loved ones in real danger. So I will show some tests results and analyse them in th...

After all, how does COVID-19 continue to spread? - A simulation (How it was built)

This "project" started with my curiosity about the covid-19 spread around the world. In my own country, and after everyone knows all health authorities' rules, the virus is now attacking harder than never before. Why the virus still continues to spread? This is one of my big questions. So I did this simulation-like project to study the influences of people behaviours in the overall number of infected people. As an example, evaluating the influence of 50% of the people within an area not wearing a mask, or not respecting the social distance as we should. Stop The Spread. Image created by Hazem Asif. Submitted for United Nations Global Call Out To Creatives  To build the simulation I used the python programming language and the Object-oriented programming paradigm. I did not use any python library to build the simulation environment itself. It is just two classes to represent the Agents and the Simulation. Classes Simulation The class that stores the list of agents in the...

Reinforcement Learning (Part III) - Exploration vs Exploitation

In the Reinforcement Learning field, we face ourselves with the exploration and exploitation words.  Moreover, many articles talk about the exploration vs exploitation trade-off.  What do they mean? Why is this a thing in RL?  Does this relationship have a big impact on the RL algorithms' outcome? Figure 1 - Should I choose the well-known path or give a try to a new one? Photo by Jens Lelie on Unsplash Exploration Exploration is when the agent explores new steps and/or actions to find if other state-action pairs yield a better reward from the environment. You can explore the whole world, or a sample of it to find out the rewards you can get.   Imagine the case where you need to lunch somewhere in your city. You have two options, in the first one you go to the same restaurant you always go with that tasty food you like. The other option is choosing a different restaurant and only after being there you find out if the food is better, equal or worst.   The...

Reinforcement Learning (Part II) - Model-free

Today's post will introduce you to the model-free methods of Reinforcement Learning (RL). To have a model of the environment we need to store all the states and actions. To do so, we are limited to the infrastructure limits, that means we need to find another approach when the environment is too big and with too many variables. Therefore, model-free approaches can handle the problems where the world is too big to fit our infrastructures. To better comprehension, the Q-Learning algorithm will be presented and explained. Robot infinite environment - Photo by Dominik Scythe on Unsplash Terminologies Figure 1 - Agent-environment interaction Agent  — The learner and the one that makes actions. The agent's goal is to maximise the cumulative reward across a set of actions and states. Action  — A set of actions which the agent can perform. Different environments allow the agent to perform distinct kinds of actions. The set of all valid actions in a given environment is usu...

Reinforcement Learning (Part I) - How does it work?

Today's post is about a Machine Learning area,  the Reinforcement Learning (RL). This article seeks to summarise the principal types of algorithms used for reinforcement learning. Here we will get an overview of the existing RL methods on an intuitive level. In further posts, we will go into more detail and code examples. Robot - Photo by Photos Hobby on Unsplash As other Artificial Intelligence's approaches, RL is not a new thing. The first studies and developments dating back to the 1850s and further advances on mid-1950s, where Richard Bellman has a huge impact [1]. Now, we are achieving several advances in the area and improving the results year after year. Reinforcement learning is nowadays the most virtuous way to suggest or find the machine’s creativity. Please note, different from human beings, theses algorithms can fetch experience from millions of parallel simulations if they are running on a powerful infrastructure. Terminologies Figure 1 - Agent-environment...

AI and Global Mobility

We all know AI is helping us to give several steps ahead in some differentiated sectors. Many scientists point out that AI is leading us to a new industrial revolution. I have the same belief. AI is increasingly improving our world in all aspects. Today's topic is how AI is helping us in the mobility scope. Mobility - VCI, Portugal We are seeing a very significant amount of investments in the automotive industry to apply AI-based algorithms. The self-driving cars are becoming more reliable due to those investments. However, AI is not strictly applied to drive the vehicle. Mobility - VCI, Portugal We see lots of other car features using AI. Some examples are  the emergency brake systems, adaptative cruise control, read traffic signals to identify the allowed velocity, driving monitoring systems to check if the driver is distracted, systems to adjust the vehicle settings such as temperature, mirrors and seat position , and so forth. These features are improving global mobilit...

AI and Food Industy - The new Agriculture (Part II)

Being a farmer is not only making plants grow. Apart from all the care applied to the plants, they also need to collect what has been produced. The harvesting of agricultural products is one of the most difficult, and delicate stages in the food production chain. Harvesting strawberries - Photo by Farsai Chaikulngamdee on Unsplash Millions of people are employed in this process. It is a seasoned process what means temporary jobs. These jobs are mostly available in the summer season, where we reach the harvest phase for the majority of the plants. Many farmers dedicate themselves to fruit growth. In this agriculture's field, we have to take care of plants and then pick the fruits. As you may think, this is a hard and repetitive task. Image a farm with several acres of land. G etting all the fruits from the plants can take months and involve lots of people.  Hiring so many people is very expensive for farmers. Besides, people can harvest fruits inappropriately, reducing the fruit...

AI and Food Industy - The new Agriculture (Part I)

Artificial Intelligence is proving to be one of the keys to the next human revolution. We can find AI everywhere we go or even do. In these days, almost everything that runs a software uses AI. Thus, we are in contact with AI every day, even if you only use a smartphone.  Food - Photo by Dan Gold on Unsplash It uses AI in a bunch of apps, starting on the camera app. Although we are using AI in so many devices, some people are not aware of it. An example is the use of AI in the Food Industry.  Thereby, I am starting this series of posts to show you where AI is being used and how it is evolving the Food Industry.     Food is a human being need. Do you know how many are we? We are very close to being 8 billion people on earth . Moreover, the projections point to more than 9 billion people in 2050 , and more than 10 billion by 2100 .  We all need food to survive. Agriculture occupies 50% of the habitable land and requires 70% of the water in the world. So...

AI and Health Care - Part IV (Fighting COVID-19)

In my earliest posts, we saw some examples of AI use in our health care systems. Some approaches use AI to develop new tools, other ones use AI to identify new medicines or diseases. Moreover, we also have AI systems to analyse data and predict future events. All of these examples are only the tip of the development line in the AI field.  Doctor - Photo by  Ashkan Forouzani  on  Unsplash To improve our way of life many companies and universities are investing millions. Their goal is to bring us the best AI systems. Indeed, some of them still have some output errors. Consequently, the companies are studying why they face those errors and how they can overcome these problems. I believe that in the next couple of years we will start to see the health care systems revolution, mostly due to AI integration and evolution. The first successful AI projects are now available, so its a matter of time until AI positively improve our health systems.  COVID-19 pr...

AI and Health Care - Part III (Predicting the future?)

After learning about some examples of AI applications in the diagnosis phase and in the development of new tools, let's talk about AI and predicting the future.  Everyone dreams of the ability to predict the future. Such an ability could avoid some problems in our daily life. Data Analysis -  Photo by  Carlos Muza  on  Unsplash Could AI leverage us to reach that desired dream? We all heard about predicting AI algorithms applied especially on our economy. However, the big question here is: Can we use AI to predict diseases, new diseases, or even pandemics? Do we already have this kind of algorithms? Google's Scientists developed an AI system capable of analyzing scans of the back of an eye so it can predict data about the patients [1]. Some of the predicted data is related to the person's age, blood pressure, or if he/she smokes. Such indicators are directly related to cardiac events , like heart attacks. Thus, using this method, we do not need blood test...