top of page

MATLAB Implementation of Neural Network Based Fault Tolerant System for Cascaded Multilevel Inverter

Nov 2
7 min read

MATLAB Implementation of Neural Network Based Fault Tolerant System for Cascaded Multilevel Inverter


𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧

A 𝐂𝐚𝐬𝐜𝐚𝐝𝐞𝐝 𝐌𝐮𝐥𝐭𝐢𝐥𝐞𝐯𝐞𝐥 𝐈𝐧𝐯𝐞𝐫𝐭𝐞𝐫 is widely used in medium- and high-power conversion applications because it can generate a high-quality staircase voltage waveform with multiple voltage levels.



Neural Network Based Fault Tolerant System for Cascaded Multilevel Inverter

Neural network based Fault Tolerant System for Cascaded Multilevel Inverters
₹12,000.00₹6,000.00
Buy Now


However, failure of an individual H-bridge, switching device, battery, or DC source can reduce the number of output voltage levels and disturb the load voltage.

This MATLAB/Simulink implementation uses a 𝐍𝐞𝐮𝐫𝐚𝐥 𝐍𝐞𝐭𝐰𝐨𝐫𝐤 to identify the faulty H-bridge and an 𝐀𝐮𝐱𝐢𝐥𝐢𝐚𝐫𝐲 𝐇-𝐁𝐫𝐢𝐝𝐠𝐞 to maintain the required output voltage during fault conditions.    Pasted text

𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰

The developed system is based on a 𝐟𝐢𝐟𝐭𝐞𝐞𝐧-𝐥𝐞𝐯𝐞𝐥 cascaded multilevel inverter.

The main system includes:

  • Seven cascaded H-bridge inverter cells

  • Individual voltage measurement for every H-bridge

  • Load/output voltage measurement

  • Neural-network-based fault detection

  • Auxiliary H-bridge inverter

  • Fault-dependent switching sequence selection

  • Logic for connecting and disconnecting the auxiliary inverter

  • Multiport-based switching signal selection

  • Simulink implementation for normal and fault conditions

The seven H-bridge sections are represented as 𝐀1 to 𝐀7 in the MATLAB/Simulink model.    Pasted text

𝐒𝐲𝐬𝐭𝐞𝐦 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧

Parameter

Description

Inverter topology

Cascaded Multilevel Inverter

Output voltage levels

15 levels

Main H-bridge cells

7

Auxiliary inverter

1 H-bridge

Fault detection method

Neural Network

Neural network inputs

8 measured quantities

Fault classes

Normal + faults in H1–H7

Output class values

0 to 7

Simulation platform

MATLAB/Simulink

The eight neural-network inputs consist of the voltages measured across the seven H-bridge cells together with the overall inverter/load voltage.    Pasted text

𝐓𝐲𝐩𝐞𝐬 𝐨𝐟 𝐅𝐚𝐮𝐥𝐭𝐬 𝐂𝐨𝐧𝐬𝐢𝐝𝐞𝐫𝐞𝐝

The implementation treats several inverter-side problems as inverter failures.

Typical faults considered include:

  • H-bridge inverter failure

  • Power semiconductor switch failure

  • Battery failure

  • DC-source failure

When such a fault occurs in any one of the cascaded cells, the corresponding contribution to the output voltage is lost.

As a result:

  • The number of voltage levels decreases.

  • The staircase waveform structure changes.

  • The output/load voltage can deviate from its rated value.

The neural network detects which bridge has failed so that suitable corrective switching can be applied.    Pasted text

𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬

The complete fault-tolerant operation can be understood in the following sequence:

  1. The cascaded inverter operates normally with seven H-bridge cells.

  2. Voltages across all H-bridges are continuously measured.

  3. The total/load voltage is also measured.

  4. These measured quantities are supplied to the trained neural network.

  5. Under healthy conditions, the neural network produces the normal-condition output.

  6. When a bridge fails, its voltage pattern changes.

  7. The neural network identifies the corresponding faulty bridge.

  8. The auxiliary H-bridge is connected to the inverter.

  9. The switching sequence associated with the failed bridge is selected.

  10. The auxiliary inverter substitutes for the faulty section.

  11. The fifteen-level output waveform is restored.

  12. The load continues receiving the required voltage.

This approach enables the inverter to continue operating even after an individual cascaded cell develops a fault.    Pasted text

𝐍𝐨𝐫𝐦𝐚𝐥 𝐚𝐧𝐝 𝐅𝐚𝐮𝐥𝐭 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧

Normal Condition

During normal operation:

  • All seven main H-bridges operate correctly.

  • The output contains the complete fifteen-level waveform.

  • The auxiliary H-bridge remains disconnected.

  • The load receives its normal rated voltage.

The auxiliary connection logic is configured so that it does not participate during healthy operation.    Pasted text

Fault Condition

When a fault occurs:

  • One H-bridge loses its contribution.

  • The output voltage level count initially decreases.

  • The neural network detects the failed bridge.

  • The auxiliary bridge is connected.

  • The required switching pattern is transferred to the auxiliary inverter.

  • The fifteen-level waveform is restored.

