Alessandro Secchi

Baden, Switzerland - Bormio, Italy ยท asecchi@ethz.ch

On a mission to discover the beauty of life and to accelerate this unprecedented energy transition towards the singularity.

"Everything is energy, and that's all there is to it. Match the frequency of the reality you want, and you cannot help but get that reality."

This website aims to be a personal experiment where I'll endeavor to collect my thoughts, reflections, experiences, and passions in a diary-style format ๐Ÿ“”.


Thoughts..

Energy

A Data-Driven Analysis of Renewable Integration Challenges (07.2025)


It is clear to me that AI is most useful when combined with solid domain knowledge. This principle inspired my data science project created with Claude MCPs and Cursor (GitHub repo). It is an experiment to analyze the Italian electricity market and predicts energy prices, demand, and renewable energy generation from 2015-2029.

The main question is:

How will the relationship between energy demand and renewable energy supply evolve in Italy's energy market over the next 5 years, and what are the implications for energy investment planning and grid management?

Key Findings ๐Ÿ“‰

The final results reveal that "business as usual" won't achieve increasing RES coverage. Without a functional capacity market, policy intervention, or accelerated deployment, RES coverage might stagnate or decline relative to growing demand. Seasonal mismatches persist, highlighting the critical importance of storage technologies and demand response mechanisms.

The projection showing RES plateauing at ~35% while prices stabilize at 150-160 EUR/MWh could reflect economic reality:

  • Price Floor Needed: Investors require price certainty to continue building renewables.
  • Gas Plants Still Required: Italy needs gas capacity for non-renewable periods, and these plants need higher prices during operating hours to remain viable.
  • Grid Stability Costs: As RES increases, system costs for balancing and reserves rise.


The sharp drop in 2022 can be explained by the perfect storm of the European energy crisis:

  • COVID aftershocks: Delayed renewable project completions due to supply chain disruptions.
  • Geopolitical crisis: The Russia-Ukraine war and pipeline disruptions made gas-fired backup generation extremely expensive.
  • Nuclear shortfall: France's major nuclear maintenance issues reduced baseload capacity.
  • Capacity gap: Many backup fossil plants had been decommissioned.

The result? Renewable generation couldn't scale up quickly enough to meet demand during unusual low wind and solar conditions across Europe.

The RES-Price Paradox

The data reveals an intriguing inverse correlation: as RES coverage increased from ~28% (2022) to ~38% (2024), prices dropped from ~300 to ~110 EUR/MWh. This reflects Italy's market dynamics:

"When renewable energy sources exceed 40% of total production...the price is no longer set by the cost of gas-based thermoelectric plants, but by the unit costโ€”close to zeroโ€”of renewable energy" (PricePedia)

Here's the paradox: while high RES penetration drives prices down (benefiting consumers), it creates investment uncertainty:

  1. Merit Order Effect: Renewables push expensive gas plants out of the market, collapsing prices.
  2. Revenue Uncertainty: Solar/wind investors face "cannibalization"โ€”their success destroys revenue streams.
  3. "Missing Money" Problem: Low average prices make financing new renewable projects harder.
Market Design Solutions in Progress

Italy is addressing these challenges through:

  1. Capacity Markets: Paying for availability, not just energy produced.
  2. Storage Incentives: โ‚ฌ4.8 billion committed in 2023 alone for large-scale battery projects. ๐Ÿ”‹
  3. Regional Price Signals: The electricity market was segmented into different zones 27% of the time due to transmission grid limitations.

This explains why the forecast shows both RES and prices plateauingโ€”it's not just technical constraints but economic equilibrium. Without policy intervention (subsidies, mandates, carbon pricing), the market might naturally settle at this level rather than reaching the 65% RES target by 2030.

Capacity Markets

Traditional electricity markets only pay for energy delivered (โ‚ฌ/MWh). Capacity markets add a second revenue streamโ€”paying for being available (โ‚ฌ/MW/year). This transforms RES economics:

Impact on RES Investment:
  • De-risks Projects: Guaranteed capacity payments regardless of energy market prices.
  • Enables Higher RES Penetration: Projects remain viable even when energy prices crash.
  • Changes Optimal Mix: Encourages pairing renewables with storage for "firm capacity".
Price Effects:
  • Higher but More Stable: Energy prices might average higher but with less volatility.
  • Reduced Price Spikes: More reliable capacity means fewer scarcity events.
Storage

Storage has a direct price impact:

  1. Arbitrage Smoothing: Storage charges during low prices (high RES) and discharges during high prices.
  2. Peak Shaving: Reduces extreme price spikes.
  3. Valley Filling: Prevents prices from crashing to zero.
Current Storage Capacity (September 2024)
  • Total: ~12-13 GW
  • Battery Storage: 11.39 GWh / 5.03 GW
  • Pumped Hydro: ~7-8 GW (existing legacy infrastructure)
2030 Targets
  • Total: 95 GWh / 22.5 GW
  • 71 GWh of NEW grid-scale storage
  • 11 GW utility-scale standalone facilities
  • 8 GW pumped hydro (mostly existing)
  • 4 GW distributed systems
The New Market Equilibrium โš–๏ธ
Without Storage/Capacity Markets (current forecast):
  • RES hits ~35% and stalls due to revenue collapse.
  • Prices remain volatile (0-300 EUR/MWh intraday).
  • Average settles ~150 EUR/MWh.
With Storage/Capacity Markets:
  • RES could reach 60-70% by 2030 while maintaining investment viability.
  • Price volatility could drop (50-200 EUR/MWh range).
  • Average prices might be slightly lower (~120-140 EUR/MWh) due to reduced scarcity events.

Also note that storage provides more than energy shifting:

  • Frequency Regulation: Worth โ‚ฌ20-50/MW/hour in some markets.
  • Voltage Support: Enables more RES on weak grids.
  • Black Start Capability: Reduces system costs.
These additional revenue streams make RES+storage combinations more profitable than simple energy prices suggest.

Conclusion

These preliminary insights could be practically used for:

  1. Grid & Storage Investment Planning: Utilize the RES-load mismatch analysis to identify optimal locations and sizing for energy storage solutions, flexible loads, or necessary grid infrastructure upgrades.
  2. Corporate Sustainability Strategy: For sustainability-focused companies, this knowledge enables alignment of energy-intensive operations (manufacturing, data centers) with regions and times experiencing RES surplus.
  3. Energy Policy and Advocacy: Support local governments in developing more effective energy policies. Use forecast data to advocate for targeted incentives in deficit areas, encouraging further RES buildout or suggesting implementation of capacity markets and flexible tariff structures.
  4. Investment & Finance: Provide data-driven guidance to green investment funds and utility companies on capital allocation strategies. Develop financial models (cost-benefit and LCOE analysis) identifying high-return opportunities in RES projects, energy storage, or efficiency initiatives based on anticipated surplus/deficit patterns.

This data science project demonstrates how AI capabilities can analyze large datasets to uncover interesting insights. The forecast essentially assumes a "market-only" scenario in order to understand where policy and grid/storage investments play a crucial role.


Future improvements might consider:

  • Weather variables (temperature, wind speed, solar radiation)
  • Economic indicators (GDP, industrial production)
  • Holiday calendars and special event
  • Cross-border/zonal flow considerations



Addendum - 08.09.2025

Investments in power quality solutions in transmission and distribution systems are necessary, but not enough to raise the share of renewables in the grid. ๐Ÿ“‰

The RES-Price Paradox reveals a fundamental market failure: renewable penetration beyond 35-40% creates a revenue collapse that slows further investment. Above this share of RES, there is the so-called "Missing Money" Problem where low average prices make financing new renewable projects harder.

The Italian MACSE (Mechanism for the Procurement of Electric Storage Capacity) could be the turning point. It represents a long-term, stable financial signal to avoid the RES coverage to stagnate. Its value is calculated based on the benefits of "avoided overgeneration", a smart way to consider negative externalities in the final price. ๐ŸŒฑ

Other countries have different energy mixes, hence they have different philosophies:

  • Germany: "Let the market handle it naturally"
  • UK/Belgium/Poland: "technology neutral capacity markets"
  • France: "Suppliers find their own capacity solutions"

There is no one-size-fits-all solution. But, it's quite interesting to see novel approaches and how the electricity market is evolving. Maybe we will adapt the ETS (Emission Trading System) too, into a parallel market mechanism for renewables with fixed remuneration disconnected from spot prices.

