<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Francesco Scalzo, Autore presso Revelis</title>
	<atom:link href="https://www.revelis.eu/en/author/francesco-scalzo/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.revelis.eu/en/author/francesco-scalzo/</link>
	<description>Artificial Intelligence solutions</description>
	<lastBuildDate>Mon, 21 Oct 2024 15:14:42 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://i0.wp.com/www.revelis.eu/wp-content/uploads/2020/03/cropped-logo-revelis-miniatura.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Francesco Scalzo, Autore presso Revelis</title>
	<link>https://www.revelis.eu/en/author/francesco-scalzo/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">173310532</site>	<item>
		<title>How to optimize LLMs with RAG</title>
		<link>https://www.revelis.eu/en/how-to-optimize-llms-with-rag/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-optimize-llms-with-rag</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Tue, 24 Sep 2024 09:57:23 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=3830</guid>

					<description><![CDATA[<p>In this article, we will explore how to optimize LLM using RAG, whereas in previous articles “Large Language Models (LLM)“, we first explored Large Language Models (LLMs) and Prompt Engineering techniques, and later delved into Retrieval-Augmented Generation (RAG)&#160; in article “RAG: What It Is and How to Optimize LLMs” explaining its functioning and advantages. RAG&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/how-to-optimize-llms-with-rag/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/how-to-optimize-llms-with-rag/">How to optimize LLMs with RAG</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this article, we will explore how to <strong>optimize LLM </strong>using RAG, whereas in previous articles <a href="https://www.revelis.eu/en/large-language-models-llm/">“Large Language Models (LLM)“</a>, we first explored Large Language Models (LLMs) and Prompt Engineering techniques, and later delved into Retrieval-Augmented Generation (RAG)&nbsp; in article <a href="https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/">“RAG: What It Is and How to Optimize LLMs”</a> explaining its functioning and advantages.</p>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="1024" height="544" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/09/Comparison-between-RAG-and-other-training-and-data-processing-methods.jpg?resize=1024%2C544&#038;ssl=1" alt="Comparison between RAG and other training and data processing methods" class="wp-image-3832" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/09/Comparison-between-RAG-and-other-training-and-data-processing-methods.jpg?resize=1024%2C544&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/09/Comparison-between-RAG-and-other-training-and-data-processing-methods.jpg?resize=300%2C159&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/09/Comparison-between-RAG-and-other-training-and-data-processing-methods.jpg?resize=768%2C408&amp;ssl=1 768w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/09/Comparison-between-RAG-and-other-training-and-data-processing-methods.jpg?w=1182&amp;ssl=1 1182w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption"><em>Comparison between RAG and Other Data Training and Processing Methods</em><br></figcaption></figure>



<h2 class="wp-block-heading">RAG and Prompt Engineering</h2>



<p class="wp-block-paragraph"><strong><br></strong>To understand how to <strong>optimize LLM </strong>with RAG, it&#8217;s important to know that Prompt Engineering is the simplest and least technical method to interact with a large language model (LLM). This approach involves formulating a series of instructions that the model must follow to generate an appropriate output in response to a user&#8217;s query.&nbsp;</p>



<p class="wp-block-paragraph">Unlike <a href="https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/">RAG</a> (Retrieval-Augmented Generation), prompt engineering requires fewer data, as it only uses those employed during the initial training of the model, and is less costly, utilizing only existing tools and models.</p>



<p class="wp-block-paragraph"><strong>However, prompt engineering has some limitations. It cannot generate output based on updated or changing information since the model relies solely on pre-trained data, which can become outdated. </strong>Moreover, the quality of the output heavily depends on the prompt formulation itself; a poorly constructed or ambiguous prompt can lead to incoherent or inaccurate responses.</p>



<p class="wp-block-paragraph">Despite these limitations, prompt engineering is an intuitive and cost-effective solution, ideal for extracting information on general topics that do not require a high level of detail.<strong> It&#8217;s particularly useful when quick responses are needed without the necessity to integrate updated or specific data. </strong>In such cases, prompt engineering offers an effective way to leverage LLM capabilities without the costs and complexity associated with methods like RAG.</p>



<p class="wp-block-paragraph"></p>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe48e5de wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.revelis.eu/en/large-language-models-llm/">Read the article: Large Language Models (LLM)</a></div>
</div>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Differences between RAG and Fine-Tuning a Model</h2>



<p class="wp-block-paragraph"><strong><br></strong>To understand how to <strong>optimize LLM, </strong>it is necessary to recognize that fine-tuning and RAG are two different approaches to improving LLM performance<strong>.</strong> RAG focuses on integrating external data to enrich the <a href="https://www.revelis.eu/en/large-language-models-llm/">LLM</a>&#8216;s content. In practice, RAG does not modify the base model but allows it to access a set of specific, up-to-date data in real time.</p>



<p class="wp-block-paragraph">This approach uses minimal computational resources compared to fine-tuning, as it only requires a document or collection of relevant documents. RAG is particularly effective at reducing the risk of &#8220;hallucinations,&#8221; i.e., incorrect but convincing responses, as it allows the model to refer to verifiable sources.</p>



<p class="wp-block-paragraph"><strong>Fine-tuning, on the other hand, involves modifying the pre-trained model through further training with a smaller, more specific dataset.</strong> This process enables the model to learn more targeted patterns and knowledge, which do not require frequent updates. However, fine-tuning requires a significant amount of data and computational resources, as well as substantial time and financial investment. It is ideal for highly specialized applications where the data is stable over time and where in-depth analysis is required.</p>



<h3 class="wp-block-heading">Key Differences</h3>



<ul class="wp-block-list">
<li><strong>Resources:</strong> RAG requires fewer computational resources and can be quickly implemented with the addition of specific documents, while fine-tuning requires a large dataset and significant processing resources.</li>



<li><strong>Data Updates:</strong> RAG allows continuous information updates, incorporating new and verifiable data in real time. Fine-tuning, on the other hand, does not allow for frequent updates once the training process is complete.</li>



<li><strong>Reduction of Hallucinations:</strong> RAG has been shown to reduce hallucinations better than fine-tuning since it bases responses on verifiable external data, while fine-tuning requires a complex and costly process to achieve the same result.</li>



<li><strong>Specialized Applications:</strong> Fine-tuning is preferable in contexts where there is a large amount of specific data and adequate resources, and when it is not expected that the data will frequently change. RAG is more suitable for dynamic scenarios where access to up-to-date information is crucial.</li>
</ul>



<p class="wp-block-paragraph">Often, combining RAG and fine-tuning can offer the best of both worlds. <strong>Fine-tuning can be used to create a solid and specialized foundation for the model</strong>, while RAG can be implemented to keep information updated and relevant, improving the accuracy of responses over time.</p>



<p class="wp-block-paragraph">In summary, the choice between RAG and fine-tuning depends on the specific needs of the project, the available resources, and the nature of the data being worked with.</p>



<h2 class="wp-block-heading">Differences between RAG and Pretraining</h2>



<p class="wp-block-paragraph"><strong><br></strong>Pretraining and <strong>RAG</strong> (Retrieval-Augmented Generation) represent two distinct approaches in the training and use of large language models (LLMs). Although both aim to improve the model&#8217;s capabilities, they differ significantly in method, required resources, and specific applications.</p>



<p class="wp-block-paragraph"><strong>In the process of optimizing LLM, pretraining is the initial phase of training an LLM, during which the model acquires a basic understanding of language. </strong>This process involves using a large generic dataset to create an internal neural network, similar to the human brain&#8217;s learning process through the formation of neural connections.</p>



<p class="wp-block-paragraph">Pretraining requires a huge amount of computational resources, often thousands of GPUs, and is a long and costly process. It is suitable when there is a very large dataset that can significantly influence the model, and there is a desire to provide a basic understanding of a wide range of topics and concepts.</p>



<p class="wp-block-paragraph"><strong>RAG, on the other hand, integrates external, specific information into a pretrained LLM</strong>. This method allows the model to access updated and relevant data in real-time, improving the accuracy of responses and reducing the risk of &#8220;hallucinations&#8221; (erroneous but convincing responses). RAG uses fewer resources compared to pretraining and can be quickly implemented by adding specific documents. It is ideal for scenarios where information needs to be frequently updated and where quick access to specific data sources is required.</p>



<h3 class="wp-block-heading">Key Differences</h3>



<ul class="wp-block-list">
<li><strong>Resources and Time:</strong> Pretraining requires a huge amount of computational resources and time, while RAG is much cheaper and faster to implement.</li>



<li><strong>Purpose and Applications:</strong> Pretraining provides a general knowledge base, useful for models that need to understand and generate language on a wide range of topics. RAG, instead, is used to integrate specific and updated information, improving the accuracy of responses for specialized applications.</li>



<li><strong>Information Updates:</strong> RAG allows the model to stay updated with new information in real-time, while pretraining does not foresee frequent updates after the initial phase.</li>
</ul>



<p class="wp-block-paragraph">In the next article, we will examine <strong>how Revelis is implementing the Retrieval-Augmented Generation technique in its solutions, sharing case studies and results achieved.</strong></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Author: Francesco Scalzo</strong></p>
<p>L'articolo <a href="https://www.revelis.eu/en/how-to-optimize-llms-with-rag/">How to optimize LLMs with RAG</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3830</post-id>	</item>
		<item>
		<title>RAG: What It Is and How to Optimize LLMs</title>
		<link>https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rag-what-it-is-and-how-to-optimize-llms</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Wed, 07 Aug 2024 14:35:37 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=3817</guid>

					<description><![CDATA[<p>In the article “What are Large Language Models (LLM)” we introduced Large Language Models (LLM), explaining their operation and main applications. We also discussed Prompt Engineering techniques to optimize the performance of LLMs. In this article, we want to explain what RAG is and how to use it to optimize LLMs. Retrieval-Augmented Generation (RAG) The&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/">RAG: What It Is and How to Optimize LLMs</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In the article <a href="https://www.revelis.eu/en/large-language-models-llm/">“What are Large Language Models (LLM)”</a> we introduced Large Language Models (LLM), explaining their operation and main applications. We also discussed Prompt Engineering techniques to optimize the performance of LLMs.</p>



<p class="wp-block-paragraph">In this article, we want to explain what <strong>RAG</strong> is and how to use it to optimize LLMs.</p>



<h2 class="wp-block-heading">Retrieval-Augmented Generation (RAG)</h2>



<p class="wp-block-paragraph">The <strong>RAG</strong> method (Retrieval-Augmented Generation) combines data within a large language model with selected external data sources, such as specific repositories, text collections, and existing documentation. These resources are segmented, indexed in a vector database, and used as references to provide more accurate answers.</p>



<p class="wp-block-paragraph"><strong>RAG is extremely useful because it allows the language model to use specific real-time information from one or more reliable sources.</strong> This approach offers significant savings by ensuring an optimal experience without the need to retrain or fine-tune models.</p>



<p class="wp-block-paragraph">Additionally, it uses fewer resources because, after sending the query to the language model, it only returns the most relevant information, avoiding long and unfocused documents.</p>



<h2 class="wp-block-heading">How the RAG Pipeline Works</h2>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" decoding="async" width="1024" height="477" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/08/RAG-1.jpg?resize=1024%2C477&#038;ssl=1" alt="RAG" class="wp-image-3818" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/08/RAG-1.jpg?resize=1024%2C477&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/08/RAG-1.jpg?resize=300%2C140&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/08/RAG-1.jpg?resize=768%2C358&amp;ssl=1 768w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/08/RAG-1.jpg?w=1172&amp;ssl=1 1172w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The pipeline of a <strong>RAG</strong> system is divided into several stages, each crucial to the effectiveness of the overall process:</p>



<ol class="wp-block-list">
<li><strong>Data Ingestion</strong>: Data is collected from various sources such as databases, documents, or live feeds. This data is pre-processed and transformed into formats compatible with the embedding system, which converts them into numerical vector representations.</li>



<li><strong>Embedding Generation</strong>: The transformed data is converted into high-dimensional vectors, representing the text in a numerical format understandable by the system.</li>



<li><strong>Storage in Vector Archives</strong>: The generated embeddings are stored in specialized vector databases, optimized for quickly handling and retrieving vector data.</li>



<li><strong>Information Search and Retrieval</strong>: When a user sends a query, the RAG system uses the vector representations to conduct efficient searches. It identifies the most relevant information by comparing the query vector with those stored in the databases.</li>



<li><strong>Response Generation</strong>: Using the user&#8217;s prompt and the retrieved data, the language model generates a complete response. This process combines the internal knowledge of the model with the retrieved external information, enhancing the accuracy and relevance of the responses.</li>



<li><strong>External Data Update</strong>: To keep information up-to-date, the system periodically updates documents and their embedding representations. This can be done through real-time automatic processes or periodic batches.</li>
</ol>



<h2 class="wp-block-heading">RAG and Indexing</h2>



<p class="wp-block-paragraph">Before effectively using a <strong>RAG</strong> system, it&#8217;s essential to have a solid data indexing process. This involves organizing and storing information in a Vector DB. <strong>These databases store information as numerical vectors representing the semantic meaning of the data.</strong> Indexing allows for the quick retrieval of relevant information, essential for the subsequent retrieval phase.</p>



<h3 class="wp-block-heading">Vector DB: The Key to RAG</h3>



<p class="wp-block-paragraph">A fundamental component of the RAG pipeline is the <strong>Vector DB, a specialized database designed to manage and search semantic information in vector form. </strong>These databases are essential for RAG operation for several reasons:</p>



<ul class="wp-block-list">
<li><strong>Semantic Representation</strong>: Vector DBs store information as numerical vectors representing the semantic meaning of the data. This contrasts with traditional databases that store data in structured or unstructured formats without capturing the intrinsic meaning.</li>



<li><strong>Efficient Search</strong>: Thanks to vector representation, Vector DBs allow for similarity-based searches. When a query is transformed into a vector, the database can quickly compare this vector with stored vectors to find the closest matches. This makes searching extremely efficient and precise.</li>



<li><strong>Scalability</strong>: Vector DBs are designed to handle large volumes of data. They can scale to contain millions or billions of vectors, ensuring that searches remain fast even as data volumes grow.</li>



<li><strong>Flexibility</strong>: These databases can be used for a wide range of applications, from document search to product recommendation, thanks to their ability to understand and compare the meaning of data.</li>
</ul>



<h3 class="wp-block-heading">User Query</h3>



<p class="wp-block-paragraph"><strong>The RAG pipeline begins with user input. </strong>The user asks a question in natural language, which the system must interpret and transform into a representation that can be processed by artificial intelligence models. This transformation occurs through vectorization, a process in which the question is converted into a numerical vector that captures the semantic meaning of the query.</p>



<p class="wp-block-paragraph">For example, if a user asks, &#8220;What are the benefits of RAG?&#8221; the system translates this question into a vector representing the keywords and context of the query. This vector is then used to search for matches in the knowledge database.</p>



<h3 class="wp-block-heading">Retrieval</h3>



<p class="wp-block-paragraph"><strong>Once the user&#8217;s query has been vectorized, the next step is retrieval.</strong> In this phase, the system compares the query vector with the vectors in the Vector DB. Using similarity measures, the system identifies the data chunks (e.g., paragraphs or document sections) that are most relevant to the query.</p>



<p class="wp-block-paragraph"><strong>Retrieval is a critical phase because it determines the quality of the information used to generate the response.</strong> If the retrieved chunks are not relevant, the final response may be inaccurate or unhelpful. Therefore, the effectiveness of retrieval depends on the search engine&#8217;s accuracy and the quality of the indexing.</p>



<h3 class="wp-block-heading">Augmentation</h3>



<p class="wp-block-paragraph"><strong>In the augmentation phase, the data chunks extracted during retrieval are combined with the user&#8217;s original query to create a response template. </strong>This phase can be seen as data preparation for the generative model.</p>



<p class="wp-block-paragraph">The response template includes the key facts extracted from the documents and organizes them in a format that facilitates the generation of the final answer. This augmentation process ensures that all relevant information is considered and that the response is contextually accurate and complete.</p>



<h3 class="wp-block-heading">Generation</h3>



<p class="wp-block-paragraph"><strong>The final phase of the RAG pipeline is response generation.</strong> In this phase, the generative model (typically an LLM) takes the response template and processes it to produce a coherent and natural response to the user&#8217;s query.</p>



<p class="wp-block-paragraph"><strong>The generative model uses the facts and contexts provided during the augmentation phase to construct a response that not only directly answers the user&#8217;s question but does so in a way that is easy to understand. </strong>This response is formulated using advanced natural language generation algorithms, allowing the system to produce texts that appear human-written.</p>



<p class="wp-block-paragraph"></p>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe48e5de wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.revelis.eu/en/digital-transformation-how-to-tackle-it-with-revelis/">Read the article &#8220;Digital Transformation: How to Tackle It with Revelis&#8221;</a></div>
</div>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Advantages of RAG</h2>



<p class="wp-block-paragraph">Integrating external and verifiable data through the <strong>RAG</strong> architecture offers multiple advantages to <a href="https://it.wikipedia.org/wiki/Modello_linguistico_di_grandi_dimensioni">LLM</a>, <strong>significantly improving accuracy, flexibility, scalability, personalization, and control, without needing to retrain the entire model.</strong> RAGs improve the accuracy of responses by reducing the risk of &#8220;hallucinations,&#8221; or convincing but incorrect answers, as they provide LLMs with citable and verifiable sources by the user.</p>



<p class="wp-block-paragraph"><strong>This dynamic integration allows models to stay up-to-date without needing retraining</strong>, making them ideal for large-scale applications and constantly evolving contexts.</p>



<p class="wp-block-paragraph"><strong>In terms of convenience, RAGs allow for the introduction of new data into an existing LLM and the elimination or updating of information sources simply by uploading new documents or files.</strong> This significantly reduces the costs and time needed to retrain or fine-tune LLMs while improving efficiency, as queries provided to LLMs are reduced to the most relevant information.</p>



<p class="wp-block-paragraph"><strong>RAG offer developers greater control, allowing them to customize information sources and tailor responses to users&#8217; specific needs. </strong>This enhancement of the user experience increases trust in the provided responses. Additionally, the RAG architecture facilitates feedback, problem resolution, and application correction, ensuring a continuous flow of updated and domain-specific information.</p>



<p class="wp-block-paragraph"><strong>From a data sovereignty and privacy perspective, RAGs mitigate risks associated with using confidential information for fine-tuning LLM</strong>, keeping sensitive data on-premises. They can also limit access to sensitive information based on different authorization levels, ensuring that only authorized users can access certain data. This approach further strengthens the security and privacy of the information used.</p>



<p class="wp-block-paragraph">In the next article, we will compare RAG &#8211; Retrieval-Augmented Generation with other training and data processing methods, analyzing the advantages and limitations of each approach to understand when and why to choose RAG.</p>



<p class="wp-block-paragraph"><strong>Author: Francesco Scalzo</strong></p>
<p>L'articolo <a href="https://www.revelis.eu/en/rag-what-it-is-and-how-to-optimize-llms/">RAG: What It Is and How to Optimize LLMs</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3817</post-id>	</item>
		<item>
		<title>Large Language Models (LLM)</title>
		<link>https://www.revelis.eu/en/large-language-models-llm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=large-language-models-llm</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Thu, 04 Jul 2024 09:54:43 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=3789</guid>

					<description><![CDATA[<p>Retrieval-Augmented Generation (RAG) is an innovative technique that combines the use of Large Language Models (LLM) with the ability to retrieve information from external sources to improve the quality and accuracy of the generated responses. In this series of articles, we will delve deeply into this methodology, starting with the fundamentals of LLMs and Prompt&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/large-language-models-llm/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/large-language-models-llm/">Large Language Models (LLM)</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Retrieval-Augmented Generation (RAG) is an innovative technique that combines the use of Large Language Models (<strong>LLM</strong>) with the ability to retrieve information from external sources to improve the quality and accuracy of the generated responses.</p>



<p class="wp-block-paragraph">In this series of articles, we will delve deeply into this methodology, starting with the fundamentals of LLMs and Prompt Engineering, and then comparing RAG with other training and data processing methods. We will conclude with an overview of the practical application of RAG in Revelis solutions.</p>



<h2 class="wp-block-heading">LLM: what are Large Language Models</h2>



<p class="wp-block-paragraph"><a href="https://it.wikipedia.org/wiki/Modello_linguistico_di_grandi_dimensioni">Large Language Models</a> (<strong>LLM</strong>) are advanced artificial intelligence models trained on vast datasets of textual data, capable of understanding and generating human language. These models use deep learning techniques to predict the next word in a text sequence, enabling them to perform tasks such as automatic translation, sentence completion, and creative text generation.</p>



<p class="wp-block-paragraph">LLMs are generally non-deterministic. They use sampling techniques like top-k sampling and nucleus sampling to generate responses, introducing variability and creativity into the output. However, they can be configured to behave deterministically by setting a &#8220;seed&#8221; for the random number generator, ensuring that the same input produces the same output every time.</p>



<p class="wp-block-paragraph"><strong>Key Technical Features of LLMs:</strong></p>



<ul class="wp-block-list">
<li><strong>Size and Complexity:</strong> LLMs are characterized by a very high number of parameters. For example, OpenAI&#8217;s GPT-3 has 175 billion parameters. Parameters are the weights within the neural network that are optimized during the training process.</li>



<li><strong>Transformer Architecture:</strong> LLMs use the Transformer architecture, introduced by Vaswani et al. in 2017. This architecture relies on attention mechanisms that allow the model to weigh the importance of different words in an input sequence, improving effectiveness in context processing.</li>



<li><strong>Training on Extensive Data:</strong> LLMs are trained on vast corpora of textual data from diverse sources such as books, scientific articles, websites, and digital content. This allows the models to learn a wide range of linguistic and factual knowledge.</li>



<li><strong>Tokenization and Embedding:</strong> Before training, text is divided into tokens, which can be words, word fragments, or characters. Each token is then converted into a numerical vector (embedding) that represents its meaning in a multidimensional vector space.</li>



<li><strong>Generalization Capability:</strong> LLMs can generalize the information learned during training to respond to new queries. This is possible due to the model&#8217;s ability to capture complex patterns and relationships within the data.</li>
</ul>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" decoding="async" width="1024" height="320" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/language-model-1.jpg?resize=1024%2C320&#038;ssl=1" alt="" class="wp-image-3790" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/language-model-1.jpg?resize=1024%2C320&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/language-model-1.jpg?resize=300%2C94&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/language-model-1.jpg?resize=768%2C240&amp;ssl=1 768w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/language-model-1.jpg?w=1176&amp;ssl=1 1176w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Source image: <a href="https://www.ai4business.it/intelligenza-artificiale/llm-cosa-sono-applicazioni-dei-large-language-model/">AI4Business</a>&nbsp;</p>



<p class="wp-block-paragraph"><strong>Large Language Models (LLMs) utilize machine learning and natural language processing (<a href="https://www.revelis.eu/natural-language-processing/">NLP</a>) techniques to understand and generate human-like language.</strong> Although they are extremely useful for communication and data processing, they have some limitations. They are trained on generic data that does not include specific information related to the desired subject, such as a particular set of internal company data. Moreover, their knowledge is limited over time: the information used for training is not updated, so the material can become obsolete and no longer relevant. Finally, they tend to provide answers based on what they think the user wants to receive, which can lead to incorrect or outdated information, a phenomenon known as &#8220;hallucination.&#8221;</p>



<h2 class="wp-block-heading">Differences Between Open Source and Closed LLMs</h2>



<p class="wp-block-paragraph"><strong>LLMs</strong> can be divided into two main categories: open source and closed.</p>



<p class="wp-block-paragraph">Open source language models, such as GPT-J and BERT, are publicly accessible with open-source code. This approach offers numerous advantages. </p>



<p class="wp-block-paragraph">Firstly, <strong>transparency</strong>: anyone can examine how the model is built and how it works. This not only fosters trust in the technology but also allows the developer community to contribute to the continuous improvement of the model. A crucial aspect of open source LLMs is <strong>the possibility of customization. </strong>Companies and developers can adapt the model to their specific needs, creating specialized versions for certain tasks. This flexibility is particularly useful in industries that require tailored solutions. Finally, from an economic standpoint, open source models can be used for free, significantly reducing implementation costs. <strong>This makes the technology accessible even to small businesses and startups that may not have large budgets.</strong></p>



<p class="wp-block-paragraph">On the other hand, <strong>closed language models, such as <a href="https://openai.com/index/gpt-4/">OpenAI&#8217;s GPT-4</a>, offer distinct advantages, especially in terms of performance and optimization.</strong> These models are often developed with advanced resources and high-level infrastructures, ensuring superior performance compared to open source models. The companies that develop them can invest in dedicated hardware and optimization techniques that enhance the model&#8217;s efficiency and speed.&nbsp;</p>



<p class="wp-block-paragraph"><strong>In terms of security, closed models offer greater control over distribution and use.</strong> This can be crucial for companies that must comply with strict data privacy and security regulations. <strong>By using a closed model, companies can be assured that sensitive data is handled with the highest level of protection. </strong>However, access to closed models is generally limited and occurs via paid APIs. This can increase costs for the end user and limit the possibility of customization, as users cannot modify the underlying model. Despite this, for many companies, the benefits in terms of performance and support outweigh these disadvantages.</p>



<h2 class="wp-block-heading">Pre-Training</h2>



<p class="wp-block-paragraph">Pre-training is a fundamental initial phase for large language models (LLMs). This process uses a vast corpus of textual data to provide the model with a general understanding of language. <strong>Through pre-training, the model learns the syntactic, semantic, and contextual structures of the language, developing a solid foundation to tackle various linguistic tasks.</strong></p>



<h3 class="wp-block-heading">Pre-Training Process</h3>



<p class="wp-block-paragraph"><strong>Data Collection:</strong></p>



<ul class="wp-block-list">
<li><strong>Diverse Corpus:</strong> The model is trained on a vast corpus of data from books, articles, web pages, and other text sources. This corpus must be large and varied enough to cover a wide range of linguistic styles and topics.</li>
</ul>



<p class="wp-block-paragraph"><strong>Tokenization:</strong></p>



<ul class="wp-block-list">
<li><strong>Text Segmentation:</strong> The text is divided into smaller units called tokens. Tokenization can be based on words, sub-words, or characters. For example, &#8220;tokenization&#8221; can be segmented into &#8220;token&#8221;, &#8220;ization&#8221;.</li>
</ul>



<p class="wp-block-paragraph"><strong>Model Training:</strong></p>



<ul class="wp-block-list">
<li><strong>Neural Network Model:</strong> A neural network, often based on the Transformer architecture, is used to train the model. During pre-training, the model learns to predict the next token in a text sequence (masked or autoregressive) using supervised learning techniques.</li>



<li><strong>Masking:</strong> In models like BERT, a percentage of the tokens is masked, and the model learns to predict the masked tokens based on the surrounding context.</li>
</ul>



<p class="wp-block-paragraph"><strong>Optimization:</strong></p>



<ul class="wp-block-list">
<li><strong>Optimization Algorithms:</strong> Algorithms like Adam or LAMB are used to minimize the loss function, adjusting the neural network&#8217;s weights to improve prediction accuracy.</li>



<li><strong>Learning Rate Scheduling:</strong> The learning rate is varied during training to enhance the model&#8217;s convergence.</li>
</ul>



<h4 class="wp-block-heading"><strong>Advantages of Pre-Training:</strong></h4>



<ul class="wp-block-list">
<li><strong>General Language Understanding:</strong> Provides the model with a solid foundation to understand and generate text coherently and contextually.</li>



<li><strong>Reusability:</strong> Pre-trained models can be easily reused and adapted for specific tasks through fine-tuning, significantly reducing the time and resources needed compared to training from scratch.</li>



<li><strong>Efficiency:</strong> Allows for performant models with a generalist capability that can be subsequently refined for particular tasks, optimizing the use of computational resources.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example of Pre-Training:</strong>&nbsp;</p>



<p class="wp-block-paragraph">Imagine wanting to create a virtual assistant capable of answering general questions. During pre-training, the model is exposed to millions of articles and books on various topics. Through this process, the model learns linguistic structures and contextual relationships, becoming capable of understanding and generating text fluently. Once pre-training is complete, the model can be fine-tuned with a specific dataset, such as a company&#8217;s FAQs, to specialize in answering customer questions.</p>



<h2 class="wp-block-heading">Fine-Tuning</h2>



<p class="wp-block-paragraph">Fine-tuning is the process of additional training for a pre-trained large language model (LLM) to adapt it to a specific task or domain. This process allows the model&#8217;s capabilities to be refined using a targeted dataset, improving its accuracy and relevance for the desired activities.</p>



<h4 class="wp-block-heading"><strong>How Fine-Tuning Works:</strong></h4>



<ul class="wp-block-list">
<li><strong>Dataset Selection:</strong> Begin by selecting a dataset pertinent to the specific task. This dataset should represent the type of data the model will process after fine-tuning.</li>



<li><strong>Model Adaptation:</strong> The pre-trained model is further trained on this specific dataset. During this process, the model learns the peculiarities of the new domain, adjusting its parameters to optimize performance on the target task.</li>



<li><strong>Iteration and Evaluation:</strong> Fine-tuning is an iterative process. After each training cycle, the model is evaluated to check for improvements. The results are used to further refine the model through additional training iterations.</li>
</ul>



<h4 class="wp-block-heading"><strong>Advantages of Fine-Tuning:</strong></h4>



<ul class="wp-block-list">
<li><strong>Improved Performance:</strong> Fine-tuning allows the model to become highly specialized for a specific task, significantly improving its performance compared to a generic model.</li>



<li><strong>Data Efficiency:</strong> Using a targeted dataset, significant improvements can be achieved with a relatively small amount of data compared to training from scratch.</li>



<li><strong>Adaptability:</strong> Fine-tuning enables a general model to be adapted to specific contexts, greatly expanding its utility in practical applications. For example, a general language model can be fine-tuned to analyze medical texts, legal documents, or customer interactions in a business context.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example of Fine-Tuning Application:</strong> </p>



<p class="wp-block-paragraph">Imagine wanting to use an LLM to provide customer support in a software company. The pre-trained model can understand and generate general text, but it may not be sufficiently competent in answering specific questions about the company&#8217;s products. Through fine-tuning, the model is trained on a collection of documents related to the company&#8217;s products, user guides, and frequently asked questions (FAQs). <strong>After fine-tuning, the model will be able to provide more precise and relevant answers to customer questions, improving the efficiency and quality of customer service.</strong></p>



<p class="wp-block-paragraph"><strong>Fine-tuning is a powerful technique for specializing large language models, making them more effective for specific tasks and particular domains.</strong> Through an iterative training process on targeted datasets, it is possible to significantly improve the model&#8217;s performance, ensuring more accurate and relevant responses to user needs.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="903" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?resize=1024%2C903&#038;ssl=1" alt="" class="wp-image-3791" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?resize=1024%2C903&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?resize=300%2C264&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?resize=768%2C677&amp;ssl=1 768w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?resize=1225%2C1080&amp;ssl=1 1225w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/pre-training-e-fine-tuning-1.jpg?w=1284&amp;ssl=1 1284w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Source image: <a href="https://www.ai4business.it/intelligenza-artificiale/llm-come-istruirli-a-rispondere-su-nuovi-documenti/">AI4Business</a>&nbsp;</p>



<h2 class="wp-block-heading">Prompt Engineering</h2>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="800" height="562" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/12-prompt-engineering-techniques-1.jpg?resize=800%2C562&#038;ssl=1" alt="" class="wp-image-3792" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/12-prompt-engineering-techniques-1.jpg?w=800&amp;ssl=1 800w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/12-prompt-engineering-techniques-1.jpg?resize=300%2C211&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/07/12-prompt-engineering-techniques-1.jpg?resize=768%2C540&amp;ssl=1 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph">Source image: <a href="http://cobusgreyling.com">cobusgreyling.com</a></p>



<p class="wp-block-paragraph"><a href="https://en.wikipedia.org/wiki/Prompt_engineering">Prompt Engineering</a> is the practice of creating effective text inputs (prompts) to guide the responses of LLMs (Large Language Models). It is both an art and a science that requires a deep understanding of how language models work and the dynamics of text generation. The success of many applications based on LLMs depends on the quality of the prompts used, so there are fundamental principles to follow:</p>



<ul class="wp-block-list">
<li><strong>Clarity and Specificity:</strong> A good prompt must be clear and specific. The more detailed the prompt, the more accurate and relevant the LLM’s response will be. For example, instead of asking, &#8220;Tell me a story,&#8221; a more effective prompt would be, &#8220;Tell me a story about a knight who saves a princess from a dragon.&#8221;</li>



<li><strong>Adequate Context:</strong> Providing sufficient context helps the model better understand the task. Including background information or specifying the desired style and tone can improve the quality of the response.</li>



<li><strong>Prompt Examples:</strong> Including examples within the prompt can help the LLM better understand what is being sought. For instance, if a certain type of output is desired, examples of sentences or paragraphs that reflect the desired format can be included.</li>
</ul>



<p class="wp-block-paragraph">Creating effective prompts requires a clear understanding of the goal. Before writing a prompt, one must ask what they want to achieve with the model: are they looking for informative answers, creative stories, or critical analysis? Once the goal is clear, the prompt structure should guide the model toward the desired response. Using complete sentences, avoiding ambiguity, and including relevant details can make a significant difference in the quality of responses.</p>



<p class="wp-block-paragraph">There are various <a href="https://en.wikipedia.org/wiki/Prompt_engineering">prompt engineering</a> techniques:</p>



<ul class="wp-block-list">
<li><strong>Zero-Shot Prompting:</strong> This approach involves asking the LLM to complete a task without providing specific examples. For example, &#8220;Translate this text into French.&#8221;</li>



<li><strong>One-Shot Prompting:</strong> In this case, a single example of task completion is provided. For example, &#8220;Here is a translation example: &#8216;Hello&#8217; -&gt; &#8216;Bonjour.&#8217; Translate this text into French.&#8221;</li>



<li><strong>Few-Shot Prompting:</strong> Several examples of task completion are provided. For example, &#8220;Here are some translation examples: &#8216;Hello&#8217; -&gt; &#8216;Bonjour,&#8217; &#8216;Goodbye&#8217; -&gt; &#8216;Au revoir.&#8217; Translate this text into French.&#8221;</li>
</ul>



<p class="wp-block-paragraph">In the next article, we will delve into the technique of <strong>Retrieval-Augmented Generation (RAG)</strong>, exploring how to effectively integrate information retrieval capabilities with <strong>LLMs</strong> to improve the performance and quality of generated responses.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Author: Francesco Scalzo</p>
<p>L'articolo <a href="https://www.revelis.eu/en/large-language-models-llm/">Large Language Models (LLM)</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3789</post-id>	</item>
		<item>
		<title>Generative AI, what it is and what are the main tools</title>
		<link>https://www.revelis.eu/en/generative-ai-what-it-is-and-what-are-the-main-tools/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=generative-ai-what-it-is-and-what-are-the-main-tools</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Wed, 20 Mar 2024 10:00:24 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=3696</guid>

					<description><![CDATA[<p>When talking about Generative AI, what it is and what are the main tools to implement it in one&#8217;s own business are the first questions that naturally arise, considering how AI solutions are currently helping to improve many aspects within the realm of businesses. Generative artificial intelligence (Generative AI) represents a branch of artificial intelligence&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/generative-ai-what-it-is-and-what-are-the-main-tools/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/generative-ai-what-it-is-and-what-are-the-main-tools/">Generative AI, what it is and what are the main tools</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When talking about <strong>Generative AI</strong>, what it is and what are the main tools to implement it in one&#8217;s own business are the first questions that naturally arise, considering how <a href="https://www.revelis.eu/en/ai-solutions-heres-how-they-improve-your-business/">AI solutions</a> are currently helping to improve many aspects within the realm of businesses.</p>



<p class="wp-block-paragraph">Generative artificial intelligence (Generative AI) <strong>represents a branch of artificial intelligence that focuses on creating new content</strong>, such as text, images, music, and videos. Unlike traditional artificial intelligence systems that rely on predefined models, Generative AI learns from large amounts of data to create new and original content.</p>



<p class="wp-block-paragraph">We have already discussed the multiple potentials that <a href="https://www.revelis.eu/en/generative-ai-application-and-benefits-for-businesses/">generative AI </a>offers to businesses and how they can leverage them to gain competitive advantages in their business. In this article, however, we want to explain the general functioning of Generative AI and in which other fields it can find application.</p>



<p class="wp-block-paragraph"><strong>Imagine being able to write a complete article in seconds, or to create a realistic image of a non-existent animal.</strong> Generative AI makes all this possible and has the potential to revolutionize various sectors, from medicine to software design.</p>



<h2 class="wp-block-heading">Generative AI: what is it in terms of the learning process</h2>



<p class="wp-block-paragraph">Learning in generative artificial intelligence (Generative AI) mainly occurs through two phases:</p>



<ol class="wp-block-list">
<li><strong>Training</strong>:</li>
</ol>



<p class="wp-block-paragraph">Pre-processing phase: Raw data is cleaned, transformed, and normalized to be used by the machine learning algorithm.</p>



<p class="wp-block-paragraph"><strong>Model selection: </strong>The architecture and parameters of the machine learning model are selected based on the type of data and the desired objective.</p>



<p class="wp-block-paragraph"><strong>Training phase:</strong> The model is &#8220;trained&#8221; on a large dataset (the training set). The algorithm learns to recognize relationships and patterns among the data and to use them to generate new content.</p>



<p class="wp-block-paragraph"><strong>Validation phase:</strong> The model is tested on a validation dataset to evaluate its performance and its ability to generalize to new data.</p>



<ol class="wp-block-list" start="2">
<li><strong>Generation</strong>:</li>
</ol>



<p class="wp-block-paragraph"><strong>Inference phase:</strong> The model is used to generate new content. The algorithm uses the knowledge learned during the training phase to create new data similar to those in the training set.</p>



<p class="wp-block-paragraph"><strong>Post-processing phase: </strong>The generated content can be further processed and refined to improve its quality and coherence.</p>



<h2 class="wp-block-heading">Machine Learning Algorithms</h2>



<p class="wp-block-paragraph"><strong>Generative AI uses various types of machine learning algorithms</strong>, including:</p>



<ul class="wp-block-list">
<li>Supervised learning: The algorithm is trained on a dataset with examples of desired input and output;</li>



<li>Unsupervised learning: The algorithm learns from a dataset without examples of desired output;</li>



<li>Reinforcement learning: The algorithm learns to perform actions in a virtual environment and receives rewards or punishments based on the results obtained.</li>
</ul>



<h3 class="wp-block-heading">Deep Neural Networks</h3>



<p class="wp-block-paragraph">Generative AI primarily relies on deep neural networks, computational models designed to mimic the human brain, which need to be trained using large datasets to learn (even complex) patterns and provide accurate predictions.</p>



<p class="wp-block-paragraph"><strong>Neural networks consist of several layers of artificial neurons capable of processing information and learning complex relationships</strong> among data by evaluating the surrounding environment. Just as the human brain is tasked with understanding the environment and its changes by providing responses suitable to contingent needs, artificial neural networks use datasets to derive identifying traits.</p>



<p class="wp-block-paragraph">For those who want to delve deeper, I recommend this interesting article <a href="https://www.nvidia.com/en-us/glossary/generative-ai/">&#8220;What is Generative AI?&#8221; </a>available on the NVidia website.</p>



<h2 class="wp-block-heading">Generative AI: What it is in terms of types</h2>



<p class="wp-block-paragraph">Generative AI finds space in various fields, allowing the creation or modification of content of various kinds: from text generation to image and video generation to support for programming.</p>



<p class="wp-block-paragraph"><strong>Generative Text AI</strong></p>



<p class="wp-block-paragraph"><strong>Generative text AI focuses on creating new texts</strong>, such as articles, poems, emails, scripts, and can be used in various applications including:</p>



<p class="wp-block-paragraph"><strong>Content creation:</strong></p>



<ul class="wp-block-list">
<li><strong>Automatic writing of articles and blog posts: </strong>Text generators like Chat-GPT, Gemini, or Jasper can create complete articles and blog posts in seconds, providing only some basic information;</li>



<li><strong>Product description generation: </strong>Generative AI can be used to create accurate and informative product descriptions for e-commerce websites;</li>



<li><strong>Creating content for social media: </strong>Generative AI can create engaging and captivating social media posts.</li>
</ul>



<p class="wp-block-paragraph"><strong>Automatic translation:</strong> </p>



<ul class="wp-block-list">
<li>Generative AI can translate texts from one language to another accurately and fluently, overcoming the limitations of traditional automatic translation systems. Tools like DeepL and Google Translate use Generative AI to provide high-quality translations.</li>
</ul>



<p class="wp-block-paragraph"><strong>Text summarization:</strong> </p>



<ul class="wp-block-list">
<li>Generative AI can summarize long texts accurately and concisely, preserving the most important information.</li>
</ul>



<p class="wp-block-paragraph"><strong>Chatbots and virtual assistants: </strong></p>



<ul class="wp-block-list">
<li>Generative AI allows the creation of chatbots and virtual assistants capable of interacting with users in a natural and realistic way. The technology can respond to user questions, provide information and support, and complete simple tasks.</li>
</ul>



<h2 class="wp-block-heading">Generative Image AI: Painting with Technology</h2>



<p class="wp-block-paragraph">Generative image AI focuses on creating new and original images. <strong>Thanks to systems like Midjourney, Leonardo AI, DALL-E, or Adobe Firefly,</strong> it is possible to create new images and modify existing ones.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="1024" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/ai-immagine-1.jpg?resize=1024%2C1024&#038;ssl=1" alt="" class="wp-image-3697" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/ai-immagine-1.jpg?w=1024&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/ai-immagine-1.jpg?resize=300%2C300&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/ai-immagine-1.jpg?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/ai-immagine-1.jpg?resize=768%2C768&amp;ssl=1 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h3 class="wp-block-heading"><strong>Image Creation</strong></h3>



<ul class="wp-block-list">
<li>Generation of realistic images of people, animals, objects, and landscapes that do not actually exist;</li>



<li>Creation of characters, settings, and objects for use in video games;</li>



<li>Creation of more engaging and informative images for use on websites and e-commerce.</li>
</ul>



<h3 class="wp-block-heading"><strong>Image Editing</strong></h3>



<ul class="wp-block-list">
<li>Removal of unwanted objects from a photo;</li>



<li>Improvement of the quality of blurry or damaged images;</li>



<li>Colorization of black and white images.</li>
</ul>



<h2 class="wp-block-heading">Generative Video AI: Painting in Motion with Technology</h2>



<p class="wp-block-paragraph">Generative video AI focuses on creating new and original videos. Unlike traditional video editing systems that rely on manual editing, systems like Synthesia, HeyGen, NVIDIA Canvas, or the new Sora learn from large amounts of data to create realistic and fantastic videos. As with image generation, with generative video AI it is possible to create and modify videos.</p>



<h3 class="wp-block-heading"><strong>Video Creation</strong></h3>



<ul class="wp-block-list">
<li>Generation of realistic videos of people, animals, objects, and landscapes that do not actually exist.</li>



<li>Development of video games and therefore for the creation of characters, settings, and objects for video games;</li>



<li>Creation of videos for e-commerce and therefore of products for e-commerce websites, making it all more engaging and informative;</li>



<li>Generation of Avatars for the presentation of specific products or interaction with users in real-time;</li>



<li>Generative AI can be used to create realistic and fantastic special effects for movies and TV shows.</li>
</ul>



<figure class="wp-block-video aligncenter"><video controls src="https://cdn.openai.com/sora/videos/mitten-astronaut.mp4"></video></figure>



<p class="wp-block-paragraph">Source of video: <a href="https://cdn.openai.com/sora/videos/mitten-astronaut.mp4">cdn.openai.com</a></p>



<h3 class="wp-block-heading"><strong>Video Editing</strong></h3>



<ul class="wp-block-list">
<li>Removal of unwanted objects from a video;</li>



<li>Improvement of the quality of blurry or damaged videos;</li>



<li>Colorization of black and white videos.</li>
</ul>



<h2 class="wp-block-heading">Generative Artificial Intelligence in support of programming</h2>



<p class="wp-block-paragraph">Generative AI is opening new frontiers in the world of programming, offering tools and technologies capable of:</p>



<p class="wp-block-paragraph"><strong>Increasing productivity:</strong></p>



<ul class="wp-block-list">
<li><strong>Automatic code generation:</strong> Tools like Github Copilot and Cursor can automatically generate code based on text descriptions or existing code snippets;</li>



<li><strong>Automatic code completion:</strong> AI can suggest automatic completions for variables, functions, methods, and other code elements;</li>



<li><strong>Automatic error correction:</strong> AI can identify and correct syntax and logic errors in real-time.</li>
</ul>



<p class="wp-block-paragraph"><strong>Improving code quality:</strong></p>



<ul class="wp-block-list">
<li><strong>Code reformulation </strong>to make it more readable, efficient, and secure;</li>



<li><strong>Automatic refactoring: </strong>AI can help reorganize code to make it more modular and maintainable.</li>
</ul>



<p class="wp-block-paragraph"><strong>Promoting creativity:</strong></p>



<ul class="wp-block-list">
<li>Exploration of new solutions and approaches to programming problems;</li>



<li>Development of new algorithms and programming techniques;</li>



<li>Creation of innovative software: AI can help create innovative and never-before-seen software.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="900" height="541" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/copilot-1.jpg?resize=900%2C541&#038;ssl=1" alt="" class="wp-image-3698" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/copilot-1.jpg?w=900&amp;ssl=1 900w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/copilot-1.jpg?resize=300%2C180&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2024/03/copilot-1.jpg?resize=768%2C462&amp;ssl=1 768w" sizes="auto, (max-width: 900px) 100vw, 900px" /></figure>
</div>


<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">AI and Ethics: An In-depth Analysis</h2>



<p class="wp-block-paragraph">Artificial intelligence (AI) has brought enormous advances in various sectors, from medicine to finance. However, the rapid development of this technology has also raised several ethical issues that deserve in-depth analysis.</p>



<p class="wp-block-paragraph">Some of the main ethical concerns related to AI include:</p>



<ul class="wp-block-list">
<li><strong>Bias and discrimination:</strong></li>
</ul>



<p class="wp-block-paragraph"><strong>AI systems can reflect and amplify biases present in the data they have been trained on.</strong> This can lead to discrimination against certain categories of people, such as women, people of color, or people with disabilities.</p>



<p class="wp-block-paragraph"><strong>Example:</strong> An AI system used for hiring personnel might discriminate against women based on their gender or their name.</p>



<ul class="wp-block-list">
<li><strong>Transparency and interpretability:</strong></li>
</ul>



<p class="wp-block-paragraph"><strong>Decisions made by AI systems can be opaque and difficult to interpret. </strong>This can make it difficult to understand how an AI system made a particular decision and can hinder accountability in case of errors or harm.</p>



<p class="wp-block-paragraph"><strong>Example: </strong>An AI system used for medical diagnosis might provide an incorrect diagnosis without providing sufficient explanations as to why that diagnosis was reached.</p>



<ul class="wp-block-list">
<li><strong>Privacy and security:</strong></li>
</ul>



<p class="wp-block-paragraph">AI systems can collect and analyze large amounts of personal data, raising concerns about the privacy and security of such data.</p>



<p class="wp-block-paragraph"><strong>Example:</strong> An AI system used for facial recognition might collect biometric data without the consent of the individuals.</p>



<ul class="wp-block-list">
<li><strong>Impact on jobs:</strong></li>
</ul>



<p class="wp-block-paragraph">The automation of repetitive tasks by AI systems could lead to job losses in some sectors.</p>



<p class="wp-block-paragraph"><strong>Example:</strong> The use of automated robots in factories could lead to the dismissal of manual workers.</p>



<p class="wp-block-paragraph"><strong>Addressing these ethical issues is crucial for the responsible and sustainable development of AI.</strong> It is important to establish clear ethical principles to guide the development and use of AI. These principles should include non-discrimination, transparency, accountability, privacy, and security.</p>



<p class="wp-block-paragraph">The responsible development of AI requires a commitment from all stakeholders, including researchers, developers, companies, governments, and citizens. Only by working together can we ensure that AI is used for good rather than for harm.</p>



<p class="wp-block-paragraph">A recent news (March 13, 2024) published by <a href="https://www.wired.it/article/ai-act-approvato-parlamento-europeo/">Wired</a> is the approval by the European Commission of the final text of the AI Act (Artificial Intelligence Act), which guarantees safety and respect for fundamental rights and promotes innovation.</p>



<p class="wp-block-paragraph"><strong>The main objectives of the AI Act are:</strong></p>



<ul class="wp-block-list">
<li>Classification of artificial intelligence applications based on risk;</li>



<li>Definition of categories of high-risk artificial intelligence systems;</li>



<li>Introduction of bans on some artificial intelligence applications;</li>



<li>Protecting citizens from risks arising from artificial intelligence;</li>



<li>Stimulating innovation in this sector;</li>



<li>Promoting a global regulatory framework for artificial intelligence that ensures the safety and transparency of artificial intelligence systems.</li>
</ul>



<p class="wp-block-paragraph">Thanks to the implementation of this regulation, <strong>artificial intelligence systems will be subject to checks by the competent national authorities</strong>, while the European Commission will have the power to supervise and coordinate the implementation of the AI Act.</p>



<p class="wp-block-paragraph">Finally, expert committees will be established to provide technical advice to national authorities and the European Commission.</p>



<p class="wp-block-paragraph">More information and the <a href="https://www.europarl.europa.eu/doceo/document/A-9-2023-0188-AM-808-808_IT.pdf">approved text</a> can be found <a href="https://www.europarl.europa.eu/news/it/press-room/20240308IPR19015/il-parlamento-europeo-approva-la-legge-sull-intelligenza-artificiale">here</a>.</p>



<h2 class="wp-block-heading">Conclusions</h2>



<p class="wp-block-paragraph">Generative Artificial Intelligence (Generative AI) represents a promising branch of artificial intelligence with disruptive potential in various sectors, with the potential to transform our way of living and working by improving our lives in many ways.</p>



<p class="wp-block-paragraph">However, it is important to be aware of the challenges and work together to develop and use this technology responsibly and sustainably, maximizing benefits and minimizing risks.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Author: Francesco Scalzo</strong></p>
<p>L'articolo <a href="https://www.revelis.eu/en/generative-ai-what-it-is-and-what-are-the-main-tools/">Generative AI, what it is and what are the main tools</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		<enclosure url="https://cdn.openai.com/sora/videos/mitten-astronaut.mp4" length="54498572" type="video/mp4" />

		<post-id xmlns="com-wordpress:feed-additions:1">3696</post-id>	</item>
		<item>
		<title>Artificial Intelligence: applications against COVID-19</title>
		<link>https://www.revelis.eu/en/artificial-intelligence-applications-against-covid-19/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=artificial-intelligence-applications-against-covid-19</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Wed, 29 Apr 2020 09:58:36 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=1392</guid>

					<description><![CDATA[<p>Artificial Intelligence is a tool which can be used in a variety of industry sectors to optimize processes, but also for monitoring and to gather useful data to predict outcomes. In these hard days caused by the epidemic outbreak, AI is providing substantial help to the Health sector to effectively fight COVID-19 and the workload&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/artificial-intelligence-applications-against-covid-19/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/artificial-intelligence-applications-against-covid-19/">Artificial Intelligence: applications against COVID-19</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Artificial Intelligence </strong>is a tool which can be used in a variety of industry sectors to optimize processes, but also for monitoring and to gather useful data to predict outcomes. In these hard days caused by the epidemic outbreak, AI is providing substantial help to the Health sector to effectively fight <strong>COVID-19</strong> and the workload that health facilities have to take on.</p>



<h2 class="wp-block-heading"><strong>The role of Revelis</strong></h2>



<p class="wp-block-paragraph">As stated in the past weeks,&nbsp;Revelis has formed an internal task-force to contribute to the development of <strong>Artificial Intelligence solutions against the COVID-19 outbreak.</strong> This is a joint work with researchers from the Italian Research Council ICAR-CNR(CS).</p>



<p class="wp-block-paragraph">In this blog post, we want to show you a <strong>model to forecast new daily confirmed cases and ICU workload in Italy.</strong></p>



<p class="wp-block-paragraph">Our work takes inspiration from the <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3551626">paper by Arianna Agosto and Paolo Giudici</a>, where a model for financial contagion is adapted <strong>to predict the daily new cases caused by COVID-19.</strong></p>



<p class="wp-block-paragraph">It is possible to summarize our contribution in two main points:</p>



<ul class="wp-block-list"><li>providing a novel mathematical formulation.</li><li>taking into account containment measures.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1515" height="852" src="https://i2.wp.com/www.revelis.eu/wp-content/uploads/2020/04/artificial-intelligence-and-covid-19.jpg?fit=1024%2C576&amp;ssl=1" alt="artificial intelligence and covid-19" class="wp-image-1204" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2020/04/artificial-intelligence-and-covid-19.jpg?w=1515&amp;ssl=1 1515w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2020/04/artificial-intelligence-and-covid-19.jpg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2020/04/artificial-intelligence-and-covid-19.jpg?resize=1024%2C576&amp;ssl=1 1024w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2020/04/artificial-intelligence-and-covid-19.jpg?resize=768%2C432&amp;ssl=1 768w" sizes="auto, (max-width: 1515px) 100vw, 1515px" /></figure>



<h2 class="wp-block-heading">The <strong>Model</strong></h2>



<p class="wp-block-paragraph">The model is a variant of the well-known Poisson Auto Regressive Model; we assume a Poisson distribution for the target variable and its intensity is estimated through a log-linear model containing:</p>



<ul class="wp-block-list"><li>target variable values in the previous <em>k</em> days,</li><li>containment measures in the previous <em>k</em> days,</li><li>an estimate of the Poisson parameter form at the time instant <em>t-k</em>..</li></ul>



<p class="wp-block-paragraph">The model has been trained on <a href="https://github.com/pcm-dpc/COVID-19/blob/master/dati-andamento-nazionale/dpc-covid19-ita-andamento-nazionale.csv">official data</a> from <a href="http://www.protezionecivile.gov.it/">Italian Civil Protection</a> from 24th of February until 8th of April. Prior to modelling, we have transformed the target variable using moving average of 3 days.</p>



<h2 class="wp-block-heading"><strong>Outcomes</strong></h2>



<p class="wp-block-paragraph">As time goes by, performances are subjected to deterioration and, for this reason, the model has been updated many times. The following models have been trained before:</p>



<ul class="wp-block-list"><li>a first model using data until the 9th of April</li><li>a second model using data until the 16th of April</li></ul>



<p class="wp-block-paragraph">For readiness purposes, only the last model trained using data until the 25th of April is shown. After breaking down the moving average values into point estimates for each day, the results are listed in the following table:</p>



<figure class="wp-block-table"><table><tbody><tr><td>Date</td><td>Prediction</td><td>Real value</td><td>Error</td></tr><tr><td>2020-04-26</td><td>1989</td><td>2009</td><td>20</td></tr><tr><td>2020-04-27</td><td>1918</td><td>1956</td><td>38</td></tr><tr><td>2020-04-28</td><td>1856</td><td>1795</td><td>37</td></tr><tr><td>2020-04-29</td><td>1758</td><td>1956</td><td>38</td></tr><tr><td>2020-04-30</td><td>1693</td><td>1694</td><td>1</td></tr><tr><td>2020-05-01</td><td>1640</td><td>1578</td><td>-62</td></tr><tr><td>2020-05-02</td><td>1551</td><td>1539</td><td>-12</td></tr><tr><td>2020-05-03</td><td>1492</td><td>1501</td><td>9</td></tr><tr><td>2020-05-04</td><td>1448</td><td>1479</td><td>31</td></tr><tr><td>2020-05-05</td><td>1368</td><td>1427</td><td>59</td></tr><tr><td>2020-05-06</td><td>1318</td><td>1333</td><td>15</td></tr><tr><td>2020-05-07</td><td>1280</td><td>1311</td><td>31</td></tr><tr><td>2020-05-08</td><td>1206</td><td>1168</td><td>-38</td></tr><tr><td>2020-05-09</td><td>1165</td><td>1034</td><td>-131</td></tr><tr><td>2020-05-10</td><td>1130</td><td>1027</td><td>-103</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">On a medium-term perspective, we predict that after the second week of May ICU workload will reach a value around 1k. Unfortunately, as you can observe in figure that follows, confidence intervals blows up at that time and therefore it’s risky for policy-makers to rely on these predictions.</p>



<p class="wp-block-paragraph"><div id="highcharts-o6-iboqTM"><script src="https://app.everviz.com/inject/o6-iboqTM/" defer="defer"></script></div></p>



<h2 class="wp-block-heading"><strong>Conclusions</strong></h2>



<p class="wp-block-paragraph">Long-term predictions are not enough reliable because of the confidence interval width, this might have been expected because Poisson distribution has a variance equal to its expected value and, as times goes, uncertainty sums up. However, it is reasonable to use this model to perform a short-term forecasting and to get a rough idea of when containment measures will reach their maximum efficacy. It is crucial to say that this work has not been peer-reviewed and it has limits given by the official data reliability.</p>
<p>L'articolo <a href="https://www.revelis.eu/en/artificial-intelligence-applications-against-covid-19/">Artificial Intelligence: applications against COVID-19</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1392</post-id>	</item>
		<item>
		<title>Artificial Intelligence against COVID-19</title>
		<link>https://www.revelis.eu/en/artificial-intelligence-against-covid19/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=artificial-intelligence-against-covid19</link>
		
		<dc:creator><![CDATA[Francesco Scalzo]]></dc:creator>
		<pubDate>Wed, 25 Mar 2020 10:42:51 +0000</pubDate>
				<category><![CDATA[Senza categoria]]></category>
		<guid isPermaLink="false">https://www.revelis.eu/?p=1396</guid>

					<description><![CDATA[<p>Artificial Intelligence and Big Data Analytics are useful to analyze and predict the impact of the COVID-19 virus. The whole world is paying a high price both in terms of human lifes and social distancing needed to slow the epidemic peak. In this scenario public institutions, companies and independent researchers are involved in the fight&#8230; <br /> <a class="read-more" href="https://www.revelis.eu/en/artificial-intelligence-against-covid19/">Read more</a></p>
<p>L'articolo <a href="https://www.revelis.eu/en/artificial-intelligence-against-covid19/">Artificial Intelligence against COVID-19</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Artificial Intelligence and <a href="https://www.revelis.eu/en/big-data-analytics-en/">Big Data Analytics</a> are useful to analyze and predict the impact of the COVID-19 virus. </p>



<p class="wp-block-paragraph">The whole world is paying a high price both in terms of human lifes and social distancing needed to slow the epidemic peak. In this scenario public institutions, companies and independent researchers are involved in the fight against COVID-19. There are many research lines, so that the White House launched an open call through a <a href="https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge">Kaggle Challenge</a> trying to get some meaningful results.</p>



<p class="wp-block-paragraph">Revelis couldn’t stand aside and that’s why an internal task-force was created for this goal. Computer Scientists, Data Scientists and Researchers are working hard to achieve tangible outcomes using Big Data Analysis techniques. This activity involves also some researchers from ICAR-CNR.</p>



<p class="wp-block-paragraph">One of the initial tasks of this task force was to analyze the state-of-the-art, open-data and everything that could be used for <strong>Artificial Intelligence</strong> solutions against the virus.</p>



<p class="wp-block-paragraph">We decided to share this list of useful resources in order to allow everyone to benefit for their own project against COVID-19. This list is not exhausting and that’s why we kindly invite you to contact us in order to further expand it, writing an e-mail to <a href="mailto:info@revelis.eu">info@revelis.eu</a></p>



<p class="wp-block-paragraph">Resources are classified into five different categories (“Dataset”, “Research Papers”, “Dashboard”, “Tutorial” and “Others”), to allow an easier navigation.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="700" height="499" src="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2021/03/artificial-intelligence-covid19-1.jpg?resize=700%2C499&#038;ssl=1" alt="artificial intelligence covid19" class="wp-image-2572" srcset="https://i0.wp.com/www.revelis.eu/wp-content/uploads/2021/03/artificial-intelligence-covid19-1.jpg?w=700&amp;ssl=1 700w, https://i0.wp.com/www.revelis.eu/wp-content/uploads/2021/03/artificial-intelligence-covid19-1.jpg?resize=300%2C214&amp;ssl=1 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<h2 class="wp-block-heading">Dataset</h2>



<p class="wp-block-paragraph">A good Artificial Intelligence Solution needs a dataset that is at the same time big enough and of a good quality. We have collected different kind of data going from time series to images and text.</p>



<h3 class="wp-block-heading"><strong>Worldwide epidemic time series</strong></h3>



<p class="wp-block-paragraph">At the <a href="https://data.humdata.org/dataset/novel-coronavirus-2019-ncov-cases">Humanitarian Data Exchange site</a> you can find open data about <em>Confirmed</em>, <em>Deaths</em> and <em>Recovered</em> cases all over the World, starting from 01/22/2020. Data are daily updated and contain informations about each Nation and, eventually, for Province.</p>



<p class="wp-block-paragraph">In these days many scientists, like Prof. Ioannidis from Stanford University, are arguing that we need better information to guide decisions. Because of that we are adding other data sources to the list to provide a broad spectrum of choices. You can obtain worldwide time series also from <a href="https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series">Johns Hopkins</a>, from the <a href="https://www.ecdc.europa.eu/en/publications-data/download-todays-data-geographic-distribution-covid-19-cases-worldwide">European Centre for Diseases Prevention and Control</a> where you can also find a short tutorial to upload data into an R environment and the R Package <a href="https://github.com/GuangchuangYu/nCov2019">nCov2019</a> that allows you to have historical data and other functionalities.</p>



<h3 class="wp-block-heading"><strong>Italy epidemic time series</strong></h3>



<p class="wp-block-paragraph"><a href="https://github.com/pcm-dpc/COVID-19">Official data about COVID-19 in Italy </a>are made available the Italian Civil Protection. Beyond <em>confirmed, deaths and recovered, </em>you can retrieve info about the number of <em>hospitalized individuals</em>, the number of <em>people in ICU</em> and others.</p>



<h3 class="wp-block-heading"><strong>Radiological Images</strong></h3>



<p class="wp-block-paragraph">COVID-19 diagnosis using Deep Learning is an hot topic. The following is a list of websites where it is possible to find this kind of data: </p>



<ul class="wp-block-list"><li><a href="https://www.kaggle.com/nih-chest-xrays/data">X-Rays images of ~30k unique patients having pulmonary diseases</a></li><li><a href="https://www.kaggle.com/andrewmvd/pediatric-pneumonia-chest-xray">X-Rays images of pneumonia affected pediatric patients</a></li><li><a href="https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia">X-Rays images of pneumonia affected patients</a></li><li><a href="https://github.com/ieee8023/covid-chestxray-dataset">X-Rays images of COVID and normal patients</a></li><li><a href="https://www.sirm.org/category/senza-categoria/covid-19/">X-Rays and CT scan images</a></li><li><a href="https://radiopaedia.org/search?lang=us&amp;q=pneumonia&amp;scope=cases">X-Rays and CT scan images of patients affected by different kind of pneumonias (including COVID)</a></li></ul>



<h3 class="wp-block-heading"><strong>Textual data</strong></h3>



<p class="wp-block-paragraph">The White House released a dataset consisting of <a href="https://pages.semanticscholar.org/coronavirus-research">29,000 research papers related to COVID-19</a>. The goal is to find meaningful answers to various questions such as risk factors, virus genetics and many others.</p>



<h3 class="wp-block-heading"><strong>Demographic data</strong></h3>



<p class="wp-block-paragraph">Geo-spatial data are sometimes used in the context of epidemiological studies.  <a href="https://data.humdata.org/dataset/italy-high-resolution-population-density-maps-demographic-estimates">Italian demographic data</a> are available with a high geographical density.</p>



<h3 class="wp-block-heading"><strong>Social</strong> Networks Data</h3>



<p class="wp-block-paragraph">Online Social Networks Sites are a data source with daily tons of news shared by common people, public institutions and newspapers. The <a href="https://apps.crowdtangle.com/covid19/boards/covid-19italy">crowtangle</a> website allows to monitor the Facebook Pages activity related to COVID-19 in Italy.</p>



<h3 class="wp-block-heading"><strong>Flight connection data</strong></h3>



<p class="wp-block-paragraph">The virus transmission analysis requires to identify the connections between different areas in the whole world.&nbsp; Some researchers are working on worldwide flights to better understand how the virus shifted from China to the World. All <a href="https://github.com/DmitrySerg/COVID-19/tree/master/data">the worldwide connections between airports</a> with an estimate of the average trips between them are available online.</p>



<h3 class="wp-block-heading"><strong>Previous epidemics data</strong></h3>



<p class="wp-block-paragraph">There is a research line that tries to understand COVID-19 trying to compare it with previous epidemics. Here you can find links to data related to:</p>



<ul class="wp-block-list"><li><a href="https://www.kaggle.com/cdc/zika-virus-epidemic">Zika</a> outbreak</li><li><a href="https://www.kaggle.com/de5d5fe61fcaa6ad7a66/pandemic-2009-h1n1-swine-flu-influenza-a-dataset">H1N1</a> outbreak</li><li><a href="https://www.kaggle.com/kingburrito666/ebola-cases">Ebola</a> outbreak</li><li><a href="https://www.kaggle.com/nattay/who-sars-cumulative-reported-cases">SARS </a>outbreak</li></ul>



<h3 class="wp-block-heading"><strong>Data from Korea</strong></h3>



<p class="wp-block-paragraph">Korean Ministry of Health and Welfare built a web-platform to make available official data coming from South Korea. You won’t be allowed to download data locally, but you will have at disposal a cloud computing platform to submit your applications. </p>



<h3 class="wp-block-heading"><strong>Ultrasound data</strong></h3>



<p class="wp-block-paragraph">Italian researchers from University of Turin are currently developing an <a href="https://www.disi.unitn.it/iclus">AI system for the automatic diagnosis of COVID-19 pneumonia from ultrasound images</a>. The database is available upon request.</p>



<h3 class="wp-block-heading"><strong>Data from UK government</strong></h3>



<p class="wp-block-paragraph">From the official website of the UK government, it is possible to retrieve information about the number of hospitalized individuals, the daily new cases, the cumulative confirmed cases and deaths. <a href="https://www.gov.uk/government/collections/slides-and-datasets-to-accompany-coronavirus-press-conferences">Data</a> are recorded at a province level.</p>



<h3 class="wp-block-heading"><strong>Data from CDC (US)</strong></h3>



<p class="wp-block-paragraph">CDC has launched a public surveillance on US Covid activity through a <a href="https://gis.cdc.gov/grasp/COVIDNet/COVID19_3.html">weekly report</a> of hospitalized individuals, emergency department visits and other info. It is also possible to obtain daily data on deaths and cases from this <a href="https://www.cdc.gov/coronavirus/2019-ncov/cases-updates/index.html">page</a>.</p>



<h3 class="wp-block-heading"><strong>Mobility Data from Apple</strong></h3>



<p class="wp-block-paragraph">Apple is publishing daily reports on the request for directions in Apple Maps for the whole world. This could be a good proxy for actual mobility. It is possible to observe data through dashboards or download the raw version at this <a href="https://www.apple.com/covid19/mobility">link</a>.</p>



<h3 class="wp-block-heading"><strong>Data from Clinical Studies</strong></h3>



<p class="wp-block-paragraph">The Operation Research and Analytics Lab from MIT has started a project related to Covid-19 analytics. Among their contributions, we need to remark <a href="http://www.covidanalytics.io/dataset">the collection of datasets from various clinical studies</a>.</p>



<h2 class="wp-block-heading"><strong>Research Papers</strong></h2>



<p class="wp-block-paragraph">Many research papers have been written in the last weeks, confirming that researchers are making their best effort to provide a substantial progress in the fight against COVID. These works can be an important guide and that’s why we want to include some papers that we consider as relevant.</p>



<h3 class="wp-block-heading"><strong>Deep Learning applied to CT scan images</strong></h3>



<p class="wp-block-paragraph">Chinese researchers have used about 5,000 CT scan chest images to detect infectedCOVID-19 patients with a high accuracy. The paper “<a href="https://pubs.rsna.org/doi/10.1148/radiol.2020200905">Artificial Intelligence Distinguishes COVID-19 from Community Acquired Pneumonia on Chest CT</a>” describes the use of Convolutional Neural Networks to extract meaningful features from images to classify a pneumonia either from COVID or not.</p>



<h3 class="wp-block-heading"><strong>Poisson Autoregressive forecasting</strong> <strong>model</strong></h3>



<p class="wp-block-paragraph">Trend prediction is a relevant information for decision-makers. An approach to Covid-19 trend analysis is described by <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3551626">Arianna Agosto and Paolo Giudici</a>.</p>



<h3 class="wp-block-heading"><strong>Non-Pharmaceutical Interventions (NPI)</strong> <strong>Epidemic model</strong></h3>



<p class="wp-block-paragraph">During Covid-19 epidemic emergency many governments decided to take drastic actions such as school closures and social distancing. Ferguson et. Al. made a <a href="https://www.imperial.ac.uk/media/imperial-college/medicine/sph/ide/gida-fellowships/Imperial-College-COVID19-NPI-modelling-16-03-2020.pdf">study of the efficacy of this kind of measures</a>.</p>



<h3 class="wp-block-heading"><strong>Case-Fatality-Rate</strong> <strong>unreported cases estimation</strong></h3>



<p class="wp-block-paragraph">An open discussion is the one about data reliability. It is not always possible to screen all the population and, in this <a href="https://cmmid.github.io/topics/covid19/">paper</a>, a methodology to estimate the unreported cases is set out.</p>



<h3 class="wp-block-heading"><strong>Deep Learning for Scientific Discovery</strong></h3>



<p class="wp-block-paragraph">Researchers are trying to figure out solutions to a variety of problems related to COVID-19. Deep Learning algorithms are able to catch non-linear relationships between data and that’s why it is used in many different application. This <a href="https://arxiv.org/pdf/2003.11755.pdf">paper</a> is a Deep Learning survey that contains: a high-level explanation of Deep Learning theoretical concepts, a diverse set of Deep Learning techniques for different data modalities, a set of methods to improve performances when you have less data (semi-supervised methods), model interpretability techniques and tutorials on how to implement a complete Deep Learning pipeline.</p>



<h3 class="wp-block-heading"><strong>Overview on recent AI solutions to Covid19</strong></h3>



<p class="wp-block-paragraph">The epidemic outbreak have stimulated a lot of people to work towards providing new insights about the virus using Artificial Intelligence. This <a href="https://arxiv.org/pdf/2003.11336.pdf">paper</a> highlights many studies regarding molecular, medical and epidemiological applications giving also hints for future research on the subject.</p>



<h3 class="wp-block-heading"><strong>Monitoring COVID contagion growth</strong></h3>



<p class="wp-block-paragraph">The EU Think-Tank CEPS is producing <a href="https://www.ceps.eu/wp-content/uploads/2020/03/Monitoring_Covid_19_contagion_growth_in_Europe.pdf">reports</a>, which are regularly updated, about the COVID-19 contagion. Two of their contributors are Arianna Agosto and Paolo Giudici, authors of the model we used as base to develop our own.&nbsp;</p>



<h3 class="wp-block-heading"><strong>Infections and NPI assessment in 11 European countries</strong></h3>



<p class="wp-block-paragraph">In this <a href="https://www.imperial.ac.uk/media/imperial-college/medicine/sph/ide/gida-fellowships/Imperial-College-COVID19-Europe-estimates-and-NPI-impact-30-03-2020.pdf">study</a>, researchers from Imperial College provides estimates about the true number of infectious, the reproduction number and the impact of Non-Pharmaceutical-Interventions.&nbsp;</p>



<h2 class="wp-block-heading"><strong>Dashboard</strong></h2>



<p class="wp-block-paragraph">Dashboards are visual tools useful to represent complex information in a concise and dynamic way, with the aim to understand the epidemic outbreak in a short time.</p>



<h3 class="wp-block-heading"><strong>Italian Civil Protection</strong> <strong>Dashboard</strong></h3>



<p class="wp-block-paragraph"><a href="http://opendatadpc.maps.arcgis.com/apps/opsdashboard/index.html#/dae18c330e8e4093bb090ab0aa2b4892">COVID-19 diffusion data</a> are available by a dashboard from <strong>Italian Civil Protection</strong>.</p>



<h3 class="wp-block-heading"><strong>Real-time epidemic simulation</strong></h3>



<p class="wp-block-paragraph">Online you can find an <a href="https://alhill.shinyapps.io/COVID19seir/">epidemic simulation dashboard</a>, where is possible to evaluate the virus diffusion by setting different parameters. </p>



<h3 class="wp-block-heading"><strong>Epidemic Modelling for US</strong></h3>



<p class="wp-block-paragraph">Researchers from Northeastern University, University of Florida and other institutions used a spatio-temporal epidemic model to estimate the number of deaths and infections in US. It is possible to observe their prediction at this <a href="https://www.gleamproject.org/covid-19#model">link</a>, in a single-page there are dashboards with both predictions and a “what-if” scenario analysis that simulates the contagion growth without containment measures.</p>



<h3 class="wp-block-heading"><strong>Community mobility report from Google</strong></h3>



<p class="wp-block-paragraph">Google decided to open-source their estimation of mobility in the World. You can <a href="https://www.google.com/covid19/mobility/">find data</a> about mobility in parks, transit stations and so on. The spatial-granularity is national and it becomes regional for wide areas.</p>



<h3 class="wp-block-heading"><strong>Epidemic Projections by MIT&nbsp;</strong></h3>



<p class="wp-block-paragraph">MIT researchers employed a novel SEIR model, explained in the details at this <a href="https://github.com/COVIDAnalytics/DELPHI/blob/master/DELPHI_Explainer.pdf">link</a>, to predict several quantities such as Deaths, Hospitalized Individuals and Confirmed Cases. <a href="http://www.covidanalytics.io/projections">Projections are available at a State level</a>.</p>



<h2 class="wp-block-heading"><strong>Tutorial</strong>s</h2>



<p class="wp-block-paragraph">Tutorials describes are practical applications of Artificial Intelligence tools.</p>



<h3 class="wp-block-heading">Deep Learning for X-Ray analysis <strong>tutorial</strong></h3>



<p class="wp-block-paragraph">You can learn how to <a href="https://www.pyimagesearch.com/2020/03/16/detecting-covid-19-in-x-ray-images-with-keras-tensorflow-and-deep-learning/">diagnose the COVID-19 by using Convolutional Neural Networks </a>with Python and TensorFlow.</p>



<h3 class="wp-block-heading">Epidemic models with R <strong>tutorial</strong></h3>



<p class="wp-block-paragraph">This <a href="https://rviews.rstudio.com/2020/03/19/simulating-covid-19-interventions-with-r/">RMarkdown</a> is useful to learn epidemic models by using R.</p>



<h3 class="wp-block-heading"><strong>SEIR Modelling using R</strong></h3>



<p class="wp-block-paragraph">In this <a href="https://www.r-bloggers.com/simulating-coronavirus-outbreak-in-city-with-origin-destination-matrix-and-seir-model/">tutorial</a>, it is possible to find how to exploit a SEIR model taking into consideration the spatial dimension using an origin-destination matrix. In this case, the analysis is focused on the Greater Tokyo Area.</p>



<h2 class="wp-block-heading"><strong>Resources</strong></h2>



<p class="wp-block-paragraph">In the following you can find resources that could not be classified in previous categories.</p>



<h3 class="wp-block-heading">R Package for time series</h3>



<p class="wp-block-paragraph">The <a href="https://cran.r-project.org/web/packages/tscount/index.html"><em>tscount</em></a> package is useful for time-series analysis with counters. </p>



<h3 class="wp-block-heading"><strong>BERT-related resources</strong></h3>



<p class="wp-block-paragraph">BERT is a deep neural network used in various Natural Language Processing tasks to achieve state-of-the-art results. In this <a href="https://github.com/tomohideshibata/BERT-related-papers">Github repository</a>, you can find various resources such as pre-trained architectures and research papers about different NLP solutions using BERT.</p>



<h3 class="wp-block-heading"><strong>Research papers with code</strong></h3>



<p class="wp-block-paragraph">It happens quite a few times that you discover an interesting paper but you don’t have time to implement from scratch the software. At this <a href="https://paperswithcode.com">website</a>, you can find a collection of papers with the associated code.</p>



<h3 class="wp-block-heading">Data <strong>aggregators</strong></h3>



<p class="wp-block-paragraph">Many organizations are sharing resources on-line. You can find other AU resources at the following links:</p>



<ul class="wp-block-list"><li><a href="http://open-source-covid-19.weileizeng.com/world">Open-Source-COVID-19</a></li><li><a href="https://app.dimensions.ai/discover/publication?search_text=%222019-nCoV%22%20OR%20%22COVID-19%22%20OR%20%E2%80%9CSARS-CoV-2%E2%80%9D%20OR%20%22HCoV-2019%22%20OR%20%22hcov%22%20OR%20%22NCOVID-19%22%20OR%20%20%22severe%20acute%20respiratory%20syndrome%20coronavirus%202%22%20OR%20%22severe%20acute%20respiratory%20syndrome%20corona%20virus%202%22%20OR%20((%22coronavirus%22%20%20OR%20%22corona%20virus%22)%20AND%20(Wuhan%20OR%20China%20OR%20novel))&amp;search_type=kws&amp;search_field=full_search&amp;and_facet_year=2020">Dimensions.ai dataset</a></li><li><a href="https://towardsdatascience.com/top-5-r-resources-on-covid-19-coronavirus-1d4c8df6d85f">Towards Data Science</a></li><li><a href="https://github.com/soroushchehresa/awesome-coronavirus">https://github.com/soroushchehresa/awesome-coronavirus</a></li></ul>



<p class="has-text-align-right wp-block-paragraph"><em>Last update: 2021/05/1</em>8</p>
<p>L'articolo <a href="https://www.revelis.eu/en/artificial-intelligence-against-covid19/">Artificial Intelligence against COVID-19</a> proviene da <a href="https://www.revelis.eu/en/homepage">Revelis</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1396</post-id>	</item>
	</channel>
</rss>
