Research / Case study

XAI-MCC: converting code between languages, and explaining it

A system that converts code from one programming language to another and then explains the converted code line by line. The work was published on IEEE Xplore at I-SMAC 2026, with me as a co-author.

Venue
2026 10th International Conference on I-SMAC, Kirtipur, Nepal
Publisher
IEEE · on IEEE Xplore since 30 October 2026
Role
Co-author (second of six)
Read it
IEEE Xplore (opens in a new tab) · DOI 10.1109/I-SMAC70384.2026.11747628
01 · Problem

Code converters that translate without understanding

Existing online code converters struggle with limited syntax analysis, inefficient generated code and missing comments, so the converted code is hard to trust and hard to follow.

An illustrative example: the same function converted from Python to Java.
02 · Approach

Deep syntax analysis, then an explanation

XAI-MCC uses Transformer-based Xtream AI learning for deep syntax analysis, converting code while keeping its meaning consistent. An AI agent then explains the converted code line by line.

03 · Architecture

How the pieces fit

InputSource code
PreparationPre-processingTokenization
ModelTransformer encoder–decoder
OutputCode in the target languageLine-by-line explanation from an AI agent
Simplified architecture: source code is pre-processed and tokenized, converted by a Transformer encoder–decoder, and returned as code in the target language with a line-by-line explanation from an AI agent.
04 · Technologies

The stack

  • Transformers
  • Encoder–decoder
  • NLP
  • AI agent
05 · Implementation

What was built

  • An encoder–decoder architecture that captures complex code patterns and the relationships between them.
  • Pre-processing and tokenization that refine the input before conversion.
  • An AI agent that gives line-by-line explanations of the converted code.
  • An evaluation on 100 code samples in various programming languages, collected from online sources.
06 · Results

Outcomes

Need AI that understands your code or documents?

Start a conversation