Back from Anglogold commissioning in Tanzania (03.2024)


On my way back home, I tried to write down my reflections about the past three months in Tanzania, where we supported the partial electrification of the Geita Gold Mine.


๐’๐จ๐ฆ๐ž ๐Ÿ๐š๐œ๐ญ๐ฌ ๐š๐›๐จ๐ฎ๐ญ ๐ญ๐ก๐ž ๐ฉ๐ซ๐จ๐ฃ๐ž๐œ๐ญ:

๐Ÿญ The mine currently receives 40MW of power from 4 Wรคrtsilรค diesel generators located on-site.

๐Ÿ”Œ In 2020, the mine embarked on a grid integration project to build a 33/11kV 60MVA substation, connected to the national 220/33kV grid at Mpomvu village, which will also provide power to other 130 villages in the region.

๐Ÿ’ก Given the complex operational requirements of the process plant and the weak grid, there is a crucial need for a reliable and secure power supply. That's why a Static Synchronous Compensator is necessary to provide dynamic voltage compensation to support the 33kV bus during grid faults and to regulate its power factor.

๐Ÿ”‹ With about 235 GWh/year of energy demand and an average CO2 emissions from the electrical grid of 0.27 kg/kwh (powered by 35% of renewable energy), this project will bring a reduction from 0,14 Mt to 0,063 Mt.

๐Ÿ’ธ The mine's annual energy expenditure will drastically decrease, with a NPV of 26 million, IIR 46% (over 10 years) and payback period of the investment in less than 2 years.



๐’๐ข๐ง๐œ๐ž ๐ญ๐ก๐ข๐ฌ ๐ข๐ง๐ฏ๐ž๐ฌ๐ญ๐ฆ๐ž๐ง๐ญ ๐ฌ๐ž๐ž๐ฆ๐ฌ ๐ฌ๐จ ๐š๐ฉ๐ฉ๐ž๐š๐ฅ๐ข๐ง๐ , ๐ข๐ญ ๐ฆ๐š๐๐ž ๐ฆ๐ž ๐ฌ๐ž๐š๐ซ๐œ๐ก ๐Ÿ๐ฎ๐ซ๐ญ๐ก๐ž๐ซ:

๐ŸŒŽ OCSE countries are accountable for 1/3 of the C02 emissions and in the last 10 years they had a yearly reduction of about 1%.

๐Ÿ”ฅ Global Emissions continue to rise, reaching a new record of 37.4 Gt in 2023.

