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 carried out MFC experiments on three different volumes, 50, 500 and 1000 mL of wastewater. Results after MFC treatment shows that TDS and EC are more in larger volumes of water i.e. TDS and...
09 August 2024 9,621 0 View
Pig slurry is rich in major and minor nutrients. Is there any way to improve / Enrich its manure quality to be used in agriculture organically ? please share your knowledge.
09 August 2024 5,605 2 View
Hi, I'm currently working on a project where I need to plot the atom-projected band structure using GPAW. I've been able to calculate the band structure for my material, but I'm having trouble...
07 August 2024 269 3 View
Hi, we have measured tryptic peptides using both DDA and DIA method on QExactive. In DDA replicates i saw unusual intensity drops occurring at the same sections of chromatograms in DDA replicates...
07 August 2024 3,218 4 View
Hi How can this equation Ln(LA) = 1.038 + 0.89 ln(X) be applied to calculate the leaf area of a tomato? Can you explain with an example and what is the substitution of Ln and ln?
06 August 2024 2,508 2 View
I aim to be as skeptical as possible regarding whether a pair of orthologous genes results in the same phenotype in their different but related bacterial organisms under similar environmental...
05 August 2024 6,787 4 View
I ran a SDS-page of a bacterial lysate and I want to quantify protein concentration in a specific band. I was thinking of using a standards ladder or make some standards are different...
05 August 2024 9,805 3 View
XRD Analysis is showing only Calcium carbonate. It is not showing other compounds. Can anyone help me get the other compounds
04 August 2024 3,019 3 View
I work on MCF7 cell cell for anticaner purpose and I wa to do drug preperation the drug ( secondary metabolites extracted from Aspergillus) My question which solvent is better with these secodary...
03 August 2024 4,725 2 View
Machine learning (ML) has shown great potential in predicting the compressive strength of concrete, an important property for structural engineering. However, its practical application comes with...
03 August 2024 2,546 2 View
I need the python code to forecast what crop production will be in the next decade considering climate and crop production variables as seen in the attached.csv file.
05 August 2024 2,977 3 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View
Hello, I am a research scholar currently working on a project involving image segmentation, and I am interested in using differential evolution for this purpose . I would greatly appreciate it if...
25 July 2024 9,926 1 View
Hello!!! I want to implement the Swerling characteristics functions (CF) directly in MATLAB without using its Fourier integral pairs...the Swerling CFs are actually Laplace Transform of the signal...
23 July 2024 4,925 1 View
Currently I need to calculate detection probabilities (PD) from radar cross section (RCS) data. Beta distribution parameters for this RCS data are calculated and will be used in Swerling0...
22 July 2024 868 0 View
Actually, I'm having trouble implementing the plot of the flutter region for the whirl prop system with 2 DOF (Influences of structural damping and propeller—pivot point distance on whirl flutter...
21 July 2024 5,047 2 View
Time-Frequency Domain
19 July 2024 8,031 2 View
Crack detection using Jestson nano board with real time camera
10 July 2024 6,283 0 View
I have a 3D output in the figure section of Matlab, does anyone know a way to transfer it to Abaqus or Ansys? Or in what format should I save it so that these analysis software can analyze it?
09 July 2024 9,226 3 View