𝐀𝐮𝐱𝐢𝐥𝐢𝐚𝐫𝐲 𝐇-𝐁𝐫𝐢𝐝𝐠𝐞 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧

The 𝐀𝐮𝐱𝐢𝐥𝐢𝐚𝐫𝐲 𝐇-𝐁𝐫𝐢𝐝𝐠𝐞 is the key component responsible for fault tolerance.

Its function is simple:

  • It remains inactive during normal operation.

  • It is inserted only when a fault is detected.

  • It reproduces the switching pattern of the faulty bridge.

  • It compensates for the missing voltage level.

The operating states described in the implementation are:

Operating condition

SA1

SA2

Auxiliary bridge

Normal operation

1

0

Disconnected

Fault condition

0

1

Connected

This switching arrangement allows the auxiliary inverter to be added only when required.    Pasted text

𝐍𝐞𝐮𝐫𝐚𝐥 𝐍𝐞𝐭𝐰𝐨𝐫𝐤 𝐅𝐚𝐮𝐥𝐭 𝐃𝐞𝐭𝐞𝐜𝐭𝐢𝐨𝐧

The neural network is trained using voltage measurements obtained from the inverter under both normal and faulty operating conditions.

Neural Network Inputs

The network receives:

  • Voltage of H-bridge 1

  • Voltage of H-bridge 2

  • Voltage of H-bridge 3

  • Voltage of H-bridge 4

  • Voltage of H-bridge 5

  • Voltage of H-bridge 6

  • Voltage of H-bridge 7

  • Overall inverter/load voltage

These eight quantities form the fault-detection input vector.    Pasted text

𝐅𝐚𝐮𝐥𝐭 𝐂𝐥𝐚𝐬𝐬𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧

The neural-network target output uses numerical labels from 0 to 7.

Neural Network Output

Operating Condition

0

Normal operation

1

Fault in H-bridge 1

2

Fault in H-bridge 2

3

Fault in H-bridge 3

4

Fault in H-bridge 4

5

Fault in H-bridge 5

6

Fault in H-bridge 6

7

Fault in H-bridge 7

Therefore, the neural-network output directly identifies the location of the faulty cascaded cell.    Pasted text

𝐍𝐞𝐮𝐫𝐚𝐥 𝐍𝐞𝐭𝐰𝐨𝐫𝐤 𝐓𝐫𝐚𝐢𝐧𝐢𝐧𝐠

The implementation first collects inverter measurements under:

  • Normal condition

  • Fault in H-bridge 1

  • Fault in H-bridge 2

  • Fault in H-bridge 3

  • Fault in H-bridge 4

  • Fault in H-bridge 5

  • Fault in H-bridge 6

  • Fault in H-bridge 7

The described dataset initially contains sixteen data entries and is repeated to form a larger training set.

The training process produces 160 samples for the neural-network implementation described in the model.    Pasted text

Training Information

Item

Value/Description

Initial data entries

16

Repetition used

10 sets

Total samples described

160

Input quantities

8

Output labels

0–7

MATLAB tool

Neural Network fitting application

Deployment

Simulink neural-network block

After training, the generated neural-network model is inserted directly into the Simulink fault-detection system.    Pasted text

𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲

The fault-tolerant control consists of three main stages.

1. Fault Detection

The neural network evaluates the measured voltages and determines whether the system is healthy or whether one of the seven H-bridges has failed.

2. Auxiliary Inverter Connection

Once a fault is identified:

  • The normal auxiliary isolation switch changes state.

  • The auxiliary bridge is connected to the cascaded inverter.

3. Switching Sequence Selection

The auxiliary H-bridge cannot use the same switching pattern for every fault.

For example:

  • If H-bridge 1 fails, the auxiliary inverter must reproduce the switching sequence of H-bridge 1.

  • If H-bridge 5 fails, it must reproduce the switching sequence of H-bridge 5.

A 𝐌𝐮𝐥𝐭𝐢𝐩𝐨𝐫𝐭 selection arrangement is therefore used to select the proper switching signals according to the detected fault number.    Pasted text

𝐅𝐚𝐮𝐥𝐭 𝐂𝐫𝐞𝐚𝐭𝐢𝐨𝐧 𝐢𝐧 𝐒𝐢𝐦𝐮𝐥𝐢𝐧𝐤

The model uses toggle-controlled logic to introduce faults into individual H-bridge cells.

Toggle Status

Toggle condition

H-bridge condition

ON

Normal operation

OFF

Fault/failure condition

This makes it easy to test the response of the neural-network fault detector for each inverter cell separately.    Pasted text

𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬

Normal Operation

When all H-bridges are healthy:

  • The inverter produces a fifteen-level voltage waveform.

  • No fault is identified.

  • The auxiliary inverter remains disconnected.

Fault in H-Bridge 1

When H-bridge 1 is disabled:

  • The voltage level initially decreases.

  • The neural network produces fault index 1.

  • The auxiliary inverter is connected.

  • The missing switching sequence is reproduced.

  • The fifteen-level output is restored.    Pasted text

