<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ramón Ontiveros on Medium]]></title>
        <description><![CDATA[Stories by Ramón Ontiveros on Medium]]></description>
        <link>https://medium.com/@ramontiveros?source=rss-45d20ccbfbf6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*EqjyQ8mIDnk_5GVoTGnbMQ.jpeg</url>
            <title>Stories by Ramón Ontiveros on Medium</title>
            <link>https://medium.com/@ramontiveros?source=rss-45d20ccbfbf6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:31:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramontiveros/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Usando la inteligencia artificial para ayudar en vez de engañar]]></title>
            <link>https://medium.com/@ramontiveros/usando-inteligencia-artificial-para-ayudar-en-vez-de-enganar-7f3cc99a912f?source=rss-45d20ccbfbf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f3cc99a912f</guid>
            <category><![CDATA[inteligencia-artificial]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[forest-fires]]></category>
            <category><![CDATA[español]]></category>
            <dc:creator><![CDATA[Ramón Ontiveros]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 08:01:01 GMT</pubDate>
            <atom:updated>2019-12-11T11:43:03.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://chatbotchocolate.com/?utm_source=pc-post&amp;utm_medium=B-top&amp;utm_campaign=general&amp;utm_term=id0050"><img alt="" src="https://cdn-images-1.medium.com/max/680/1*lB6KDoqrcbd_XSVLxIxIpw.png" /></a></figure><h4>Usando GAN’s (redes neuronales generativas adversarias) para producir imágenes pre etiquetadas y entrenar modelos con el fin de evitar cortes de energía e incendios provocados por la caída de árboles y tormentas.</h4><h3>Cómo empezó todo</h3><p>Soy un ingeniero de software y cofundador de una empresa de consultoría (www.sitek.mx). Al momento en que escuche acerca de <a href="https://medium.com/omdena"><strong>Omdena</strong></a>, ya tenía algo de experiencia en el área de procesamiento digital de imágenes y aprendizaje automatizado usando herramientas como <strong>OpenCV y </strong><a href="https://planetachatbot.com/tensor-flow-object-detection-sobre-telegram-bot-mi-desayuno-frutas-y-una-conversaci%C3%B3n-interactiva-89a5516cb378"><strong>Tensorflow</strong></a>, implementando algunas redes neuronales convolucionales simples y otros proyectos de visión artificial. Pero para nada, me considero algún tipo de experto en el área. Fue solo el tweet de un amigo el que me llevó a <a href="https://medium.com/omdena">Omdena </a>y eso fue todo. Una vez que me puse en contacto con ellos aprendí un poco más acerca de esta comunidad y realmente me gusto mucho, tanto por la gran diversidad cultural de la gente dentro de los retos como por la oportunidad para aprender de ellos.</p><figure><a href="https://chatbotchocolate.com/?utm_source=Pc-post&amp;utm_medium=B-medio&amp;utm_campaign=general&amp;utm_term=id0051"><img alt="" src="https://cdn-images-1.medium.com/max/680/1*lB6KDoqrcbd_XSVLxIxIpw.png" /></a></figure><h3>Mi primer contacto con este tipo de redes (GAN’s)</h3><p>El problema del reto en el que entre, era encontrar la forma de crear un modelo de inteligencia artificial para <strong>detectar árboles en imágenes satelitales </strong>de una manera más precisa, esencialmente encontrar la manera de entrenar a una máquina a diferenciar entre árboles y cualquier otro tipo de vegetación o área verde en una foto, como puede ser el pasto, campos de cultivos, arbustos, etc. Esto alineado a solucionar un problema más grande que era prevenir incendios forestales.</p><p>Al principio, dividimos el trabajo en sub tareas como estrategia para solucionar el problema. Y por alguna razón terminé en el equipo para implementar una GAN, a pesara de que en ese momento no sabía exactamente qué eran. Pero empecé a documentarme un poco leyendo algunos documentos compartidos por el equipo y que yo mismo encontré hasta que entendí su potencial y como las podíamos usar. Descubrí que era algo que ya había escuchado antes pero con otras aplicaciones, como para uso en deep-fake, generar imágenes de cómo te verías en tu vejez, etc. (ejemplos de usos no muy éticos o triviales en el mejor de los casos).</p><p>Pero, ¿cómo es que esta tecnología se podría utilizar en este reto? <strong>Esta es la parte interesante</strong>. Resulta que otra tarea ya había sido empezada por otro equipo. La tarea era comenzar a usar el set de datos de imágenes que se nos habían proporcionado en el reto, para etiquetar las partes importantes y de interés como lo que era árbol y lo que no era árbol. Este es un proceso muy importante porque esta es la información que alimenta otra tarea que es la de detectar los árboles, sirviendo como entrenamiento para otra red neuronal. Pero también es una de las tareas que más tiempo y recurso humano consumen. Así que la idea era crear una GAN para generar imágenes sintéticas pre etiquetadas de inicio como datos de entrenamiento artificiales. De tal forma que pudiéramos entrenar y validar otros modelos sin la necesidad de hacer el esfuerzo de etiquetarlas manualmente.</p><blockquote>Es decir, en vez de etiquetar una imagen real, crear una falsa que se viera como una real, pero a partir de un molde donde de antemano ya supiéramos donde deberían de ir los árboles y donde habría otras cosas que no fueran árboles.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*UXXFXO-gklpjfChvA3Tfsw.gif" /></figure><p>En un principio para ser honestos, estaba un poco escéptico. Me cuestionaba seriamente si sería posible hacer algo así y por dónde comenzar. Pero vamos a empezar por el principio. <strong>¿Qué es una GAN en primer lugar? </strong>GAN significa Generative Adversarial Network que quiere decir Red Generativa-Competitiva. Esencialmente la estrategia de la red es aplicar teoría de juegos y poner a un par de redes neuronales artificiales a competir entre sí mientras se van entrenado mutuamente. Una red trata de generar una imagen artificial y la otra trata de detectar si la imagen generada es real o falsa. En realidad es algo bastante simple, pero muy efectivo. Esto es más claro con un diagrama:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*4-TvFEWkFDDrUwcNa-fG-w.png" /></figure><p>Pero de nuevo, <strong>¿cómo usamos esto para alcanzar nuestra meta?</strong> Resulta que hay un tipo de GAN llamada pix2pix, este tipo de GAN puede usar como entrada un sketch (dibujo o garabato) del la imagen que se quiere generar. Tomando como base el dibujo y de aquí generar una imagen (satelital o lo que sea que quieras representar). <strong>Un ejemplo de esto</strong> es una aplicación que Nvidia hizo para generar paisajes artificiales a partir de garabatos.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp5U4NgVGAwg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp5U4NgVGAwg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp5U4NgVGAwg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/356b2be30b91c69b00bb4babe24717c8/href">https://medium.com/media/356b2be30b91c69b00bb4babe24717c8/href</a></iframe><p>Bueno, partiendo de aquí ya vi posible comenzar con algo. Para ese momento el equipo de etiquetado ya había etiquetado algunas imágenes, por lo que era posible en teoría utilizar esta información para producir los dibujos y usar esto en conjunto con las imágenes reales para entrenar un modelo y generar imágenes artificiales. Y para mi sorpresa, funcionó mejor de lo que esperaba.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*rI5L3rorcJeJZEDWEnNaUQ.png" /></figure><p>Por lo que ahora lo único que nos faltaba era generar garabatos aleatorios para que sirvieran de entrada a la red pix2pix. Por lo que vino otra tipo de GAN al rescate, en este caso una DCGAN. Aquí, la idea general era generar un garabato de forma aleatoria, básicamente usar ruido aleatorio para generar los garabatos. Logrando algo como esto:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*Rjs16UH0QjyHNdT9taSiCg.png" /></figure><p>Y finalmente armar todas las piezas del rompecabezas con la ayuda de un poco de código en Python y usando OpenCV. Logramos hacer un script que genera imágenes 100% aleatorias a partir de solo ruido con su correspondientes etiquetas pregeneradas. Al momento podemos generar cientos de imágenes sintéticas en segundos con sus correspondientes etiquetas en <strong>formato JSON</strong> (coco). Para etiquetar, lo que hacemos es generar el garabato, de aquí crear el archivo JSON con las etiquetas utilizan los colores del garabato y luego generar la imagen artificial a partir de garabato.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*70QxYolaXxvOucnGdbjIIg.png" /></figure><h3>Conclusiones</h3><p>Por ahora los resultados son prometedores, pero solo son resultados preliminares, aún hay áreas de oportunidad y mejora, como por ejemplo, las imágenes etiquetadas que usamos para entrenar la GAN pix2pix solo cuentan con etiquetas que indican si son árboles u otra cosa que no sea árbol. Esto se puede mejorar si se incluye una mayor diversidad de etiquetas, porque esto a su vez da la posibilidad de generar más cosas sintéticas, como caminos, casas, campos de cultivo, etc. También se puede trabajar más en la calidad de las imágenes generadas, optimizar el aprendizaje de las redes y experimentar más con los parámetros de cada red.</p><blockquote>Por último, lo que más me deja esta experiencia, fue la satisfacción de aprender cómo usar estas herramientas y técnicas para un buen fin, así como ver como una persona puede ayudar a resolver un problema o al menos una pequeña parte de éste de manera individual, pero un problema mayor como una comunidad de gente que solo quiere ayudar y hacer la diferencia a pesar de solo acabar de conocerse.</blockquote><p>Durante este proceso, todos pudimos aprender de la experiencia de cada uno e interactuar como colaboradores y co aprender.</p><p>Artículo original publicado por <a href="https://medium.com/omdena/using-ai-for-good-and-not-for-evil-generating-images-with-just-noise-42c4688a461">Omdena</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F68bc97%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F68bc97%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8021540cbf50434828deb5439e1cf04/href">https://medium.com/media/d8021540cbf50434828deb5439e1cf04/href</a></iframe><figure><a href="https://chatbotchocolate.com/?utm_source=Pc-post&amp;utm_medium=B-pie&amp;utm_campaign=general&amp;utm_term=id0052"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Axmr4bMScpjBU_WcOm263A.png" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*u6pz8xzjblHCXLMQUQGF3Q.gif" /></figure><figure><a href="https://www.facebook.com/PlanetaChatbot/"><img alt="" src="https://cdn-images-1.medium.com/max/788/1*m2cnnbikTve7QdG-mXx57Q.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f3cc99a912f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AI for Good and Not for Evil — Generating Images with Just Noise]]></title>
            <link>https://medium.com/omdena/using-ai-for-good-and-not-for-evil-generating-images-with-just-noise-42c4688a461?source=rss-45d20ccbfbf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c4688a461</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[forest-fires]]></category>
            <category><![CDATA[machine-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ramón Ontiveros]]></dc:creator>
            <pubDate>Tue, 13 Aug 2019 13:06:20 GMT</pubDate>
            <atom:updated>2019-08-13T13:09:19.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*tJROj38OkMnLF_m0tGe6PA.png" /></figure><h3>Using AI for Good and Not for Evil — Generating Images with Just Noise</h3><h4>Using GANs for data augmentation to prevent power outages and fires sparked by falling trees and storms.</h4><h3>How I get here</h3><p>I’m a software engineering and co-founder of a consultancy. The moment I heard about Omdena, I recalled that I already had some experience mostly in image processing using tools like OpenCV and Tensorflow to implement some simple convolutional neural network. But by no means, I consider myself an expert of some sort in the field. Just a tweet from a friend introduced me to Omdena. That was all. Once I got in touch with them to learn more about this community, I got really excited, for the high diversity of the people in the challenge. I was thinking about how could I learn from them.</p><h3>My first contact with GAN’s</h3><p>The problem for the challenge that I enrolled was to find a way to create an AI model to detect trees in satellite images more accurately, essentially, how we can teach a machine to differentiate between trees, from other things green in a picture, like grass, farmlands, bushes, etc. This aligned as a part of the solution of a bigger problem that was to prevent fires in the forest.</p><p>In the beginning, we divided the work into subtasks and took a strategy to approach the problem. And for some reason I ended up in the GAN team, despite at the time, I didn’t know what they do exactly. But I started to read some documents shared by the team members. I did some research by myself, and then I understood what they do and how we can actually use them. I discovered that it was something that I already heard about, but with different applications, as deep-fake uses or to generate an image of an older you (examples of not very ethical uses or trivial uses at the best). But how we can use this technology in the challenge? This is the interesting part. Another subtask was started by another team. This task was to start using the available dataset of the images and label the important parts of interest like the trees and the things that weren’t trees. This is a very important step because this was the information that was going to be used. The purpose of it is to train the model to detect these features. But also this is one of the most time-consuming processes. So the idea was to use a GAN to generate synthetic images already pre-labelled for data augmentation. This was for the other models to train them without the effort to label them manually.</p><blockquote><em>That is to say, instead of label a real image, create a fake one that looks like a real one, but from a template where we already know where we are going to be the trees and the things that are not trees.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/0*72eYnU5QqfI_C4CP.gif" /></figure><p>In the beginning, I was a little skeptical. How can this be even possible to accomplish and where to start? So let’s start from the beginning. What is a GAN any way? The GAN stands for Generative Adversarial Network, which is essentially applying game theory and put a couple of artificial neural networks to compete with each other while they are trained at the same time. One network tries to generate the image and the other tries to detect if it is real or fake. Actually, it is something very simple, but pretty effective too. This is clearer with an image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*qNRcso5meE23Hioq" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*4zSw_F1saDL6KROB.png" /></figure><p>But again, how can we use this to accomplish our goal? It turns out that there is a kind of GAN named pix2pix. This kind of GAN can be used as an input, a pre-defined sketch of the real one. Like take a doodle and from there build a picture like a landscape or anything you want. An example of this is the application that Nvidia did to generate artificial landscapes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp5U4NgVGAwg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp5U4NgVGAwg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp5U4NgVGAwg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/949efb054d21f5c160676a783bbf77e9/href">https://medium.com/media/949efb054d21f5c160676a783bbf77e9/href</a></iframe><p>Ok, so maybe this can work. At that moment the label team has already labeled some images, so if we use these labels to build some doodles, then we can use this to train a GAN to generate the images. It actually works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*MAlLB3bpdY1NwYkx.png" /></figure><p>So now we just need to find a way to generate random doodles to feed the pix2pix GAN. So here is another GAN to the rescue, a DCGAN in this case. So, in this case, the idea was to generate a random doodle from random noise. Getting something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*e9EPnhxLKEHSaAtM.png" /></figure><p>And finally putting all the pieces together, with the help of some Python and Opencv code, we end up with a script that generates a 100% random image from pure noise with the corresponding labels. At the moment we can generate thousands of synthetic images with their corresponding labels in a JSON file in coco format. For the labels, we use the doodle to get labels by masking the colors and then build the synthetic images from the doodle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*KSsf5iUJJcSVdhpK.png" /></figure><h3>Conclusions</h3><p>For now, the results look promising, but they are just preliminary results and can be enhanced, for example, the labels that we use, only had labels for trees or not trees, this can be enhanced by another label to make the model more specific and accurate, like for example also label roads, fields, buildings, lakes, rivers and so on, to make the model generate this stuff.</p><blockquote>Finally, it is very satisfying to learn how to use these tools and technics and how we can use them to help to solve part of a problem, maybe just a little part of the problem individually but a larger part of it together as a community of people that just want to help and make a difference.</blockquote><p>During this process, they can also learn, learn from each other and interact as co-workers and co-learners.</p><h4>If you want to join one of our challenges, <a href="https://omdena.com/our-projects/">apply here</a>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*_ofb7zk6k3K2zx2i.png" /></figure><p>If you want to receive updates on our AI Challenges, get expert interviews, and practical tips to boost your AI skills, <a href="http://eepurl.com/gto7Xn?source=post_page---------------------------">subscribe</a> to our monthly newsletter.</p><p>We are also on <a href="https://www.linkedin.com/company/14052175?source=post_page---------------------------">LinkedIn</a>, <a href="https://www.instagram.com/omdenaglobal/">Instagram</a>, <a href="https://web.facebook.com/OmdenaAI/?source=post_page---------------------------">Facebook</a>, and <a href="https://twitter.com/OmdenaAI?source=post_page---------------------------">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c4688a461" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omdena/using-ai-for-good-and-not-for-evil-generating-images-with-just-noise-42c4688a461">Using AI for Good and Not for Evil — Generating Images with Just Noise</a> was originally published in <a href="https://medium.com/omdena">Omdena</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>