๐Ÿ’ธ Out of $1.8 trillion of clean energy investments in 2023, developing economies account for about 15% (and they represent roughly a third of global GDP and two-thirds of the world's population).

โ›๏ธ Critical minerals are pivotal for the energy transition and areas like Africa owns over 40% of global reserves.



๐ˆ๐ง ๐œ๐จ๐ง๐œ๐ฅ๐ฎ๐ฌ๐ข๐จ๐ง:

๐ŸŸข I wonder if substantial investments in the electrical grids of OCSE countries is the fastest and most effective way to addressing the global climate crisis and achieving the famous net zero emissions.

๐ŸŸข Perhaps exporting cutting-edge technology and expertise to developing countries, that are in the middle of their industrial revolution, could offer a possible answer to the "hard problem" of the energy transition.

๐ŸŸข Wouldn't it be better to reconsider (and readapt) the past approach of clean development mechanism CDM from the Kyoto protocol to valorize these investments?



...Back to my experience in Tanzania ๐Ÿ‡น๐Ÿ‡ฟ. The humbleness of the people I have met and their respect for nature have thought me that this energy transition might have even more relevance in those places, where nature is still part of daily life and people know how to praise it. As they told me as soon as I arrived at Mchauru Village: "Welcome back to the reality". ๐Ÿ˜„




๐Ÿญ Investing in developing countries could be an effective way to fight global warming. However, at the same time, we should work to reduce greenhouse gas emissions per capita in places like the US and Europe, where levels are much higher than in the rest of the world.



๐€๐ง๐ ๐ญ๐ก๐ข๐ฌ ๐ฆ๐ข๐ ๐ก๐ญ ๐›๐ž ๐š๐ง ๐ž๐ฏ๐ž๐ง ๐›๐ข๐ ๐ ๐ž๐ซ ๐ฉ๐ซ๐จ๐›๐ฅ๐ž๐ฆ:

๐Ÿ’ธ Direct investments in the transmission and distribution system, as well as in the ancillary services (primary and secondary markets, capacity markets, FACTS, etc.) need a clear evaluation and communication to the citizen since it might lead to substation increase in their bills.

๐ŸŒ„ The case of the German corridors in striking. The costs associated with transmitting high-voltage energy from wind generation in the North to consumption areas in the South amount to several tens of euros per MWh. These costs should be added to the production price at auctions (so-called "grid parity") and also include additional surcharges to maintain the quality and safety of the electrical service.

OCSE countries should take the lead in this energy transition as they can reduce the so-called green premiums by investing in new innovations.

๐ŸŸข Perhaps promoting and reviewing the concept of grid parity, which cannot solely refer to the local cost of production but must include additional costs to the electricity system. For example, nodal pricing, which redistributes some costs associated with the location and intermittency of PV production could be considered. This would foster the rise of Virtual Power Plants (VPPs), where by aggregating the interests of around a hundred households into a mini plant of a few hundred kilowatts, the cost of producing one kWh could be reduced by two-thirds (kind of car pooling but with energy โ˜€๏ธ).



Let me know your thoughts ๐Ÿ˜Š






This is an excerpt from an interview I received due to the Hitachi Sustainability Award. Here, I aim to highlight the project's positive impact on the environment and local communities and summarize some key steps I believe are important to tackle the Energy Transition. I also share a few wishes and aspirations for the people at the forefront of this transition, along with some ideas for my own professional growth.




And this is a funny video I made during my 3 months on site ๐Ÿซ .

How to Avoid a Climate Disaster


We know that the Energy Transition is quite a complex problem, but the book "How to Avoid a Climate Disaster" helped me to grasp it in smaller and clearer solutions, which I try to summarize here:

๐Ÿญ The world typically adds 52 billion tons of greenhouse gases to the atmosphere every year.


This includes:
  • 30% from "making things" (mainly cement, steel, plastic)
  • 26% from "plugging in" (electricity)
  • 21% from "growing things" (plants, animals)
  • 16% from "getting around" (planes. Truck, cargo ships)
  • 7% from "keeping warm and cool" (heating, cooling, refrigeration)

๐ŸŒ The world needs to provide more energy without releasing any greenhouse gases so the poorest can thrive.

๐Ÿ‘ช The population growth goes down as we improve health.

โšก๏ธ Electricity demand will increase also driven by new ways of making cement and plastic.



๐ˆ๐Ÿ ๐ฐ๐ž ๐ฐ๐š๐ง๐ญ ๐ญ๐จ ๐ฌ๐ฎ๐ฆ๐ฆ๐š๐ซ๐ข๐ณ๐ž, ๐ญ๐ก๐ž ๐ฉ๐š๐ญ๐ก ๐ญ๐จ ๐ณ๐ž๐ซ๐จ ๐ž๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง๐ฌ ๐œ๐จ๐ฎ๐ฅ๐ ๐›๐ž:


๐ŸŸข Electrify every process possible and explore advanced biofuels and electrofuels (aim for zero-carbon cement, steel, fertilizer and plastic).

๐ŸŸข Get that electricity from clean energy sources (including next generation nuclear fission and nuclear fusion).

๐ŸŸข Use carbon capture to absorb remaining emissions (possibly directly from power plants, as some national agencies are already demanding).

๐ŸŸข Discuss and understand the impact of geoengineering (brightening clouds and injecting fine particles into the atmosphere).

๐ŸŸข Government policies to close the gap, as energy businesses spend an average of 0.3% on R&D compared to the 10% of IT and pharma industries.

๐ŸŸข Adopt more F-gases-free coolants



๐€๐ฅ๐ฅ ๐ญ๐ก๐ž๐ฌ๐ž ๐ฉ๐จ๐ข๐ง๐ญ๐ฌ ๐๐ž๐ฉ๐ž๐ง๐ ๐จ๐ง ๐š ๐ฌ๐ข๐ง๐ ๐ฅ๐ž ๐Ÿ๐š๐œ๐ญ: ๐ฅ๐จ๐ฐ๐ž๐ซ ๐ญ๐ก๐ž ๐ ๐ซ๐ž๐ž๐ง ๐ฉ๐ซ๐ž๐ฆ๐ข๐ฎ๐ฆ๐ฌ.
๐“๐ก๐š๐ญ'๐ฌ ๐ฐ๐ก๐ฒ ๐Ž๐‚๐’๐„ ๐œ๐จ๐ฎ๐ง๐ญ๐ซ๐ข๐ž๐ฌ ๐ฌ๐ก๐จ๐ฎ๐ฅ๐ ๐ญ๐š๐ค๐ž ๐ญ๐ก๐ž ๐ฅ๐ž๐š๐ ๐ข๐ง ๐ญ๐ก๐ข๐ฌ ๐ž๐ง๐ž๐ซ๐ ๐ฒ ๐ญ๐ซ๐š๐ง๐ฌ๐ข๐ญ๐ข๐จ๐ง ๐š๐ฌ ๐ญ๐ก๐ž๐ฒ ๐œ๐š๐ง ๐ซ๐ž๐๐ฎ๐œ๐ž ๐ญ๐ก๐ข๐ฌ ๐๐ข๐Ÿ๐Ÿ๐ž๐ซ๐ž๐ง๐œ๐ž ๐›๐ž๐ญ๐ฐ๐ž๐ž๐ง ๐œ๐ฎ๐ซ๐ซ๐ž๐ง๐ญ ๐ฌ๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง๐ฌ ๐š๐ง๐ ๐ญ๐ก๐ž๐ข๐ซ ๐œ๐ฅ๐ž๐š๐ง ๐š๐ฅ๐ญ๐ž๐ซ๐ง๐š๐ญ๐ข๐ฏ๐ž๐ฌ ๐›๐ฒ ๐ข๐ง๐ฏ๐ž๐ฌ๐ญ๐ข๐ง๐  ๐ข๐ง ๐ง๐ž๐ฐ ๐ข๐ง๐ง๐จ๐ฏ๐š๐ญ๐ข๐จ๐ง๐ฌ.


Let me know your thoughts ๐Ÿ˜Š



AI

AI and Domain Knowledge

"With AI taking care of coding, humans can instead focus on more valuable areas of expertise and concentrate on domain knowledge."

Lately, I have experimented with different AI tools, and I can also say: without domain knowledge, AI is not particularly useful. Actually the illusion of a better output could be something like this:

AI vs Traditional Software Engineering

For example, I built a complete data science project (EnergyForecaster on GitHub) that forecasts energy prices, load demand, and renewable energy generation for the next five years. The objective was to generate strategic investment insightsโ€”such as investing in batteries where forecasted renewable energy surplus is higher, or in grid flexibility solutions.

Using Task Master MCP (I will explain briefly later what is an MCP) and Claude Desktop, I generated the full repository through well structured prompting and created a web presentation out of it. (Note: Task Master MCP allows the LLM to act as a project manager, creating structured tasks and sub-tasks. However, with the latest advanced reasoning models, this approach is probably not necessary.)

The main lesson learned was the critical importance of providing detailed domain knowledgeโ€”telling the AI which key concepts to use and providing comprehensive instructions. The more detailed the instructions, the better the results. This is the only way to avoid hallucinations and achieve interpretable, understandable answers ๐Ÿ“Š.

That's why I decided to track my recent studies with mind maps, which can be used in initial prompts for different types of projects. I believe AI can be used as an extended brain with larger memory, rather than as a completely different brain.

Domain Knowledge Page 1
Domain Knowledge Page 2
Domain Knowledge Page 3
Domain Knowledge Page 4
Domain Knowledge Page 5
Domain Knowledge Page 6
Domain Knowledge Page 7
Domain Knowledge Page 8
Domain Knowledge Page 9
Domain Knowledge Page 10
Page 1 of 20

That is why, I have created different projects in Claude with specific domain knowledge from my latest classes in Management (full of frameworks that can be difficult to remember and to match with your use case).


Project Claude Project Strategic Management

This approach is especially useful for applying already-understood and interpretable concepts to existing concrete problems or business projectsโ€”functioning as a sort of personal consultant and mentor.

Why is Claude more useful than ChatGPT?

Claude Desktop is particularly effective in providing the flexibility to leverage your domain knowledge, primarily through MCP (Model Context Protocol). Some say it is the equivalent of the TCP/IP protocol that allowed the internet to become what it is today.

The Model Context Protocol is an open, application-layer protocol developed by Anthropic to standardize the integration of large language models with external tools, data sources, and services. It essentially accelerates communication between AI agents and various API calls and tool invocations.

Let me showcase some of my latest side projects with these tools:

  • Integrated Project Management Automation
    Combining Google Drive and Gmail integrated knowledge in Claude with MCP from Asana and domain knowledge in project management best practices, I could plan the tasks for an entire complex project for the team.
    In the demonstration, you can see how the LLM reads an entire Google Drive folder containing long project specifications, requirements, and Excel files with time, cost, and resource allocation. It then reads the latest relevant emails and automatically creates the complete project in Asana, assigning due dates and customer requirements.


  • MVP Web Application Development
    Using Claude Code or Cursor to build an MVP web application for your service departmentโ€”a beta version to test with your most reliable customers.


  • Financial Intelligence Agent
    An agent that can scrape the web and, through MCP from Yahoo Finance, identify undervalued listed companies based on latest emerging trends and financial indicators (which should still come from your domain knowledge).


Conclusion: The Future of Human-AI Collaboration

This approach reinforces my belief that we are moving toward a future where AI augments human capabilities rather than replacing them. The key is maintaining human expertise and domain knowledge while leveraging AI's computational power.

The goal is not automation for its own sake, but intelligent augmentation that enhances human creativity, decision-making, and productivity across complex, real-world challenges.


- Through the Energy Transition, Towards the Singularity. โšก



HITACHI Sustainability Award (06.02.2025, London)


I recently received the Inspiration of the Year Global Award (IYGA - section Sustainability). A good opportunity to take a break from the usual working routine and to reflect on the meaning of sustainability in the Energy and AI transition.

๐ŸŒฑ Sustainability means electrifying everything we can, increasing the quota of renewable sources, and investing in solutions to make the grid more flexible.

๐Ÿ’ก HITACHI has a broad portfolio both in IT and OT which could lead this transition, using AI to increase the employee's productivity, to find synergies and new ideas in order to generate the so-called "social innovation business".

However, the direction set by most of the high-tech companies might not be the best course of action to ensure a sustainable future. That's why I have written down some general thoughts about the trajectory of this transition:


Total factor productivity growth rate โ†“



Measured TFP growth has slowed in many advanced economies compared to the mid-20th century. While the digital revolution has enhanced productivity, its effects are less directly visible in traditional TFP metrics than those of earlier, more disruptive innovations (electricity, motor vehicles, indoor plumbing...).



GDP growth rate โ†“



GDP growth has slowed in many advanced economies. Of course, this moderation reflects not only slower TFP growth but also factors like demographic trends, climate and energy crisis, and economic maturity.



Unemployment growth rate cyclical



The relationship between technological progress and unemployment is complex because it involves both job destruction and job creation, as well as broader economic and social factors. The net effect on employment depends on how well societies adapt to these changes through education, policy, and innovation.

Historically, technological progress has not led to mass unemployment. For example, the Industrial Revolution initially caused job losses in agriculture but eventually created millions of new jobs in manufacturing and services.

However, the AI revolution is something new. If AI adoption is unchecked, wealth concentration may increase, job displacement could dominate, and the natural rate of unemployment may rise permanently.



Why?

Productivity gains are no longer significantly enhancing the production function of modern economies in the way they once did. In the 1940s, innovations like electricity use empowered workers to achieve higher output by revolutionizing industrial processes. By the 2000s, computers primarily redirected labor toward new sectors (e.g., IT, digital services) rather than universally boosting productivity.

Today, AI-driven automation represents a further shift: it aims to replace human roles (e.g., computer use, operator, agents...) rather than augmenting human capabilities or creating entirely new industries. Perhaps, robotics and autonomous systems (e.g., self-driving cars, warehouse robots) will create massive new industries, but unlike past technological leaps, these sectors may not generate proportional human employment. The "big new AI industries" could profit only a few tech giants, highly profitable but labor-light.

This divergence risks a "productivity-prosperity paradox": GDP and tech corporate profits may grow, but labor's share of income could decline, reducing the "shared prosperity".



What's next?

Considering the fast pace of AI development, and the pursuit of AGI from many tech leaders, I expect to see in the next 5-10 years, an increase in GDP growth, as well as an increase in unemployment.
This might force governments to act on this AI revolution with new policies against complete automation.
That's why I'm developing and exploring the use of personal AI assistants to augment human abilities and unleash creativity for open innovation from the bottom up.
A future where computers act as "bicycles for the mind". See the picture below where the "man on a bicycle" represents the most energy-efficient form (per unit of body weight) of moving on earth. Augmentation instead of automation.




Some pictures about the awards ceremony in London:

AI, LLM and Energy (07.2024)


A few months ago, I wanted to start some AI projects to better understand its potential and see if it could really assist me.


1) Regarding foundation models (LLMs), nearly every week, there was an announcement about new, more powerful models from different companies. Sorting them out was quite straightforward:
๐Ÿ“– Open-source models (>70B parameters):
Llama (Meta) vs. Grok (xAI from Elon) vs. Mistral AI (largest European LLM) vs. Falcon (Abu Dhabi TII)