Fault in H-Bridge 2

For an H2 fault:

  • The neural network identifies the fault using output value 2.

  • The auxiliary H-bridge substitutes for H2.

  • The fifteen-level waveform is maintained.    Pasted text

Faults in H-Bridges 3 to 7

The same fault-tolerant principle is applied for the remaining cells.

Fault condition

Neural-network output

Corrective action

Final output

H1 failure

1

Auxiliary replaces H1 switching

15 levels

H2 failure

2

Auxiliary replaces H2 switching

15 levels

H3 failure

3

Auxiliary replaces H3 switching

15 levels

H4 failure

4

Auxiliary replaces H4 switching

15 levels

H5 failure

5

Auxiliary replaces H5 switching

15 levels

H6 failure

6

Auxiliary replaces H6 switching

15 levels

H7 failure

7

Auxiliary replaces H7 switching

15 levels

The described simulations show that after detection and corrective switching, the auxiliary inverter restores the expected fifteen-level load-side output for faults introduced in H1 through H7.    Pasted text

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬

  • 𝐍𝐞𝐮𝐫𝐚𝐥-𝐍𝐞𝐭𝐰𝐨𝐫𝐤-𝐁𝐚𝐬𝐞𝐝 identification of inverter faults

  • Detection of faults across seven cascaded H-bridge cells

  • Eight measured quantities used for fault identification

  • Numerical fault classification from 0 to 7

  • Fifteen-level cascaded inverter structure

  • Auxiliary H-bridge for fault compensation

  • Automatic auxiliary inverter connection

  • Fault-dependent switching sequence selection

  • Multiport-based switching logic

  • Fault testing using Simulink toggle controls

  • Restoration of the multilevel output after individual bridge failure

  • Complete MATLAB/Simulink implementation

𝐀𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞𝐬 𝐨𝐟 𝐭𝐡𝐞 𝐅𝐚𝐮𝐥𝐭 𝐓𝐨𝐥𝐞𝐫𝐚𝐧𝐭 𝐒𝐲𝐬𝐭𝐞𝐦

The proposed structure offers several practical advantages:

  • Improves continuity of inverter operation

  • Identifies the location of the faulty H-bridge

  • Reduces interruption to the connected load

  • Restores missing inverter voltage levels

  • Provides automatic corrective switching

  • Demonstrates intelligent fault diagnosis using neural networks

  • Allows individual fault conditions to be tested easily in Simulink

  • Helps study the relationship between inverter faults and output waveform degradation

𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬

This type of fault-tolerant cascaded multilevel inverter concept is useful for studying power-conversion systems used in areas such as:

  • Renewable energy conversion

  • Solar PV inverter systems

  • Battery energy-storage interfaces

  • Electric-drive systems

  • High-power AC motor drives

  • Medium-voltage converters

  • Microgrid power conversion

  • Grid-connected converter systems

  • Industrial power-electronic converters

  • Intelligent power converter monitoring

𝐖𝐡𝐲 𝐔𝐬𝐞 𝐚 𝐍𝐞𝐮𝐫𝐚𝐥 𝐍𝐞𝐭𝐰𝐨𝐫𝐤?

A neural network provides a convenient way to relate measured inverter voltage patterns to different operating conditions.

In this implementation, it is used to:

  • Recognize the normal operating pattern

  • Distinguish faults in different H-bridge cells

  • Generate a numerical indication of fault location

  • Supply the fault information to the switching logic

  • Support automatic fault-tolerant operation

Instead of checking every bridge manually, the trained model produces the corresponding fault index directly from the measured voltage inputs.

𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧

The 𝐌𝐀𝐓𝐋𝐀𝐁 𝐈𝐦𝐩𝐥𝐞𝐦𝐞𝐧𝐭𝐚𝐭𝐢𝐨𝐧 𝐨𝐟 𝐍𝐞𝐮𝐫𝐚𝐥 𝐍𝐞𝐭𝐰𝐨𝐫𝐤 𝐁𝐚𝐬𝐞𝐝 𝐅𝐚𝐮𝐥𝐭 𝐓𝐨𝐥𝐞𝐫𝐚𝐧𝐭 𝐒𝐲𝐬𝐭𝐞𝐦 𝐟𝐨𝐫 𝐂𝐚𝐬𝐜𝐚𝐝𝐞𝐝 𝐌𝐮𝐥𝐭𝐢𝐥𝐞𝐯𝐞𝐥 𝐈𝐧𝐯𝐞𝐫𝐭𝐞𝐫 demonstrates an intelligent method for identifying individual H-bridge failures and maintaining inverter operation.

The fifteen-level inverter uses seven main H-bridge cells, while an additional auxiliary H-bridge acts as a backup during faults. The neural network identifies the faulty bridge from eight measured voltage quantities, and the control logic automatically selects the appropriate switching sequence for the auxiliary inverter.

The simulation described in the source demonstrates fault-tolerant operation for faults introduced in each of the seven H-bridge cells while restoring the fifteen-level output on the load side.    Pasted text


Comments


bottom of page