I want to implement the Water quality index in ANFIS. I have used constant output, but not getting the desired output.
Some related works for cluing to your query are :https://de.mathworks.com/help/fuzzy/anfis.html
http://www.trjfas.org/uploads/pdf_1278.pdf
https://de.mathworks.com/help/fuzzy/anfis.html
Enjoy it and good luck for your modelling.
http://downloads.hindawi.com/journals/ace/2018/8971079.pdf
Article Inference of Water Quality Index Using ANFIA and PCA
Article Performance Evaluation of Two ANFIS Models for Predicting Wa...
https://www.igi-global.com/ViewTitle.aspx?TitleId=233219&isxn=9781522591757
You Matlab Code not answer for your research
My code not worked :(
%ADAPTATIVE NEURO-FUZZY INFERENCE SYSTEM (ANFIS) for Regression
%Description: Implementation of ANFIS using Stochastic Gradient Descent
%for regression problems with instantaneous visualization of the evolution
%of the output, error and membership functions along the epochs.
close all
clear all
clc
%The parameter K defines the number of clusters of fuzzy c-means algorithm
%and consequently the number of fuzzy rules of ANFIS)
%define number of clusters (and rules)
K = 10;
%Define learning rate
alpha = 0.0001;
%Define the maximum number of epochs
maxEpocas = 500;
%dados = load('gasfurnace.txt');
%X1 = dados(:,1);
%Y1 = dados(:,2);
%X1 = [X1;X1];
%Y1 = [Y1;Y1];
X1 = (0:0.05:6*pi)';
Y1 = sin(X1) + 0.3*randn(size(X1));
%X_aug = lagmatrix(X1,[0,1,2,3,4]);
%Y_aug = lagmatrix(Y1,[0,1]);
%X_aug2 = [X_aug(5:end,:),Y_aug(5:end,2)];
%X1 = X_aug2;
%X1 = zscore(X1);
%Y1 = Y1(5:end,:);
y1 = Y1;
tam = round(0.7 * size(X1,1));
idxTreino = [ones(tam,1);zeros(size(X1,1)-tam,1)];
idxTest = [zeros(tam,1);ones(size(X1,1)-tam,1)];
trIdx = logical(idxTreino);
teIdx = logical(idxTest);
X_train = X1(trIdx,:);
Y_train = Y1(trIdx,:);
X_test = X1(teIdx,:);
Y_test = Y1(teIdx,:);
y1 = y1(trIdx);
ErroVal = [];
ErroTreino = [];
X = X_train;
Y = Y_train;
% Fuzzy K-Means Algorithm
%Initialization of the membership matrix.
n = size(X,1);
d = size(X,2);
U = rand(n,K);
idx = zeros(n,1);
U_bin = zeros(n,K);
for i=1:n
U(i,:) = U(i,:)/sum(U(i,:));
[val,cl] = max(U(i,:));
idx(i) = cl;
U_bin(i,idx(i))= 1;
end
initData = [U,idx];
idx_init = idx;
%Initialization of centroids
m = d;
Centroids = zeros(K,d);
oldIdx = idx;
iter = 1;
display('press Ctrl + C to stop')
%Start Looping
while(1)
for i=1:K
indexes = find(idx==i);
Cusj = X(indexes,:);
Centroids(i,:) = ((U(:,i).^m)' * X)./sum(U(:,i).^m);
%Calculate distance between points and centroids
for j=1:n
d(j,i) = 1 / norm(X(j,:) - Centroids(i,:));
%update membership matrix
U(j,i) = d(j,i).^2 / sum(d(j,:).^2);
%assign each point to the group with it has max membership
if isequal(idx,oldIdx),
break;
else
end;
iter = iter + 1;
Xmax = max(X);
Xmin = min(X);
%Parameter initialization
nRegras = K; %Number of rules
m = nRegras;
%n = nObs e d = nDimensions
[n,d] = size(X);
I have a dataset with about 80 different species. As usual, some species are very easy to identify with certainty whereas others are more difficult, which means that I am less certain of my...
03 March 2021 8,066 4 View
I have prepared a manuscript in IEEE Latex template, but for some purpose, I need to prepare a word file as well (detailed format is not required). Compared to two column .tex file, one column...
02 March 2021 1,830 3 View
Gel electrophoresis, RNA degradation, RNA extraction from fresh tissue
02 March 2021 5,433 5 View
Hello, I would like to ask how to grow E.coli which resists 50 or 100ug/ml of Blasticidin. I have tried many methods by using low salt Luria-Bertain(LB) agar plate. However, no colonies grow. Let...
01 March 2021 2,027 2 View
I'm looking to try out an off-the-shelf EEG set for some exploratory work. Curious if anyone has used the OpenBCI, and how much set-up work is required. I've heard they are more difficult to get...
01 March 2021 4,128 3 View
There is confusion regarding the submillimeter-wave range. Many papers specify its range from 300GHz but some also consider its range from 100GHz. If I design an antenna on 122ghz what would I...
01 March 2021 516 7 View
I am doing a acid and a chiral amino alcohol reaction using DCC and HOBT in DCM or THF? Can anyone suggest me how to remove DCU and HOBT from a reaction mixture??
28 February 2021 2,153 1 View
Favourable conditions of base pressure, rate of deposition. Also, by which characterisation technique to be used to verify the thickness of the deposited film.
28 February 2021 3,640 3 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
Hi everybody, I have been running a multiplex IHC which allow me to stain the same tissue with different markers (Primary Ab + Secondary conjugated Ab) (AF487, AF555, AF647). Since I would like to...
27 February 2021 5,028 2 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
I am required to learn about Flyback converters and I got stuck not knowing to full design of the power supply flyback converter Based USB Charger Model using Simulink, especially the design model...
25 February 2021 5,435 2 View
I do need the Matlab code of Fractal Discrete Cosine Transform (FDCT). Can anyone who has already implement this code, help me with the implementation of this transform?
24 February 2021 5,602 2 View
Hi Hope you are well. Can you please share your code for D2D implementation in Matlab. I want to implement D2D in Matlab based Vienna simulator and struggling to deploy D2D. Thanks
24 February 2021 9,378 3 View
Dear colleagues If anyone has a model of multi-effect distillation in EES or MATLAB software, please send it to me.
24 February 2021 7,282 1 View
Hi, I am a third year chemistry undergrad doing my group project in which I need to predict the HPLC retention time of 20 aromatic molecules. to do this we require the chemical properties of these...
24 February 2021 1,384 3 View
I use Matlab 2014b to capture some images with a PointGrey camera connected with USB3 port. I initialize the camera in a function which basically execute these followed lines : vid =...
22 February 2021 6,386 1 View
How to build fouling and erosion simulation model for Aero Engine compressor and turbine rotor in Simulink / Matlab?
22 February 2021 3,697 1 View