๐Ÿ” Private models (>70B parameters):
GPT (OpenAI/Microsoft) vs. Gemini (Google) vs. paLM (Google) vs. Claude (Anthropic) vs. Olympus (Amazon) vs. Ernie (Baidu, Inc. - China).


2) Then I started to look into open-source models that allow me to customize my application and maybe run it on my local machine.

๐Ÿ’ปSo, I began exploring LLMs that can run locally, using tools like: LMStudio vs. Ollama vs. GPT4All.

Of course, my laptop can only handle LLMs with <7B parameters, but for initial experiments, I thought this would be more than enough.


3) The next step was to look for basic LLM frameworks and repositories from this new AI world:

โ›“ From Langchain and LlamaIndex (for Python and JavaScript) to Relevance AI and Make.com (for low-code solutions).

As a good starting point, I decided to explore some pre-built open-source projects and here, I was astonished by the thousands of open-source projects publicly shared every day on GitHub and Hugging Face (the GitHub for LLMs).


4) Among them, I tried:

AutoGPT (linked with OpenAI) vs. HuggingGPT (integrated with models from Hugging Face) vs. AutoGen (a multi-agent project that supports function calling to extend the capabilities of the model by generating documents, sending emails, etc.).

Testing these projects was inspiring, but I must be honest. They are still prototypes with bugs that require new daily releases.

Naturally, their closed-source counterparts are more reliable:

Azure AI Studio (a Microsoft integrated environment to develop AI agents) vs. Microsoft 365 Copilot (quite useful with Excel and Outlook) vs. OpenAI GPTs (arguably the most utilized AI playground).

It's also worth mentioning AI Image and Video Generation models (DALL-E 3, Midjourney, Stable Diffusion, Sora, Runway). See the breakthrough experiment from Reid Hoffman.


5) Finally, I opted for an AI open-source IDE that allowed me to develop and connect objects (nodes and graphs). Tools like Flowwise, Langlow, but especially Rivet, are great for visualizing and building complex chains and create production-ready applications.



๐’๐จ๐ฆ๐ž ๐Ÿ๐ข๐ง๐š๐ฅ ๐ซ๐ž๐Ÿ๐ฅ๐ž๐œ๐ญ๐ข๐จ๐ง๐ฌ ๐Ÿ๐ซ๐จ๐ฆ ๐ญ๐ก๐ข๐ฌ ๐€๐ˆ ๐ฃ๐จ๐ฎ๐ซ๐ง๐ž๐ฒ:


๐ŸŸข As of today, I don't see disruptive ideas from these AI models that could significantly change my daily life or a7 traditional company's business.
However, there is a remarkable boost in R&D and academic activities, and a huge benefit for developers who can use AI copilots to build their software or create simple websites (https://secchialessandro.github.io/). For a company business, it would be interesting to explore solutions such as Azure AI Studio with some open source LLMs models.

๐ŸŸข We are moving towards highly specialized small agents in a multi-agent and multimodal frameworks. The new GPT-4o just leaves space to the imagination ๐Ÿคฏ.

๐ŸŸข It is worth to mention the so called large action model "LAM" (see Rabbit r1). Check out the new open source project from Microsoft "Visualization-of-Thought (VoT) Elicits Spatial Reasoning in Large Language Models".

๐ŸŸข If you aim to use open-source LLMs, maintain the privacy of your data, and run useful applications, you could do so from your own laptop (with limited complexity) or from an internal server if you're a business.

๐ŸŒŸ I am convinced that we are getting closer and closer and I will spend some time to seek for opportunities between this new AI world and my passion in Energy.
Some friends have already introduced new methods to operate in the electricity market. For instance, Matteo Pisani developed a model to regulate the voltage from a load tap changer using reinforcement learning algorithms (reducing unnecessary tap movements, thus maintenance costs of the device).



"๐˜›๐˜ฐ๐˜ธ๐˜ข๐˜ณ๐˜ฅ ๐˜ด๐˜ช๐˜ฏ๐˜จ๐˜ถ๐˜ญ๐˜ข๐˜ณ๐˜ช๐˜ต๐˜บ, ๐˜ต๐˜ฉ๐˜ณ๐˜ฐ๐˜ถ๐˜จ๐˜ฉ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฆ๐˜ฏ๐˜ฆ๐˜ณ๐˜จ๐˜บ ๐˜ต๐˜ณ๐˜ข๐˜ฏ๐˜ด๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ."



Hitachi Lumada AI (08.2024)


More frequently, I hear talk about highly specialized small agents in a multi-agent frameworks.

CrewAI, LangGraph, MetaGPT, LlamaIndex, Autogen are the most famous ones used in interesting application such as:
๐Ÿ“จ Automating the process of checking new emails and creating drafts based on internal know-how.
๐Ÿ‘จโ€๐Ÿ’ผ Replicating the structure of a software company (each agent is trained on their job profile), where from a single line requirement as input, it outputs competitive analysis, data structures, APIs, documents, software repository (see Pythagora ๐Ÿคฏ)..



Working at one of the Hitachi companies, gave me the inspiration to build a multiagent framework to exploit the huge amount of knowledge in information technology (IT) business as well as the operational technology (OT), a special combination that only a few companies can afford.

Therefore, by looking at the Lumada concept, I tried to build an application with LangGraph, where each agent is trained on the respective company data (scraped from the website section: products and solutions) and the supervisor (LumadaAI) can choose a specific agent (company) to perform the RAG (retrieval augmented generation) on the training data. In addition, I have added two agents called "Researcher" and "Coder" to perform a general web search and basic data analysis calculations.



In this framework, each agent is a node in the graph, and their connections are represented as an edge. The control flow is managed by edges, and they communicate by adding to the graph's state.

With LangGraph I could create a cyclical and non-linear workflows where the agents can revisit and refine their actions based on new data, leading to more accurate and efficient outcomes. Specialization, collaboration, flexibility and scalability are the main advantages of this kind of multi-agent systems.



This is a basic prototype and many improvements are possible:

  • Improve the RAG code with a self-corrective logic (which incorporates self-reflection / self-grading on retrieved documents)
  • Increase the number and quality of training data
  • Add an agent trained on the customer's data
  • Improve the quality of the user prompt



In the example below, I asked LumadaAI to support me in the planning, building, operating and maintaining of a new hospital.
The tool is retrieving information from Hitachi Energy, Hitachi Astemo, Hitachi HighTech, Hitachi Rail, Hitachi Construction Machinery and GlobalLogic.

๐ŸŸข I believe this kind of application can enhance the general human creativity and support many jobs by reducing the complexity of the problem, combining a huge amount of data, to come up with new products and solutions.

"๐˜Š๐˜ฐ๐˜ช๐˜ฏ๐˜ฆ๐˜ฅ ๐˜ง๐˜ณ๐˜ฐ๐˜ฎ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ธ๐˜ฐ๐˜ณ๐˜ฅ๐˜ด "๐˜ช๐˜ญ๐˜ญ๐˜ถ๐˜ฎ๐˜ช๐˜ฏ๐˜ข๐˜ต๐˜ฆ" ๐˜ข๐˜ฏ๐˜ฅ "๐˜ฅ๐˜ข๐˜ต๐˜ข", ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฏ๐˜ข๐˜ฎ๐˜ฆ ๐˜“๐˜ถ๐˜ฎ๐˜ข๐˜ฅ๐˜ข ๐˜ฆ๐˜ฎ๐˜ฃ๐˜ฐ๐˜ฅ๐˜ช๐˜ฆ๐˜ด ๐˜ฐ๐˜ถ๐˜ณ ๐˜จ๐˜ฐ๐˜ข๐˜ญ ๐˜ฐ๐˜ง ๐˜ด๐˜ฉ๐˜ช๐˜ฏ๐˜ช๐˜ฏ๐˜จ ๐˜ข ๐˜ญ๐˜ช๐˜จ๐˜ฉ๐˜ต ๐˜ฐ๐˜ฏ ๐˜ฐ๐˜ถ๐˜ณ ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ๐˜ฆ๐˜ณ๐˜ด' ๐˜ฅ๐˜ข๐˜ต๐˜ข ๐˜ข๐˜ฏ๐˜ฅ ๐˜ช๐˜ญ๐˜ญ๐˜ถ๐˜ฎ๐˜ช๐˜ฏ๐˜ข๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜ช๐˜ต ๐˜ช๐˜ฏ ๐˜ด๐˜ถ๐˜ค๐˜ฉ ๐˜ข ๐˜ธ๐˜ข๐˜บ ๐˜ต๐˜ฉ๐˜ข๐˜ต ๐˜ธ๐˜ฆ ๐˜ค๐˜ข๐˜ฏ ๐˜ฆ๐˜น๐˜ต๐˜ณ๐˜ข๐˜ค๐˜ต ๐˜ฏ๐˜ฆ๐˜ธ ๐˜ช๐˜ฏ๐˜ด๐˜ช๐˜จ๐˜ฉ๐˜ต, ๐˜ต๐˜ฉ๐˜ฆ๐˜ณ๐˜ฆ๐˜ฃ๐˜บ ๐˜ณ๐˜ฆ๐˜ด๐˜ฐ๐˜ญ๐˜ท๐˜ช๐˜ฏ๐˜จ ๐˜ฐ๐˜ถ๐˜ณ ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ๐˜ฆ๐˜ณ๐˜ด' ๐˜ฃ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜ฆ๐˜ด๐˜ด ๐˜ช๐˜ด๐˜ด๐˜ถ๐˜ฆ๐˜ด ๐˜ข๐˜ฏ๐˜ฅ ๐˜ค๐˜ฐ๐˜ฏ๐˜ต๐˜ณ๐˜ช๐˜ฃ๐˜ถ๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฐ ๐˜ต๐˜ฉ๐˜ฆ๐˜ช๐˜ณ ๐˜ฃ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜ฆ๐˜ด๐˜ด ๐˜จ๐˜ณ๐˜ฐ๐˜ธ๐˜ต๐˜ฉ."


"๐˜›๐˜ฐ๐˜ธ๐˜ข๐˜ณ๐˜ฅ ๐˜ด๐˜ช๐˜ฏ๐˜จ๐˜ถ๐˜ญ๐˜ข๐˜ณ๐˜ช๐˜ต๐˜บ, ๐˜ต๐˜ฉ๐˜ณ๐˜ฐ๐˜ถ๐˜จ๐˜ฉ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฆ๐˜ฏ๐˜ฆ๐˜ณ๐˜จ๐˜บ ๐˜ต๐˜ณ๐˜ข๐˜ฏ๐˜ด๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ."

Role-based reasoning to Find the Right Company and Generate Clause-by-Clause Reports for Tenders ๐Ÿ—‚๏ธ


Gemini 1.5 introduced a major breakthrough in AI with its notably large context window. It can process up to 2 million tokens at once vs. the typical 32,000 - 128,000 tokens. This is equivalent to being able to remember roughly 100,000 lines of code, 10 years of text messages, or 16 average English novels ๐Ÿคฏ.

With large context windows, methods like vector databases and RAG (that were built to overcome short context windows) become less important, and more direct methods such as in-context retrieval become viable instead. Likewise, methods like many-shot prompting, where models are provided with hundreds or thousands of examples of a task as either a replacement or a supplement for fine-tuning, also become possible.

That's why I've decided to partecipate with a friend to the "Google - Gemini long context" competition by building a public Kaggle Notebook and YouTube Videos that demonstrate a creative and usefull use case.

We decided to use the long context window to find the best company that fit your techcnical and commercial tender requirements ๐Ÿ“š.

  • A tender is a formal process, where organizations or companies invite suppliers, contractors, or service providers to submit proposals or bids to deliver a specified project, product, or service.
  • A clause-by-clause is a detailed examination of this tender, that highlights the compliant and not-compliant requirements with respect to the company offer.

As this process is carried out in most of the companies and it is quite time-consuming, we believe that the Gemini's long context window introduces a novelty in this business process:

  • It analyzes long technical and commercial tenders for a project.
  • It assesses the compatibility of companies' products and services with tender documents.
  • It finds the best company and product-service combination to execute your project, generating a clause-by-clause report with compliant and non-compliant specifications.
Notebook Structure ๐Ÿ““

The notebook is available in Kaggle: The Perfect Match for Your Tech and Business Needs and it is divided into different sections, each with a specific objective:

  • Dataset load
  • Tenders for a project are parsed, converting their information into text.
  • Information scraped from various companies' websites is loaded as text.
  • All text is processed by Gemini using different prompts, combining role-based reasoning, chain of thoughts, Gemini API context caching feature, and in-chat memory.

The long context window acts as a shared workspace, recording and making all user prompt outputs accessible for seamless and holistic reasoning. In today's interconnected world, where partnerships and synergies are essential to addressing complex challenges, I think we need to create a tool that enables continuous reasoning, uncovers new patterns and solutions, and minimizes the fragmentation of insights.๐Ÿ’ก


MACHINE LEARNING / AI NOTES (ETH 10.2024)



Feed Forward Networks โšก

One key concept is the so-called universal approximation property, which already holds for shallow neural networks with arbitrary width, consisting of an input layer, one hidden layer, and an output layer..

Indeed, at the end of the eighties, it was proved by George Cybenko that neural networks with only one hidden layer and bounded sigmoidal activation functions (i.e., limx โ†’ โˆžฯƒ(x) โ†’ 1 and limx โ†’ โˆ’โˆžฯƒ(x) โ†’ can approximate generic classes of functions.

Kurt Hornik showed in 1991 that it is not the specific choice of the activation function that leads to the universal approximation property, but that it works for generic continuous non-polynomial functions.

CNN vs. Standard Feed Forward Networks ๐Ÿ–ฅ๏ธ

A CNN (Convolutional Neural Network) differs from a standard feed forward neural network by the structure of hidden layers.

  • The hidden layers of a CNN typically consist of a series of convolutional layers.
  • The word convolution is rather a convention, coming from the replacement of the matrix vector product by a sort of convolution. Mathematically, it is actually a sliding dot product.
Recurrent Neural Networks (RNNs) ๐Ÿ”„

RNNs are a class of artificial neural networks for sequential data processing. They exhibit a temporal dynamic behavior where new inputs can enter, making them well-adapted for modeling and processing:

  • Text
  • Speech
  • Time series

Hopfield Networks are a type of recurrent neural network.

Reinforcement Learning (RL) ๐Ÿ•น๏ธ

Reinforcement Learning maximizes the notion of cumulative reward. It is one of three basic machine learning paradigms, alongside:

  • Supervised Learning: Develop models to map input and output data (i.e., regression or classification).
  • For a given training data set (xi, yi, i = 1, ..., M), supervised learning means to find the parameters ฮธ of a neural network such that a given loss function L is minimized.
    Optimization Challenge
    But how to deal with a non-linear, non-convex optimization problem with millions of parameters?
    With stochastic gradient descent where the gradient is replaced by an unbiased estimator.


  • Unsupervised Learning: Process and interpret data based only on the input (i.e., clustering).
Training with Self-Play

The parameters of the network are randomly initialized and trained by self-play reinforcement learning. You select moves by Monte Carlo tree search, which gives โ€“ based on simulated games โ€“ probabilities ฯ€ for the possible moves and game outcome z.

The network parameters are trained to:

  • Maximize the similarity of p (move probabilities) and ฯ€
  • Minimize the error between the predicted outcome v and the game outcome z, i.e., the loss function L.
Main Definitions
  • Reward r: The agent's possibility to maximize the reward over time.
  • State X: Represents the environment. U is the action space.
  • History: Considered in state x โ†’ Markov state.
  • If the agent can directly measure the full environment state, then it is called a Markov Decision Process (MDP).
  • Policy ฯ€: The agent's internal strategy for picking actions.
  • State value function (v-function): The expected return of being in state x following policy ฯ€.
  • Action value function (q-function): The expected return of being in state xk, taking action uk, and following policy ฯ€.

So, the objective is to estimate the v function and q function.

Model-Based vs. Model-Free RL
  • Model-Based RL: When the model for the environment and reward function is known (e.g., a Markovian model to predict what happens inside the environment).
  • Model-Free RL: When model dynamics and rewards are unknown to the agent. The goal is to find the optimal policy while learning the model and rewards (with exploration and exploitation).
Typical Method

Typical methods involve Discrete Time Finite Markov Decision Processes (MDP).


P is the state transition probability matrix.

  • In simple terms: v*(x) tells the agent how much reward it can expect if it starts in state x and always makes the best choices afterward.
  • In simple terms: q*(x, u) tells the agent how much reward it can expect if it starts in state x, takes action u, and then makes the best decisions afterward.

Considering that:

  • An optimal policy must deliver the maximum expected return being in a given state.

So the equations can be rewritten as follows:


  • If the environment is exactly known, solving for v* or q* directly delivers the optimal policy. Once the values are known, the optimal policy can be derived by always choosing the action that maximizes these values.
  • Otherwise, in model-free scenarios, use value iteration algorithms (e.g., Q-learning or neural fitted Q-learning or deep policy-based algorithms).
Q-Learning

The agent explores the environment, tries different actions, and updates its q(x, u) values using this formula:

In Neural Fitted Q-Learning: Instead of maintaining a table of q-values for each state-action pair (which can be huge in complex environments), a neural network is trained to predict these values.

  1. Collect data first in an "experience replay buffer."
  2. Then train from the target neural network, get the loss function, and backpropagate to train the actual Q network.
Deep Policy-Based Algorithms
  • Policy-based algorithms directly learn the policy (the best actions) instead of learning the v* or q* functions first.
  • The agent uses a neural network to directly map states to actions, optimizing the policy to maximize rewards. ๐ŸŽ‰

Generative AI


Generative AI is typically powered by deep neural networks, especially transformer architectures, which excel at processing large datasets and understanding complex patterns.


Step-by-Step Through the Transformer with "Cat" ๐Ÿฑ
1. Input Embedding and Positional Encoding
  • Each word in the sentence "The cat sits" is first converted into an embedding vector. For example, the word "cat" could be transformed into a vector like: [1.2, -0.8, 0.6, โ€ฆ]
  • Then, positional encoding is added to this vector to capture the position of "cat" in the sentence. After adding positional encoding, "cat"'s vector might look like: Embedding + PosEnc = [1.4, -0.7, 0.5, โ€ฆ]
2. Self-Attention Mechanism ๐Ÿค”
  • Generate the Query (Q), Key (K), and Value (V) vectors for each word. For "cat," let's say:
    • Qcat = [0.2, -0.3, 0.5, โ€ฆ]
    • Kcat = [0.1, -0.4, 0.7, โ€ฆ]
    • Vcat = [0.3, 0.2, -0.6, โ€ฆ]
  • Calculate the attention score for "cat" in relation to other words in the sentence using the dot product of Qcat with each word's Key vector:
    • Scorecat, the = (Qcat โ‹… Kthe) / โˆšdk
    • Scorecat, cat = (Qcat โ‹… Kcat) / โˆšdk
    • Scorecat, sits = (Qcat โ‹… Ksits) / โˆšdk
  • Apply Softmax to the scores to get attention weights, indicating how much "cat" should "focus" on each word. Suppose the results are: Weightscat = [0.1, 0.8, 0.1]
  • The attention output for "cat" is a weighted sum of Value vectors: Attention Outputcat = (0.1 โ‹… Vthe) + (0.8 โ‹… Vcat) + (0.1 โ‹… Vsits)
3. Multi-Head Attention ๐ŸŽฏ
  • With multiple heads, "cat" has different sets of Q, K, and V vectors per head, capturing various semantic aspects. Outputs from each head are concatenated and transformed to merge back together.
4. Feed-Forward Network ๐Ÿ”„
  • The attention output for "cat" passes through a feed-forward network to add complexity: FFNcat = ReLU(W1 โ‹… Attention Outputcat + b1) W2 + b2
5. Adding and Normalizing ๐ŸŒ
  • A residual connection and layer normalization are applied: Outputcat = LayerNorm(Embeddingcat + FFNcat)
Putting It All Together ๐Ÿงฉ

After multiple layers, "cat" will be represented as a vector that captures its meaning in the sentence "The cat sits." This final vector is used for the next steps, like classification or generation. Each layer helps the model build richer contextual understanding, making "cat" aware of its relationship to "sits" and "the" based on the surrounding words and overall sentence meaning.

Training Objective ๐ŸŽฏ

For language models, the common training objective is to minimize the cross-entropy loss between the predicted sequence and the actual sequence.


ML in Robotics

Machine Learning (ML) plays a crucial role in robotics, bringing more flexibility and adaptability to robotic systems. Let's break down some core components of ML in robotics, including key concepts, challenges, and potential future directions.


๐Ÿ“Š Formulate
  • Predicting or identifying patterns in data to understand and improve robotic functions.

๐Ÿ” Formalize
  • Representation: Choose models that represent data patterns well, such as:
    • Linear regression
    • Random forests
    • Neural networks
  • Evaluation: Measure model performance to ensure its effectiveness in tasks.
  • Optimization: Maximize the model's performance on the data given for the best outcomes.

๐Ÿš€ Deploy
  • MLOps: Establish robust machine learning operations to ensure efficient deployment, monitoring, and scaling of models in robotics.

๐Ÿค– Control Strategies in Robotics

Classical Control
Breaks down the problem into planning and control phases, simplifying robotic task management.

Reinforcement Learning (RL)
Directly optimizes task-level objectives and leverages domain randomization to cope with model uncertainty. This allows the system to discover more robust control responses for better task handling.

End-to-End Learning Control
Integrates all steps seamlessly:

Sensors โž” Perception (learning) โž” Planning (learning from data) โž” Control (learning)


๐Ÿง  Advanced Learning Techniques
  • Optimal Control: Focuses on finding the best control policy for the robot.
  • Imitation Learning: Observe an expert and imitate their actions, such as observing the status of a mobile "Aloha" system.
  • Privileged Imitation Learning: Uses expert knowledge for more efficient learning.

Policies
Explicit, Implicit, and Diffusion Policies: Different methods of defining the robot's behavior policy.

Kalman Filter
A mathematical method to estimate the internal state of a process, aiding robots in tracking and estimation tasks.

RL Approaches

  • Model-free vs. Model-based RL: Model-free relies on trial and error, while model-based uses a model of the environment.
  • Inverse RL: Learn the reward function by observing an expert. Once learned, it uses RL to create a policy based on that reward function.

๐Ÿค” Challenges in Building Generalist Robots
  • Unstructured and unpredictable environments
  • Generalization across embodiments โ€“ requires versatile hardware
  • Contextual understanding and high-level reasoning
  • Multi-tasking and priority balancing โ€“ goals and targets can be hard to specify
  • Regulatory, safety, and cost-related concerns
  • Limited robotic data, unlike the abundant web-scale text and image data
  • Constraints of current hardware and simulators
  • Requirement of dynamic models โ€“ many scenarios are hard to model accurately

Enhancing Robot Perception with AI

Vision-Language Models
For advanced robot perception, merging vision and language.

Language-Conditioned Imitation Learning
Enables robots to imitate tasks based on language instructions.


Future Directions in Robotics Control

Hybrid Control Strategies
A hybrid control strategy leverages both a model predictive controller and a learned policy for optimal robotic control and adaptability.


๐Ÿค– Robot Morphology

Exploring which morphologies (structural designs) are best suited for specific tasks and environments.

With advancements in ML and AI, robotics continues to move towards creating versatile, intelligent systems that can operate reliably across diverse scenarios and environments.

๐Ÿš€ Check Out My Project on Hugging Face

I tried to solve a classical project in ML involving the LunarLander environment using the Proximal Policy Optimization (PPO) algorithm. In this task, an AI agent is trained to control a spacecraft and land it accurately on a lunar surface, all while managing its limited fuel and avoiding obstacles.

๐Ÿ‘‰ You can view my project and try it out on Hugging Face: ppo-LunarLander-Ale


Ethics of AI: Fairness, Trust, Trustworthiness, Transparency

In the development of AI, ethics play a crucial role in guiding the values and principles that underpin AI systems. Key concepts in this area include Fairness, Trust, Trustworthiness, and Transparency, all of which are essential for building AI that respects human rights and societal norms.


๐ŸŒ Ethics, Trustworthy AI, and Responsible AI
  • Ethics of AI: Defines the values we aim to uphold through AI systems, ensuring they align with human values and rights.
  • Trustworthy AI: Guarantees that these ethical values are technically implemented and respected throughout the system.
  • Responsible AI: Governs and enforces the ethical and trustworthy design, ensuring consistent application in real-world scenarios.

๐Ÿ“œ Main AI Regulations
  • 2019 โ€“ Ethics Guidelines for Trustworthy AI: A foundational document outlining core ethical principles in AI.
  • The European Union AI Act: A regulatory framework focused on ensuring AI systems meet strict ethical and technical standards.

๐Ÿ” Transparency in AI

Transparency is a key aspect of ethical AI, helping users understand and trust AI systems. It includes three major components:

  • Traceability of Processes: Keeping a record of all decisions and actions taken by AI systems, which helps track and understand their behavior.
  • Explainability of Machine Learning Models: Providing clear explanations of how AI models reach their conclusions, making the decision-making process more u


    Helpful Scripts for these notes

    ๐Ÿ‘‰ Check out my GitHub: LLM_Basics


    ๐Ÿ“ Repository Contents:
    • Experimental_Agents_ETH.ipynb
    • Finetuning_ETH_Basics.ipynb
    • Neural_Networks_ETH.ipynb
    • Prompt_Engineer_ETH_Basics.ipynb
    • RAG_ETH_Basics.ipynb
    • Supervised_Learning_ETH.ipynb

Leadership

Leadership, Motivation, Inspiration



"The most beautiful experience we can have is the mysterious. It is the fundamental emotion that stands at the cradle of true art and true science. He to whom this emotion is a stranger, who can no longer wonder and stand rapt in awe, is as good as dead: his eyes are closed."


Over the past month, I've been reminded of the importance of certain emotions: inspiration and motivation, which are fundamental drivers for uncovering life's mysteries and fostering innovation. Some events, have triggered few reflections that I'd like to write down to better organize my thoughts.

Once I've read that the last metamorphosis of the spirit is represented by the "child", as a symbol of creativity, spontaneity, playfulness and openness. At this stage, we begin to wonder about everything again but with a fresh perspective. What are the unresolved mysteries of life? Which goals can we set for ourself? How can we inspire others?..

"He who has a why to live can bear almost any how."

Thus, we start exploring different aspects of life, trying to push beyond apparent limitations. We live multiple stories, encounter new cultures, begin new studies - driven by the desire to fill a void or bridge a gap.

We shall be always careful to use knowledge as a means, rather than pursuing it for its own sake. Knowledge should be disinterested, not driven by a "will to power," as it can sometimes disconnect from the more vital, instinctual aspects of life - passion, love, and creativity.

But how can we sustain these important aspects of life?

Needs can evolve into drives, which may result in motivation. In other words, to maintain motivation, we must leave some needs unfulfilled at all times.




The goal - at least for me - is to remain in the state of self-actualization: what I can be, I must be. I don't want to stray too far, but this state acknowledges the concept of linking justice to virtue (Aristotelism). Society should not just aim to maximize welfare (utilitarianism) or respect individual rights (libertarianism); it should also promote the moral character of individuals.

I like the Maslow pyramid, as it highlights the importance of professional development and equal opportunities.

Some practical advices to (I have recevied during my first classes at ETH) in order to cope with this slef and collective development are:

  • Have a feedback loop, where you're constantly thinking about what you've done and how you could be doing it better (togheter).
  • Capacity is the balance between Emotional, Physical, Spiritual and Mental Energy, don't try to manage your time, manage your energy.
  • Identify the gold hours for you and your team and do not set meetings there.
  • You can create an index (such as a subjective happiness index) to get a feedback from your team that goes beyond the daily business.
  • Reserve some time in your calendar just to think.
  • Consider the color map in change management projects.
  • Ask what are your needs, and then the needs of your needs, and then ask why you have that needs.

Finally, a list of some quotes that often come to mind when it's about being inspired. They may seem a bit trivial or loosely connected, but I believe they serve as valuable fuel for finding certain answers:

  • I think it's possible for ordinary people to choose to be extraordinary.
  • Your time is limited, so don't waste it living someone else's life.
  • Everything around you that you call life was created by people no smarter than you, and you can influence it.
  • The greater the risk, the greater the reward.
  • People don't buy what you do; they buy why you do it.
  • It's not important which company you work for, but which leader you work for.
  • Most people don't get experiences because they never ask.
  • If you haven't found the right friend or partner you are looking for, it is just because you haven't talked enough with different people.
  • What you do with your day, is how you live your life.
  • There is only one way to see things, until someone shows us how to look at them with different eyes.

I want to close this train of thoughts with a reflection from one of the last books I read: Outliers: The Story of Success.

Success is a story of people who were given a special opportunity to work really hard and seized it, and who happen to come of age at a time when that extraordinary effort was rewarded by the rest of society. It is a product of history and community, of opportunity and legacy of the world in which we grew up. We need to be aware of all these variables so as to replace the arbitrary advantages with a society that provides opportunities for all.

Here are some of the sources of inspiration I mentioned earlier:

  • The kickoff of my studies in management, economics and energy policy.
  • Training sessions for Hitachi Energy with the service engineers from around the world in Switzerland.
  • A volleyball weekend training event with team-building activities.

Experience

Control Software Engineer

Hitachi Energy

R&D Electrical Engineer

Schaffner Group

Co-Founder

EMS - Energia e Mobilitร  Sostenibile


Here the Youtube channel (Italian). Check it up!

January 2020 - Febraury 2022

Studies

ETH Zurich

Master in Advance Studies in Management and Economics

The MAS ETH MTEC is a management degree offered by ETH Zurich. It is an interdisciplinary program similar to an MBA, targeted at engineers with a few years of leadership experience.

Core courses in:

  • Strategic Management and Governance
  • Micro/Macro Economics with focus on Energy Economics and Policy
  • Financial Management, Accounting
  • Entrepreneurship Leadership
2024 - 2026

Silicon Valley Study Tour

Networking events, company visits (Meta, Google, Apple, Cisco,Synopsys, Stanford, Pinterest, Capgemini, Uniphore) and Q&A sessions throughout the innovation ecosystem of the Bay Area, CA.
๐Ÿ’ก Inspiring and insightful opportunity to understand the mindset among the entrepreneurs of Silicon Valley. After the tour, I embarked on a solo trip to Los Angeles, Las Vegas, the Grand Canyon, and New York.
Those months have been truly memorable, both personally and professionaly. I guess I will write some reflections about that genuine ambition I have experienced in SF, maybe with some thoughts about AI and Energy ๐Ÿš€.

August 2023

Politecnico di Milano

Master's and Bachelor's degree in Electrical Engineering

Main Courses in Power Electronics, Electric Power Systems, Electric Propulsion, Electrical Switching Devices, Electricity Market, Electromagnetic Compatibility.
Extra Courses in Bayesian Statistics, Project Management, Autonomous Vehicles, Quantum Physics.
Grade: 110 Summa cum laude (4 GPA) ๐Ÿ“š๐Ÿค“.

Main Projects available on GitHub: (forgive me, it's a bit messy since I have used it merely as a repository than version control)

  • High-frequency modeling of an automotive powertrain for optimal EMI filter design (Master Thesis)
  • Current sensor in current divider configuration for extended measurement range (Bachelor Thesis)
  • Simulation of a DC motor drive for a Tram with a reference speed profile
  • Field-Oriented Control of an induction motor of a train
  • Direct Torque Control for a Formula E car
  • AC Brushless control for Alfa Romeo induction motor
  • Electrical and thermal model for a slow and fast battery charge and driving cycle of an electric vehicle
  • Optimal solution to mitigate the contingencies (Correctable Emergency State) with a power Flow Analysis on Medium-Sized Systems. Focus on the effects of changes in generator, transformer, and shunt capacitor controls as well as of contingencies on the system bus voltages and transmission line flows
  • Transient stability simulation software to determine critical clearing times, to look at the impact of generator losses on system frequency and to consider methods to prevent short-term voltage collapse
  • Arc energy, Joule Energy, and actual (limited) current peak in the interruption of a resistive and inductive AC circuit by a limiting circuit breaker
  • Bayesian learning and Monte Carlo simulation of the dataset "Ames House Price"
  • Design of a residential PV plant with an energy storage system and its management strategy. Technical and economical study
  • Financial analysis of the TuNur's project: the first large utility-scale solar export project exploiting the technology of concentrated solar panels

Software: Matlab/Simulink, Femm, LTspice, R, PowerWorld, Python.

Languages: Italian (mother tongue), English (fluent C1), German (basic).

2016 - 2021

Tsinghua University

China's energy transition

Experiencing the emerging technology in the green transformation of China and its environmental issues through lectures, targeted field trips, and transcultural teamwork โ™ป๏ธ. Final presentation about CO2 capture reuse.
There is a lot to say about this experience and my connection with China.. I guess you can see it from my side projects. Anyway, sooner or later I will write some thoughts about this too.

June 2019 - August 2019

Technical School

ITIS Enea Mattei

Electrical specialization, final grade: 100/100.
Thesis: "Turbocor TT300 - An Examination of an Oil-Free Magnetic Bearing Centrifugal Compressor at Bormio Thermal Springs." This thesis delved into the comprehensive electrical and hydraulic system analysis of the thermal resort in my hometown ๐Ÿ›. The insights about those thermal baths that I got thanks to my father are invaluable. This thesis is for him ๐Ÿ‘จโ€๐Ÿซ.
Also, during my studies, I spent five years at the Salesian Boarding School. Memorable years and still great sense of belonging thanks to the people I have met.

2011 - 2016

Side Projects

Siemens Digital Academy

Workshops and insights from "Casa Siemens" in Milan. We worked on the digital substation business, configuring the overcurrent Siprotec 7SJ85 protection, testing its digital twin and sending the data to the cloud (Mindsphere) via RTU (SICAM A8000).
Really good atmosphere from Siemens' Milan environment.

Hackathons

I've always had a keen interest in the startup world, constantly exploring ways to be creative and seek out disruptive ideas. That's why I enjoyed the time spent with my geek friends during these hackathons We also managed to get good results! ๐Ÿ†

  • Winning the first prize at the Bosch #Restart hackathon for presenting an innovative system tailored for restaurants and bars. Video Spot and Presentation.
  • First prize at the Campus Party Italy hackathon by designing a prototype of smart glasses equipped with augmented reality and face recognition technology. These glasses can potentially assist recruiters or sales managers in identifying targeted individuals. Video Spot and Press.
  • Collaborating with two developers and institutional partners to create a mobile app for the mountain lodge "SunnyValley." This app provides users with optimal routes for hiking, cycling, and ski touring based on seasonal conditions, utilizing GPS tracking. The app is available on the Google Play Store and Apple App Store. Play Store and Video Spot.

Students' representative

As a representative for students at Politecnico di Milano's Electrical Engineering department and during my time in high school, I focused on enhancing the department appeal and organizing innovative events for 400+ students with local media coverage.
ITIS' got talent is worth mentioning. It has been the first institute assembly attended by all students since many years ๐Ÿซ. We introduced innovative ways of interaction where many people could show their talents.

Intercultural exchanges

"The most beautiful experience we can have is the mysterious. It is the fundamental emotion that stands at the cradle of true art and true science. Whoever does not know it and can no longer wonder, no longer marvel, is as good as dead, and his eyes are dimmed."

I believe that our life has plenty of incredible mysteries that we can only uncover by meeting new cultures ๐Ÿค.
At just 14 years old, I embarked on a transformative journey to Malaysia, living with an Asian family.
Later, I found myself in Brighton, England, working in a traditional fish and chips, trying to pay back my summer holiday with my best friend Francesco.
Also during my studies, I have shared my accommodation with international students (from Vietnam, Poland, France, Egypt, Russia, and China).
During this time, I had the privilege of acting in a short film crafted by my talented flatmate, Yuchen, a budding director. Our collaboration earned recognition at the Macau International Short Film Festival. (Short-Film).


Hobbys

Volley

I have been playing volleyball since I was 10 years old ๐Ÿ. Currently, I am the setter of the Kanti Baden first league team.
Over the past year we strive to break into the national league, coming close last season but narrowly missing out in the tie break..
..When I'm not on the volleyball court, you can find me practicing in table tennis ๐Ÿ“.

Piano

When I'm feeling inspired, I play the piano. I play few classical songs and some neo-classical composers such as Einaudi, Grinko, Yann Tiersen.. At the moment, I am studying K397 Fantasie in D Minor from Mozart, even though my ultimate goal is Clair de Lune from Debussy ๐ŸŽน.
The video below is quite a memorable moment of mine. I was with my friend (still Francesco) at the train station, improvising some piano songs. We were both 17 years old at the time, returning from a summer camp. It was a fun experience though, we even earned some decent money from it.

Mentoring and Associations

One way to remember who you are is to remember who your heroes are ๐Ÿฆธ.
Over the years, I've been lucky enough to meet exceptional people who have become both my friends and mentors.
Also, I enjoy participating in various associations as I believe it's the most effective way to learn, share, and have fun! Currently, I am involved in NOVA Talent and Lead The Feature (mentoring and networking groups), as well as AEIT (Italian Electrotechnical Association).


Books

Still in progress, as I need to remember what I have read ...

Favourite books:

  • Winning Opportunities by Raphael H. Cohen
    Alternative to traditional business planning that provides a more effective way to convince investors through the Opportunity Case framework.
  • The Unbearable Lightness of Being by Milan Kundera
    A 1984 philosophical novel exploring love, sex, and existence through four characters during the 1968 Prague Spring.
  • The Coming Wave by Mustafa Suleyman
    An urgent warning about the unprecedented risks that AI and other fast-developing technologies pose to global order.
  • Rule #1 by Phil Town
    A step-by-step investing guide that teaches readers how to buy wonderful companies at attractive prices in just 15 minutes a week.
  • Why Nations Fail by Daron Acemoglu and James A. Robinson
    Explains why nations develop differently through the role of inclusive versus extractive political and economic institutions.
  • Symposium by Plato
    Ancient Greek philosophical dialogue.
  • Edipo Re
    Tragic play by Sophocles.
  • Beyond Good and Evil by Nietzsche
    Philosophical exploration of morality.
  • Il deserto dei Tartari
    Novel by Dino Buzzati about existentialism.
  • Metamorphosis by Kafka
    A man transforms into insect.
  • The Stranger by Camus
    Absurdist novel about alienation.
  • The Alchemist by Paulo Coelho
    A timeless tale of adventure and self-discovery.
  • The World As I See It by Einstein
    Einstein's philosophical reflections.
  • The Tao of Physics by Fritjof Capra
    To explore the parallels between modern physics and Eastern mysticism.
  • The Oder of Time by Carlo Rovelli
    Challenges conventional views on time, revealing it as fragmented and subjective.
  • Helgoland by Carlo Rovelli
    To explore quantum mechanics' origins, emphasizing reality's interconnections and the observer's role.
  • Silicon by Faggin
    Account of Silicon Valley's history.
  • Nikola Tesla Biography
    Life story of the inventor.
  • Alibaba by Duncan
    Story of the e-commerce giant.
  • Steve Jobs Biography
    Biography of Apple's co-founder.
  • Elon Musk Biography
    Biography of the entrepreneur.
  • High Output Management
    Management guide by Andy Grove.
  • Justice by Sandel
    Philosophical exploration of justice.
  • How to Avoid a Climate Disaster by Bill Gates
    The solutions we have and the breakthroughs we need for the energy transition.
  • The Pillars of the Earth by Ken Follett
    Medieval tale of ambition, love, betrayal, and cathedral construction saga.
  • The Changing World Order by Ray Dalio
    analysis of historical cycles shaping global geopolitics.
  • Outliers by Malcolm Gladwell
    Success beyond talent, exploring cultural and environmental influences.


Contacts